|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.MassagerFoldCase
This massager folds the input text into either uppercase or lowercase, depending on the value pass to the constructor or setter.
Note by default this also trims the
| Constructor Summary | |
|---|---|
MassagerFoldCase()
Constructor using uppercase as the case direction |
|
MassagerFoldCase(boolean foldToUpperCase)
Constructor using given case direction |
|
| Method Summary | |
|---|---|
boolean |
getFoldToUpperCase()
Return property about whether to fold to uppercase or lowercase |
boolean |
getTrimBlanks()
Return property about whether to trim blanks for not |
String |
massage(String text)
Given the user-entered input, return the massaged version of it. |
void |
setFoldToUpperCase(boolean foldToUpperCase)
Toggle whether to fold to uppercase or lowercase |
void |
setTrimBlanks(boolean trimBlanks)
Toggle whether to trim blanks for not |
protected String |
toLowerCase(String input)
Overrridable method that actually does the lowercasing |
protected String |
toUpperCase(String input)
Overrridable method that actually does the uppercasing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MassagerFoldCase()
public MassagerFoldCase(boolean foldToUpperCase)
foldToUpperCase - - whether to fold to uppercase (true) or lowercase (false).| Method Detail |
public void setFoldToUpperCase(boolean foldToUpperCase)
foldToUpperCase - - whether to fold to uppercase (true) or lowercase (false).public void setTrimBlanks(boolean trimBlanks)
trimBlanks - - whether to trim blanks (true) or leave them (false).public boolean getFoldToUpperCase()
public boolean getTrimBlanks()
public String massage(String text)
ISystemMassager
massage in interface ISystemMassagerISystemMassager.massage(String)protected String toUpperCase(String input)
protected String toLowerCase(String input)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||