|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intel.gpe.gridbeans.plugins.controls.DataControl
com.intel.gpe.gridbeans.plugins.controls.TextFieldDataControl
public class TextFieldDataControl
The data control for the text field.
The user's representation of value of this control is of type String.
| Constructor Summary | |
|---|---|
TextFieldDataControl(javax.swing.JTextField field)
|
|
| Method Summary | |
|---|---|
boolean |
getEnabled()
Get the enabled state of the component |
java.lang.Object |
getValue()
Get the translated value of the component. |
boolean |
isValid(java.lang.StringBuffer buf)
Validate the value. |
void |
setEnabled(boolean enabled)
Set the enabled state of the component |
void |
setPossibleValues(java.util.List values)
Set the list of the possible values of the component |
void |
setValue(java.lang.Object value)
Set the value of the component. |
| Methods inherited from class com.intel.gpe.gridbeans.plugins.controls.DataControl |
|---|
getDescription, isValid, setDescription, setValueTranslator, setValueValidator, translateFrom, translateTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.intel.gpe.gridbeans.plugins.IDataControl |
|---|
getDescription, setDescription, setValueTranslator, setValueValidator |
| Constructor Detail |
|---|
public TextFieldDataControl(javax.swing.JTextField field)
| Method Detail |
|---|
public void setEnabled(boolean enabled)
IDataControl
setEnabled in interface IDataControlenabled - The statepublic boolean getEnabled()
IDataControl
getEnabled in interface IDataControl
public void setValue(java.lang.Object value)
throws TranslationException
IDataControl
setValue in interface IDataControlvalue - The internal representation of the value
TranslationException - If the translation failed
public boolean isValid(java.lang.StringBuffer buf)
throws DataSetException
IDataControl
isValid in interface IDataControlbuf - The reason of validation failure is appended to this buffer.
TRUE if validation was successful
DataSetException
public java.lang.Object getValue()
throws TranslationException
IDataControl
getValue in interface IDataControlTranslationException - If the translation failedpublic void setPossibleValues(java.util.List values)
IDataControl
setPossibleValues in interface IDataControlvalues - The possible values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||