|
|||||||||
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.GridBeanPlugin
public class GridBeanPlugin
The default implementation of GridBean plugin. The plugin is responsible for the user interface of the GridBean.
Constructor Summary | |
---|---|
GridBeanPlugin(java.lang.String name)
Create the plugin. |
Method Summary | |
---|---|
void |
addInputPanel(IGridBeanPanel panel)
Add an input panel |
void |
addOutputPanel(IGridBeanPanel panel)
Add an output panel |
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. |
IGridBeanPanel[] |
getInputPanels()
Get the input panels |
java.lang.String |
getName()
Get the name of the plugin. |
IGridBeanPanel[] |
getOutputPanels()
Get the output panels |
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 |
keySet()
Get the set of the component names. |
void |
load(IGridBeanModel model,
com.intel.gpe.client.application.Client client)
Load data set component values from the GridBean model and the client object. |
void |
loadInput(IGridBeanModel model,
com.intel.gpe.client.application.Client client)
Load the values of input panels from the GridBean model |
void |
loadOutput(IGridBeanModel model,
com.intel.gpe.client.application.Client client)
Load the values of output panels from the GridBean model |
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 |
storeInput(IGridBeanModel model)
Store the values of input panels in the GridBean model |
void |
storeOutput(IGridBeanModel model)
Store the values of output panels in the GridBean model |
void |
validateInput(ErrorSet errors)
Validate the values in the input panels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridBeanPlugin(java.lang.String name)
name
- The name of the pluginMethod Detail |
---|
public void addInputPanel(IGridBeanPanel panel)
panel
- The panelpublic void addOutputPanel(IGridBeanPanel panel)
panel
- The output panelpublic IGridBeanPanel[] getInputPanels()
IGridBeanPlugin
getInputPanels
in interface IGridBeanPlugin
public IGridBeanPanel[] getOutputPanels()
IGridBeanPlugin
getOutputPanels
in interface IGridBeanPlugin
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 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 java.lang.String getName()
public void load(IGridBeanModel model, com.intel.gpe.client.application.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 loadInput(IGridBeanModel model, com.intel.gpe.client.application.Client client) throws DataSetException, TranslationException
IGridBeanPlugin
loadInput
in interface IGridBeanPlugin
model
- The GridBean modelclient
- The client object
DataSetException
TranslationException
public void loadOutput(IGridBeanModel model, com.intel.gpe.client.application.Client client) throws DataSetException, TranslationException
IGridBeanPlugin
loadOutput
in interface IGridBeanPlugin
model
- The GridBean modelclient
- The client object
DataSetException
TranslationException
public void storeInput(IGridBeanModel model) throws DataSetException, TranslationException
IGridBeanPlugin
storeInput
in interface IGridBeanPlugin
model
- The GridBean model
DataSetException
TranslationException
public void storeOutput(IGridBeanModel model) throws DataSetException, TranslationException
IGridBeanPlugin
storeOutput
in interface IGridBeanPlugin
model
- The GridBean model
DataSetException
TranslationException
public void validateInput(ErrorSet errors)
IGridBeanPlugin
validateInput
in interface IGridBeanPlugin
errors
- The set of the 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |