public class ParameterDisjunction extends Object implements CreoleListener
setSelectedIndex(int)
method.Constructor and Description |
---|
ParameterDisjunction(Resource resource,
List<Parameter> parameters)
Creation from a resources and a list of names.
|
Modifier and Type | Method and Description |
---|---|
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() |
int |
getSelectedIndex()
Gets the currently selected parameter for this disjunction.
|
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.
|
public ParameterDisjunction(Resource resource, List<Parameter> parameters)
resource
- the resource these parameters belong to.parameters
- a list containing the parameters in this paramater d
isjunction; each element is a Parameter
.public void setSelectedIndex(int index)
public int getSelectedIndex()
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 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
Copyright © 2024 GATE. All rights reserved.