|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.gpe.gridbeans.plugins.controls.GroupControl
public class GroupControl
The group of controls. All the controls have the same enabled state.
One of the controls is chosen as the main component and is used to
perform IDataControl.setValue(Object)
and IDataControl.getValue()
operations
on the group.
Constructor Summary | |
---|---|
GroupControl(IDataSet dataSet,
javax.xml.namespace.QName[] keys,
javax.xml.namespace.QName mainComponent)
Create the group control. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupControl(IDataSet dataSet, javax.xml.namespace.QName[] keys, javax.xml.namespace.QName mainComponent)
dataSet
- The target data setkeys
- The array of names of the controlsmainComponent
- The main component of the groupMethod Detail |
---|
public void setEnabled(boolean enabled) throws DataSetException
IDataControl
setEnabled
in interface IDataControl
enabled
- The state
DataSetException
public boolean getEnabled() throws DataSetException
IDataControl
getEnabled
in interface IDataControl
DataSetException
public void setValue(java.lang.Object value) throws TranslationException, DataSetException
IDataControl
setValue
in interface IDataControl
value
- The internal representation of the value
TranslationException
- If the translation failed
DataSetException
public 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, DataSetException
IDataControl
getValue
in interface IDataControl
TranslationException
- If the translation failed
DataSetException
public void setPossibleValues(java.util.List values) throws TranslationException, DataSetException
IDataControl
setPossibleValues
in interface IDataControl
values
- The possible values
TranslationException
- If translation of any value failed
DataSetException
public void setValueTranslator(IValueTranslator translator) throws DataSetException
IDataControl
setValueTranslator
in interface IDataControl
translator
- The translator
DataSetException
public void setValueValidator(IValueValidator validator) throws DataSetException
IDataControl
setValueValidator
in interface IDataControl
validator
- The validator
DataSetException
public void setDescription(java.lang.String descr) throws DataSetException
IDataControl
setDescription
in interface IDataControl
descr
- The description
DataSetException
public java.lang.String getDescription() throws DataSetException
IDataControl
getDescription
in interface IDataControl
DataSetException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |