| thinwire.ui.MaskEditorComponent
All known Subclasses: thinwire.ui.AbstractMaskEditorComponent,
MaskEditorComponent | public interface MaskEditorComponent extends EditorComponent(Code) | | author: Joshua J. Gertzen |
Method Summary | |
public String | getEditMask() | public boolean | isFormatText() Determines whether the text returned by getText() is formatted.
true if the text is formatted, false otherwise. | public void | setEditMask(String editMask) This method accepts an edit mask as a String and applies it to the text field. | public void | setFormatText(boolean formatText) Sets whether the text returned by getText() is formatted.
If an editMask is specified that contains with format charcters, such as ###,###,###.## and
this property is set to false, then the value returned by getText will not contain the the
commas from the editMask. |
PROPERTY_EDIT_MASK | final public static String PROPERTY_EDIT_MASK(Code) | | |
PROPERTY_FORMAT_TEXT | final public static String PROPERTY_FORMAT_TEXT(Code) | | |
getEditMask | public String getEditMask()(Code) | | Get this TextField's edit mask
the edit mask |
isFormatText | public boolean isFormatText()(Code) | | Determines whether the text returned by getText() is formatted.
true if the text is formatted, false otherwise. Default is true. |
setEditMask | public void setEditMask(String editMask)(Code) | | This method accepts an edit mask as a String and applies it to the text field.
Parameters: editMask - |
setFormatText | public void setFormatText(boolean formatText)(Code) | | Sets whether the text returned by getText() is formatted.
If an editMask is specified that contains with format charcters, such as ###,###,###.## and
this property is set to false, then the value returned by getText will not contain the the
commas from the editMask. i.e. If the value in the field is 123,456.78 then 123456.78 would
be returned. Whereas, if this property is set to true then 123,456.78 would be returned.
Another example would be with a mask of MM/dd/yyyy, value of 11/21/1978. With this set to false
you would get the value 11211978 by calling getText(), with it set to true, you'd get 11/21/1978.
Parameters: formatText - true if you want the text formattted, false otherwise. Default is true. |
|
|