|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.format.NonBreakingSpaceFormat
Convert all spaces in a text to non-breaking spaces. You can choose whether
all spaces are converted (default), or just those at the start of the line,
by changing the value of the style field.
| Field Summary | |
static int |
NONBREAKING_ALL
Use this flag to indicate that all spaces should be converted to non-breaking ( ) |
static int |
NONBREAKING_NONE
Use this flag to indicate that all spaces should be left as they are and not converted to non-breaking ( ). |
static int |
NONBREAKING_START_LINE
Use this flag to indicate that spaces at the start of a line should be converted to non-breaking ( ). |
| Constructor Summary | |
NonBreakingSpaceFormat()
|
|
| Method Summary | |
java.lang.String |
format(java.lang.String hTMLTextParam)
Format the string given in hTMLText to the maximum length
provided by calling setMaxLength. |
int |
getStyle()
Get the style of non-breaking space conversion applied. |
void |
setStyle(int styleParam)
Set the style of non-breaking space conversion applied. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NONBREAKING_ALL
Use this flag to indicate that all spaces should be converted to non-breaking ( )
This flag represents the default setting.
NONBREAKING_NONE,
NONBREAKING_START_LINE,
Constant Field Valuespublic static final int NONBREAKING_NONE
Use this flag to indicate that all spaces should be left as they are and not converted to non-breaking ( ).
NONBREAKING_START_LINE,
NONBREAKING_ALL,
Constant Field Valuespublic static final int NONBREAKING_START_LINE
Use this flag to indicate that spaces at the start of a line should be converted to non-breaking ( ).
NONBREAKING_NONE,
NONBREAKING_ALL,
Constant Field Values| Constructor Detail |
public NonBreakingSpaceFormat()
| Method Detail |
public final java.lang.String format(java.lang.String hTMLTextParam)
Format the string given in hTMLText to the maximum length
provided by calling setMaxLength.
format in interface HTMLFormathTMLTextParam - the text to truncate.
HTMLFormat.format(java.lang.String).public int getStyle()
Get the style of non-breaking space conversion applied. By default all spaces will be converted.
public final void setStyle(int styleParam)
Set the style of non-breaking space conversion applied. By default all spaces will be converted.
You should use one of the constant NONBREAKING_... values
set in this class, as the setting of style.
styleParam - the new value of style.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||