|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataControl
The interface of an object that binds a GUI control to a name within the
IDataSet
.
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the control description. |
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 |
setDescription(java.lang.String descr)
Set the description of the component. |
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. |
void |
setValueTranslator(IValueTranslator translator)
Set the translator that translates the value to the user's representation and back. |
void |
setValueValidator(IValueValidator validator)
Set the validator of the component value. |
Method Detail |
---|
void setEnabled(boolean enabled) throws DataSetException
enabled
- The state
DataSetException
boolean getEnabled() throws DataSetException
DataSetException
void setValue(java.lang.Object value) throws TranslationException, DataSetException
value
- The internal representation of the value
TranslationException
- If the translation failed
DataSetException
void setValueTranslator(IValueTranslator translator) throws DataSetException
translator
- The translator
DataSetException
void setValueValidator(IValueValidator validator) throws DataSetException
validator
- The validator
DataSetException
boolean isValid(java.lang.StringBuffer buf) throws DataSetException
buf
- The reason of validation failure is appended to this buffer.
TRUE
if validation was successful
DataSetException
void setDescription(java.lang.String descr) throws DataSetException
descr
- The description
DataSetException
java.lang.String getDescription() throws DataSetException
DataSetException
java.lang.Object getValue() throws TranslationException, DataSetException
TranslationException
- If the translation failed
DataSetException
void setPossibleValues(java.util.List values) throws TranslationException, DataSetException
values
- The possible values
TranslationException
- If translation of any value failed
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |