|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.format.LeadingCharacterFormat
Format a string by appending a leading character. You can specify either an absolute length of the final string, or a number of characters to append.
| Constructor Summary | |
LeadingCharacterFormat()
|
|
| Method Summary | |
java.lang.String |
format(java.lang.String hTMLText)
Takes the text provided and prepends the character defined in setCharacterthe number of times defined in
setCount. |
char |
getCharacter()
This character will be prepended to the string. |
int |
getCount()
The number of times the character will be prepended. |
boolean |
getCountIsMaximum()
Get whether the number specified in setCountshould be
a maximum string length, or the number of characters to prepend. |
void |
setCharacter(char characterParam)
This character will be prepended to the string. |
void |
setCount(int countParam)
The number of times the character will be prepended. |
void |
setCountIsMaximum(boolean countIsMaximumParam)
Set whether the number specified in setCountshould be
a maximum string length, or the number of characters to prepend. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LeadingCharacterFormat()
| Method Detail |
public final java.lang.String format(java.lang.String hTMLText)
Takes the text provided and prepends the character defined in
setCharacterthe number of times defined in
setCount. If you specified this is a maximum (
setMaximum(true)), then only the rightmost count of
characters are returned.
format in interface HTMLFormathTMLText - Refer to HTMLFormat.format(java.lang.String).
HTMLFormat.format(java.lang.String).public final boolean getCountIsMaximum()
Get whether the number specified in setCountshould be
a maximum string length, or the number of characters to prepend.
false if the count from setCount represents a total number of characters to
prepend, or true- default setting - represents a
maximum string length for the whole string returned in
format(java.lang.String).
public final void setCountIsMaximum(boolean countIsMaximumParam)
Set whether the number specified in setCountshould be
a maximum string length, or the number of characters to prepend.
countIsMaximumParam - set to false if the count from
setCountrepresents a total number of
characters to prepend, or true- default
setting - represents a maximum string length for the whole
string returned in format.
public final char getCharacter()
This character will be prepended to the string.
public final void setCharacter(char characterParam)
This character will be prepended to the string.
characterParam - the new value of the character which will be prepended.public final int getCount()
The number of times the character will be prepended.
public final void setCount(int countParam)
The number of times the character will be prepended.
countParam - the new value of count.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||