|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.gui.ParameterDisjunction
Represents a list of Parameters which are alternative to each other.
This class only gives access to one of those parameters ot any one moment.
The currently accessible (selected) parameter can be changed using the
setSelectedIndex(int index)
method.
Constructor Summary | |
ParameterDisjunction(Resource resource,
List parameters)
Creation from a resources and a list of names. |
Method Summary | |
void |
datastoreClosed(CreoleEvent e)
Called when a DataStore has been closed |
void |
datastoreCreated(CreoleEvent e)
Called when a DataStore has been created |
void |
datastoreOpened(CreoleEvent e)
Called when a DataStore has been opened |
String |
getComment()
returns the comment for the curently selected parameter. |
String |
getName()
returns the name of the curently selected parameter. |
String[] |
getNames()
Returns the names of the parameters in this disjunction. |
Parameter |
getParameter()
|
Parameter[] |
getParameters()
|
String |
getType()
returns the type for the curently selected parameter. |
Object |
getValue()
|
Boolean |
isRequired()
is the currently selected parameter required? |
void |
resourceLoaded(CreoleEvent e)
Called when a new Resource has been loaded into the system |
void |
resourceRenamed(Resource resource,
String oldName,
String newName)
Called when the creole register has renamed a resource.1 |
void |
resourceUnloaded(CreoleEvent e)
Called when a Resource has been removed from the system |
void |
setSelectedIndex(int index)
Sets the currently selected parameter for this disjunction. |
void |
setValue(Object value)
|
int |
size()
gets the number of parameters in this disjunction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParameterDisjunction(Resource resource, List parameters)
the
- resource these parameters belong to.parameters
- a list containing the parameters in this paramater d
isjunction; each element is a Parameter
.Method Detail |
public void setSelectedIndex(int index)
public int size()
public Boolean isRequired()
public String getName()
public String getComment()
public String getType()
public String[] getNames()
public void setValue(Object value)
public Object getValue()
public Parameter[] getParameters()
public Parameter getParameter()
public void resourceLoaded(CreoleEvent e)
CreoleListener
Resource
has been loaded into the systemresourceLoaded
in interface CreoleListener
public void resourceUnloaded(CreoleEvent e)
CreoleListener
Resource
has been removed from the systemresourceUnloaded
in interface CreoleListener
public void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListener
resourceRenamed
in interface CreoleListener
public void datastoreOpened(CreoleEvent e)
CreoleListener
DataStore
has been openeddatastoreOpened
in interface CreoleListener
public void datastoreCreated(CreoleEvent e)
CreoleListener
DataStore
has been createddatastoreCreated
in interface CreoleListener
public void datastoreClosed(CreoleEvent e)
CreoleListener
DataStore
has been closeddatastoreClosed
in interface CreoleListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |