|
||||||||||
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 abstract class GridBeanPlugin
The default implementation of GridBean plugin. The plugin is responsible for the user interface of the GridBean.
Field Summary | |
---|---|
protected Client |
client
|
protected javax.swing.Icon |
icon
|
Constructor Summary | |
---|---|
GridBeanPlugin()
|
|
GridBeanPlugin(java.lang.String name)
Deprecated. |
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. |
javax.swing.Icon |
getIcon()
Get the icon for a GridBean (to be displayed in the workflow). |
static javax.swing.Icon |
getIcon(java.lang.Class clazz,
java.lang.String path)
|
protected javax.swing.Icon |
getOrCreateIcon(java.lang.Class clazz,
java.lang.String iconPath)
|
java.lang.Object |
getValue(javax.xml.namespace.QName key)
Get the translated value of the component. |
void |
initialize(Client client)
Initialize GridBean. |
protected abstract IGridBeanPanel |
inputPanel(int i)
|
protected abstract int |
inputPanelsListSize()
|
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 |
loadInput(IGridBeanModel model,
Client client)
Load the values of input panels from the GridBean model. |
void |
loadOutput(IGridBeanModel model,
Client client)
Load the values of output panels from the GridBean model Experimental code. |
protected abstract IGridBeanPanel |
outputPanel(int i)
|
protected abstract int |
outputPanelsListSize()
|
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 |
Field Detail |
---|
protected Client client
protected javax.swing.Icon icon
Constructor Detail |
---|
@Deprecated public GridBeanPlugin(java.lang.String name)
public GridBeanPlugin()
Method Detail |
---|
protected abstract int inputPanelsListSize()
protected abstract IGridBeanPanel inputPanel(int i)
protected abstract int outputPanelsListSize()
protected abstract IGridBeanPanel outputPanel(int i)
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 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 loadInput(IGridBeanModel model, Client client) throws DataSetException, TranslationException
IGridBeanPlugin
loadInput
in interface IGridBeanPlugin
model
- The GridBean modelclient
- The client object
DataSetException
TranslationException
public void loadOutput(IGridBeanModel model, 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
public static javax.swing.Icon getIcon(java.lang.Class clazz, java.lang.String path)
protected javax.swing.Icon getOrCreateIcon(java.lang.Class clazz, java.lang.String iconPath)
public javax.swing.Icon getIcon()
IGridBeanPlugin
getIcon
in interface IGridBeanPlugin
public void initialize(Client client)
IGridBeanPlugin
initialize
in interface IGridBeanPlugin
client
- The client instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |