|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataSet
The graphical data set. Each graphical user interface component is associated with a name (@link javax.xml.namespace.QName). The value of the component can be set or get. When the value is set it is first translated from its internal representation to its user representation (usually
Method Summary | |
---|---|
java.lang.String |
getDescription(javax.xml.namespace.QName key)
Get the description of the component. |
boolean |
getEnabled(javax.xml.namespace.QName key)
Get the state of the component. |
java.lang.Object |
getValue(javax.xml.namespace.QName key)
Get the translated value of the component. |
boolean |
isValid(javax.xml.namespace.QName key,
java.lang.StringBuffer buf)
Check if the value of the component is valid. |
java.util.Set<javax.xml.namespace.QName> |
keySet()
Get the set of the component names. |
void |
load(IGridBeanModel model,
Client client)
Load data set component values from the GridBean model and the client object. |
void |
setDescription(javax.xml.namespace.QName key,
java.lang.String descr)
Set the description of the specified component |
void |
setEnabled(javax.xml.namespace.QName key,
boolean enabled)
Set the enabled state of the component |
void |
setPossibleValues(javax.xml.namespace.QName key,
java.util.List values)
Set the possible values for the specified component |
void |
setValue(javax.xml.namespace.QName key,
java.lang.Object value)
Set the value of the component. |
void |
setValueTranslator(javax.xml.namespace.QName key,
IValueTranslator translator)
Set the translator for the specified component |
void |
setValueValidator(javax.xml.namespace.QName key,
IValueValidator validator)
Set the validator for the specified component |
void |
store(IGridBeanModel model)
Store the component values in the GridBean model. |
Method Detail |
---|
boolean getEnabled(javax.xml.namespace.QName key) throws DataSetException
key
- The name of the component
DataSetException
void setEnabled(javax.xml.namespace.QName key, boolean enabled) throws DataSetException
key
- The name of the componentenabled
- The enabled state of the component
DataSetException
java.util.Set<javax.xml.namespace.QName> keySet()
java.lang.Object getValue(javax.xml.namespace.QName key) throws DataSetException, TranslationException
key
- The name of the component
DataSetException
TranslationException
- If translation failedvoid setValue(javax.xml.namespace.QName key, java.lang.Object value) throws DataSetException, TranslationException
key
- The name of the componentvalue
- The value
DataSetException
TranslationException
- If translation failedvoid setValueTranslator(javax.xml.namespace.QName key, IValueTranslator translator) throws DataSetException
key
- The name of the componenttranslator
- The translator
DataSetException
void setValueValidator(javax.xml.namespace.QName key, IValueValidator validator) throws DataSetException
key
- The name of the componentvalidator
- The validator
DataSetException
void setDescription(javax.xml.namespace.QName key, java.lang.String descr) throws DataSetException
key
- The name of the componentdescr
- The description
DataSetException
void setPossibleValues(javax.xml.namespace.QName key, java.util.List values) throws DataSetException, TranslationException
key
- The name of the componentvalues
- The list of the possible values
DataSetException
TranslationException
void load(IGridBeanModel model, Client client) throws DataSetException, TranslationException
model
- The GridBean modelclient
- The client
DataSetException
TranslationException
- If translation of any value failedvoid store(IGridBeanModel model) throws DataSetException, TranslationException
model
- The GridBean model
DataSetException
TranslationException
- If translation of any value failedboolean isValid(javax.xml.namespace.QName key, java.lang.StringBuffer buf) throws DataSetException
key
- The name of the componentbuf
- The reason of the failure of validation check is appended here
true
if the value of the specified component is valid
DataSetException
java.lang.String getDescription(javax.xml.namespace.QName key) throws DataSetException
key
- The name of the component
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |