| |
|
| java.lang.Object org.millstone.base.ui.AbstractComponent org.millstone.base.ui.AbstractField org.millstone.base.ui.TextField
Constructor Summary | |
public | TextField() Constructs an empty TextField with no caption. | public | TextField(String caption) Constructs an empty TextField with given caption. | public | TextField(Property dataSource) Constructs a new TextField that's bound to the
specified Property and has no caption. | public | TextField(String caption, Property dataSource) Constructs a new TextField that's bound to the
specified Property and has the given caption
String . | public | TextField(String caption, String value) Constructs a new TextField with the given caption and
initial text contents. |
Method Summary | |
public void | changeVariables(Object source, Map variables) | public int | getColumns() Gets the number of columns in the editor. | public Format | getFormat() Get the value formatter of TextField. | protected String | getFormattedValue() Get the formatted dtring value. | public String | getNullRepresentation() Get the null-string representation.
The null-valued strings are represented on the user interface by replacing the
null value with this string. | public int | getRows() Gets the number of rows in the editor. | public String | getTag() | public Class | getType() | public boolean | isNullSettingAllowed() Is setting nulls with null-string representation allowed.
If this property is true, writing null-representation string to text
field allways sets the field value to real null. | public boolean | isSecret() Get the secret property on and off. | public boolean | isWordwrap() Tests if the editor is in word-wrap mode. | public void | paintContent(PaintTarget target) | public void | setColumns(int columns) Sets the number of columns in the editor. | public void | setFormat(Format format) Get the value formatter of TextField.
Parameters: The - Format used to format the value. | public void | setNullRepresentation(String nullRepresentation) Sets the null-string representation.
The null-valued strings are represented on the user interface by replacing the
null value with this string. | public void | setNullSettingAllowed(boolean nullSettingAllowed) Set the null conversion mode.
If this property is true, writing null-representation string to text
field allways sets the field value to real null. | public void | setRows(int rows) Sets the number of rows in the editor. | public void | setSecret(boolean secret) Set the secret property on and off. | public void | setWordwrap(boolean wordwrap) Sets the editor's word-wrap mode on or off. |
TextField | public TextField()(Code) | | Constructs an empty TextField with no caption.
|
TextField | public TextField(String caption)(Code) | | Constructs an empty TextField with given caption.
|
TextField | public TextField(Property dataSource)(Code) | | Constructs a new TextField that's bound to the
specified Property and has no caption.
Parameters: dataSource - the Property to be edited with this editor |
TextField | public TextField(String caption, Property dataSource)(Code) | | Constructs a new TextField that's bound to the
specified Property and has the given caption
String .
Parameters: caption - caption String for the editor Parameters: dataSource - the Property to be edited with this editor |
TextField | public TextField(String caption, String value)(Code) | | Constructs a new TextField with the given caption and
initial text contents. The editor constructed this way will not be
bound to a Property unless
org.millstone.base.data.Property.Viewer.setPropertyDataSource(Property) is called to bind it.
Parameters: caption - caption String for the editor Parameters: text - initial text content of the editor |
changeVariables | public void changeVariables(Object source, Map variables)(Code) | | |
getColumns | public int getColumns()(Code) | | Gets the number of columns in the editor. If the number of columns
is set 0, the actual number of displayed columns is determined
implicitly by the adapter.
Parameters: the - number of columns for this editor |
getFormat | public Format getFormat()(Code) | | Get the value formatter of TextField.
The Format used to format the value. |
getFormattedValue | protected String getFormattedValue()(Code) | | Get the formatted dtring value.
Sets the field value by using the assigned Format.
Parameters: value - to be formatted Formatted value See Also: TextField.setFormat(Format) See Also: Format |
getNullRepresentation | public String getNullRepresentation()(Code) | | Get the null-string representation.
The null-valued strings are represented on the user interface by replacing the
null value with this string. If the null representation is set null (not 'null' string),
painting null value throws exception.
The default value is string 'null'
See Also: TextField.isNullSettingAllowed String Textual representation for null strings. |
getRows | public int getRows()(Code) | | Gets the number of rows in the editor. If the number of rows is set
to 0, the actual number of displayed rows is determined implicitly by
the adapter.
number of explicitly set rows |
isNullSettingAllowed | public boolean isNullSettingAllowed()(Code) | | Is setting nulls with null-string representation allowed.
If this property is true, writing null-representation string to text
field allways sets the field value to real null. If this property is
false, null setting is not made, but the null values are maintained.
Maintenance of null-values is made by only converting the textfield
contents to real null, if the text field matches the null-string
representation and the current value of the field is null.
By default this setting is false
boolean Should the null-string represenation be allwaysconverted to null-values. See Also: TextField.getNullRepresentation |
isSecret | public boolean isSecret()(Code) | | Get the secret property on and off.
If a field is used to enter secretinformation
the information is not echoed to display.
true if the field is used to enter secret information, false otherwise. |
isWordwrap | public boolean isWordwrap()(Code) | | Tests if the editor is in word-wrap mode.
true if the component is in the word-wrap mode,false if not |
setColumns | public void setColumns(int columns)(Code) | | Sets the number of columns in the editor. If the number of columns
is set 0, the actual number of displayed columns is determined
implicitly by the adapter.
number of explicitly set columns |
setFormat | public void setFormat(Format format)(Code) | | Get the value formatter of TextField.
Parameters: The - Format used to format the value. Null disables the formatting. |
setNullRepresentation | public void setNullRepresentation(String nullRepresentation)(Code) | | Sets the null-string representation.
The null-valued strings are represented on the user interface by replacing the
null value with this string. If the null representation is set null (not 'null' string),
painting null value throws exception.
The default value is string 'null'
See Also: TextField.setNullSettingAllowed(boolean) Parameters: nullRepresentation - Textual representation for null strings. |
setNullSettingAllowed | public void setNullSettingAllowed(boolean nullSettingAllowed)(Code) | | Set the null conversion mode.
If this property is true, writing null-representation string to text
field allways sets the field value to real null. If this property is
false, null setting is not made, but the null values are maintained.
Maintenance of null-values is made by only converting the textfield
contents to real null, if the text field matches the null-string
representation and the current value of the field is null.
By default this setting is false
Parameters: nullSettingAllowed - Should the null-string represenation be allwaysconverted to null-values. See Also: TextField.getNullRepresentation |
setRows | public void setRows(int rows)(Code) | | Sets the number of rows in the editor. If the number of rows is set
to 0, the actual number of displayed rows is determined implicitly by
the adapter.
Parameters: the - number of rows for this editor |
setSecret | public void setSecret(boolean secret)(Code) | | Set the secret property on and off.
If a field is used to enter secretinformation
the information is not echoed to display.
Parameters: secret - value specifying if the field is used to enter secret information. |
setWordwrap | public void setWordwrap(boolean wordwrap)(Code) | | Sets the editor's word-wrap mode on or off.
Parameters: wordwrap - boolean value specifying if the editor should be inword-wrap mode after the call or not. |
Methods inherited from org.millstone.base.ui.AbstractComponent | public void addListener(RepaintRequestListener listener)(Code)(Java Doc) public void addListener(Class eventType, Object object, Method method)(Code)(Java Doc) public void addListener(Class eventType, Object object, String methodName)(Code)(Java Doc) public void addListener(Component.Listener listener)(Code)(Java Doc) public void attach()(Code)(Java Doc) public void changeVariables(Object source, Map variables)(Code)(Java Doc) public void childRequestedRepaint(Collection alreadyNotified)(Code)(Java Doc) public void dependsOn(VariableOwner depended)(Code)(Java Doc) public void detach()(Code)(Java Doc) protected void fireComponentErrorEvent()(Code)(Java Doc) protected void fireComponentEvent()(Code)(Java Doc) protected void fireEvent(Component.Event event)(Code)(Java Doc) public Application getApplication()(Code)(Java Doc) public String getCaption()(Code)(Java Doc) public ErrorMessage getComponentError()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public String getDescription()(Code)(Java Doc) public Set getDirectDependencies()(Code)(Java Doc) public ErrorMessage getErrorMessage()(Code)(Java Doc) public Resource getIcon()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Component getParent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) abstract public String getTag()(Code)(Java Doc) public Window getWindow()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) final public void paint(PaintTarget target) throws PaintException(Code)(Java Doc) public void paintContent(PaintTarget target) throws PaintException(Code)(Java Doc) public void removeDirectDependency(VariableOwner depended)(Code)(Java Doc) public void removeListener(RepaintRequestListener listener)(Code)(Java Doc) public void removeListener(Class eventType, Object target)(Code)(Java Doc) public void removeListener(Class eventType, Object target, Method method)(Code)(Java Doc) public void removeListener(Class eventType, Object target, String methodName)(Code)(Java Doc) public void removeListener(Component.Listener listener)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaintRequests()(Code)(Java Doc) public void setCaption(String caption)(Code)(Java Doc) public void setComponentError(ErrorMessage componentError)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setDescription(String description)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setIcon(Resource icon)(Code)(Java Doc) public void setImmediate(boolean immediate)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setParent(Component parent)(Code)(Java Doc) public void setReadOnly(boolean readOnly)(Code)(Java Doc) public void setStyle(String style)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc)
|
|
|
|