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  DataStorehas been closed | 
| void | datastoreCreated(CreoleEvent e)Called when a  DataStorehas been created | 
| void | datastoreOpened(CreoleEvent e)Called when a  DataStorehas 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  Resourcehas 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  Resourcehas 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)
CreoleListenerResource has been loaded into the systemresourceLoaded in interface CreoleListenerpublic void resourceUnloaded(CreoleEvent e)
CreoleListenerResource has been removed from the systemresourceUnloaded in interface CreoleListenerpublic void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListenerresourceRenamed in interface CreoleListenerpublic void datastoreOpened(CreoleEvent e)
CreoleListenerDataStore has been openeddatastoreOpened in interface CreoleListenerpublic void datastoreCreated(CreoleEvent e)
CreoleListenerDataStore has been createddatastoreCreated in interface CreoleListenerpublic void datastoreClosed(CreoleEvent e)
CreoleListenerDataStore has been closeddatastoreClosed in interface CreoleListenerCopyright © 2024 GATE. All rights reserved.