|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.actor.gt.GTIngredientElement ptolemy.actor.gt.ingredients.criteria.CriterionElement ptolemy.actor.gt.ingredients.criteria.StringCriterionElement ptolemy.actor.gt.ingredients.criteria.ChoiceCriterionElement
public class ChoiceCriterionElement
A choice element for a criterion.
Red (tfeng) |
Yellow (tfeng) |
Field Summary | |
---|---|
private java.util.List<java.lang.Object> |
_choices
The list of choices. |
private boolean |
_editable
Whether a new value can be input in the edit box. |
Constructor Summary | |
---|---|
ChoiceCriterionElement(java.lang.String name,
boolean canDisable)
Construct a choice element for a criterion. |
|
ChoiceCriterionElement(java.lang.String name,
boolean canDisable,
boolean acceptRegularExpression,
boolean acceptPtolemyExpression,
boolean editable)
Construct a choice element for a criterion. |
Method Summary | |
---|---|
void |
addChoice(java.lang.Object choice)
Add a choice to the end of choices. |
void |
addChoices(java.util.Collection<?> choices)
Add choices to the end of choices. |
java.util.List<java.lang.Object> |
getChoices()
Get an unmodifiable list of all the choices. |
boolean |
isEditable()
Return whether a new value can be input in the edit box. |
void |
removeChoice(java.lang.Object choice)
Remove a choice from the list of choices. |
void |
removeChoices(java.util.Collection<?> choices)
Remove choices from the list of choices. |
Methods inherited from class ptolemy.actor.gt.ingredients.criteria.StringCriterionElement |
---|
acceptPtolemyExpression, acceptRegularExpression |
Methods inherited from class ptolemy.actor.gt.GTIngredientElement |
---|
canDisable, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<java.lang.Object> _choices
private boolean _editable
Constructor Detail |
---|
public ChoiceCriterionElement(java.lang.String name, boolean canDisable)
name
- The name of the element.canDisable
- Whether the element can be disabled.public ChoiceCriterionElement(java.lang.String name, boolean canDisable, boolean acceptRegularExpression, boolean acceptPtolemyExpression, boolean editable)
name
- The name of the element.canDisable
- Whether the element can be disabled.acceptRegularExpression
- Whether regular expression is accepted.acceptPtolemyExpression
- Whether Ptolemy expression is accepted.editable
- Whether a new value can be input in the edit box.Method Detail |
---|
public void addChoice(java.lang.Object choice)
choice
- The new choice.public void addChoices(java.util.Collection<?> choices)
choices
- The new choices.public java.util.List<java.lang.Object> getChoices()
public boolean isEditable()
public void removeChoice(java.lang.Object choice)
choice
- The choice to be removed.public void removeChoices(java.util.Collection<?> choices)
choices
- The choices to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |