|
||||||||||
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.GridBeanPanel
public class GridBeanPanel
The base implementation of an input or output GridBean panel.
Field Summary | |
---|---|
protected Client |
parent2
|
Constructor Summary | |
---|---|
GridBeanPanel(Client client,
java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getCaption()
Get the caption of the tab |
IDataControl |
getControl(javax.xml.namespace.QName key)
Get the control by its name |
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.String |
getName()
Deprecated. |
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 |
linkDataControl(javax.xml.namespace.QName key,
IDataControl control)
Bind the specifed control to the specified name |
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. |
void |
updateValues(Client client)
This method is called whenever load(IGridBeanModel, Client) is called. |
void |
validate(ErrorSet errors)
Validate the contents of the panel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Client parent2
Constructor Detail |
---|
public GridBeanPanel(Client client, java.lang.String name)
Method Detail |
---|
public IDataControl getControl(javax.xml.namespace.QName key) throws DataSetException
key
- The name of the control
DataSetException
public boolean getEnabled(javax.xml.namespace.QName key) throws DataSetException
IDataSet
getEnabled
in interface IDataSet
key
- The name of the component
DataSetException
public void setEnabled(javax.xml.namespace.QName key, boolean enabled) throws DataSetException
IDataSet
setEnabled
in interface IDataSet
key
- The name of the componentenabled
- The enabled state of the component
DataSetException
public java.util.Set<javax.xml.namespace.QName> keySet()
IDataSet
keySet
in interface IDataSet
public java.lang.Object getValue(javax.xml.namespace.QName key) throws DataSetException, TranslationException
IDataSet
getValue
in interface IDataSet
key
- The name of the component
DataSetException
TranslationException
- If translation failedpublic void setValue(javax.xml.namespace.QName key, java.lang.Object value) throws DataSetException, TranslationException
IDataSet
setValue
in interface IDataSet
key
- The name of the componentvalue
- The value
DataSetException
TranslationException
- If translation failedpublic void setValueTranslator(javax.xml.namespace.QName key, IValueTranslator translator) throws DataSetException
IDataSet
setValueTranslator
in interface IDataSet
key
- The name of the componenttranslator
- The translator
DataSetException
public void setValueValidator(javax.xml.namespace.QName key, IValueValidator validator) throws DataSetException
IDataSet
setValueValidator
in interface IDataSet
key
- The name of the componentvalidator
- The validator
DataSetException
public void setDescription(javax.xml.namespace.QName key, java.lang.String descr) throws DataSetException
IDataSet
setDescription
in interface IDataSet
key
- The name of the componentdescr
- The description
DataSetException
public void setPossibleValues(javax.xml.namespace.QName key, java.util.List values) throws DataSetException, TranslationException
IDataSet
setPossibleValues
in interface IDataSet
key
- The name of the componentvalues
- The list of the possible values
DataSetException
TranslationException
public void linkDataControl(javax.xml.namespace.QName key, IDataControl control)
key
- The namecontrol
- The controlpublic void load(IGridBeanModel model, Client client) throws DataSetException, TranslationException
IDataSet
load
in interface IDataSet
model
- The GridBean modelclient
- The client
DataSetException
TranslationException
- If translation of any value failedpublic void store(IGridBeanModel model) throws DataSetException, TranslationException
IDataSet
store
in interface IDataSet
model
- The GridBean model
DataSetException
TranslationException
- If translation of any value failedpublic void updateValues(Client client)
load(IGridBeanModel, Client)
is called. Override it if you want to update
the values of the panel depending on the state of the client object.
client
- The clientpublic void validate(ErrorSet errors)
IGridBeanPanel
validate
in interface IGridBeanPanel
errors
- The set of the encountered errorspublic boolean isValid(javax.xml.namespace.QName key, java.lang.StringBuffer buf) throws DataSetException
IDataSet
isValid
in interface IDataSet
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
public java.lang.String getDescription(javax.xml.namespace.QName key) throws DataSetException
IDataSet
getDescription
in interface IDataSet
key
- The name of the component
DataSetException
@Deprecated public java.lang.String getName()
IGridBeanPanel
getName
in interface IGridBeanPanel
public java.lang.String getCaption()
IGridBeanPanel
getCaption
in interface IGridBeanPanel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |