|
||||||||||
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.ComboBoxDataControl
public class ComboBoxDataControl
The data control for JComboBox
.
Use setPossibleValues to set the elements in the list. Then the value of the list control is the selected element.
Constructor Summary | |
---|---|
ComboBoxDataControl(javax.swing.JComboBox comboBox)
|
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 ComboBoxDataControl(javax.swing.JComboBox comboBox)
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 |