|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.gui.ParameterDisjunction
public class 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)
method.
Constructor Summary | |
---|---|
ParameterDisjunction(Resource resource,
List parameters)
Creation from a resources and a list of names. |
Method Summary | |
---|---|
void |
cleanup()
|
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. |
protected void |
updateValues(Resource res)
Called when a resource has been unloaded from the system; If any of the parameters has this resource as value then the value will be deleted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterDisjunction(Resource resource, List parameters)
resource
- 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 cleanup()
protected void updateValues(Resource res)
public void resourceLoaded(CreoleEvent e)
CreoleListener
Resource
has been loaded into the system
resourceLoaded
in interface CreoleListener
public void resourceUnloaded(CreoleEvent e)
CreoleListener
Resource
has been removed from the system
resourceUnloaded
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 opened
datastoreOpened
in interface CreoleListener
public void datastoreCreated(CreoleEvent e)
CreoleListener
DataStore
has been created
datastoreCreated
in interface CreoleListener
public void datastoreClosed(CreoleEvent e)
CreoleListener
DataStore
has been closed
datastoreClosed
in interface CreoleListener
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |