|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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 IDataControl
enabled
- The statepublic boolean getEnabled()
IDataControl
getEnabled
in interface IDataControl
public void setValue(java.lang.Object value) throws TranslationException
IDataControl
setValue
in interface IDataControl
value
- The internal representation of the value
TranslationException
- If the translation failedpublic boolean isValid(java.lang.StringBuffer buf) throws DataSetException
IDataControl
isValid
in interface IDataControl
buf
- 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 IDataControl
TranslationException
- If the translation failedpublic void setPossibleValues(java.util.List values)
IDataControl
setPossibleValues
in interface IDataControl
values
- The possible values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |