|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.app.Prefs org.fife.rtext.plugins.tidy.HtmlOptions
public class HtmlOptions
Options for tidying HTML.
While all fields in this class are public, please use the getters and setters for accessing them for bounds checking, etc.
Field Summary | |
---|---|
boolean |
hideOptionalEndTags
|
boolean |
htmlClean
|
boolean |
htmlDropEmptyParas
|
boolean |
htmlLogicalEmphasis
|
int |
htmlSpaceCount
|
boolean |
htmlUpperCaseAttrNames
|
boolean |
htmlUpperCaseTagNames
|
int |
htmlWrapLength
|
Constructor Summary | |
---|---|
HtmlOptions()
|
Method Summary | |
---|---|
boolean |
getDropEmptyParas()
Whether empty " p " elements should be dropped when tidying
HTML. |
boolean |
getHideOptionalEndTags()
Returns whether optional end tags are hidden in HTML. |
boolean |
getLogicalEmphasis()
Returns whether to replace <i> and <b> with <em> and <strong>, respectively. |
boolean |
getMakeClean()
Whether presentational tags should be replaced with style rules. |
int |
getSpaceCount()
Returns the number of spaces to use for indentation when formatting HTML. |
boolean |
getUpperCaseAttrNames()
Returns whether HTML attribute names should be made upper case. |
boolean |
getUpperCaseTagNames()
Returns whether HTML tag names should be made upper case. |
int |
getWrapLength()
Returns how long formatted lines can be before they are wrapped. |
void |
setDefaults()
Sets all fields in this class to their default values. |
void |
setDropEmptyParas(boolean drop)
Sets whether empty " p " elements should be dropped when
tidying HTML. |
void |
setHideOptionalEndTags(boolean hide)
Sets whether optional end tags are hidden in HTML. |
void |
setLogicalEmphasis(boolean emphasis)
Sets whether to replace <i> and <b> with <em> and <strong>, respectively. |
void |
setMakeClean(boolean clean)
Sets whether presentational tags should be replaced with style rules. |
void |
setSpaceCount(int count)
Sets the number of spaces to use for indentation when formatting HTML. |
void |
setUpperCaseAttrNames(boolean upper)
Sets whether HTML attribute names should be made upper-case. |
void |
setUpperCaseTagNames(boolean upper)
Sets whether HTML tag names should be made upper-case. |
void |
setWrapLength(int length)
Sets how long formatted lines can be before they are wrapped. |
Methods inherited from class org.fife.ui.app.Prefs |
---|
load, load, load, save, save, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int htmlSpaceCount
public boolean htmlClean
public boolean htmlDropEmptyParas
public boolean htmlLogicalEmphasis
public boolean hideOptionalEndTags
public boolean htmlUpperCaseTagNames
public boolean htmlUpperCaseAttrNames
public int htmlWrapLength
Constructor Detail |
---|
public HtmlOptions()
Method Detail |
---|
public boolean getDropEmptyParas()
p
" elements should be dropped when tidying
HTML.
p
" elements.setDropEmptyParas(boolean)
public boolean getHideOptionalEndTags()
setHideOptionalEndTags(boolean)
public boolean getLogicalEmphasis()
setLogicalEmphasis(boolean)
public boolean getMakeClean()
setMakeClean(boolean)
public int getSpaceCount()
setSpaceCount(int)
public boolean getUpperCaseAttrNames()
setUpperCaseAttrNames(boolean)
public boolean getUpperCaseTagNames()
setUpperCaseTagNames(boolean)
public int getWrapLength()
setWrapLength(int)
public void setDefaults()
setDefaults
in class Prefs
public void setDropEmptyParas(boolean drop)
p
" elements should be dropped when
tidying HTML.
drop
- Whether to drop empty "p
" elements.getDropEmptyParas()
public void setHideOptionalEndTags(boolean hide)
hide
- Whether optional end tags are hidden.getHideOptionalEndTags()
public void setLogicalEmphasis(boolean emphasis)
emphasis
- Whether to use logical emphasis tags.getLogicalEmphasis()
public void setMakeClean(boolean clean)
clean
- Whether presentational tags should be replaced with style
rules.getMakeClean()
public void setSpaceCount(int count)
count
- The number of spaces. This should be greater than or
equal to -1 (which specifies to use tabs).getSpaceCount()
public void setUpperCaseAttrNames(boolean upper)
upper
- Whether they should be made upper case.getUpperCaseAttrNames()
public void setUpperCaseTagNames(boolean upper)
upper
- Whether they should be made upper case.getUpperCaseTagNames()
public void setWrapLength(int length)
length
- The maximum length of a formatted line, or "0" for no
limit.getWrapLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |