|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--OME.Choice
This class contains the information necessary to present a particular option to a user and to record thier response to that option (ie whether the option should be selected or not). This class is used by CheckboxChooser and could be used by other classes in the future (maybe a RadiobuttonChooser etc).
Constructor Summary | |
Choice()
Creates a Choice. |
|
Choice(java.lang.String name)
Creates a Choice with the specified name. |
Method Summary | |
java.lang.Object |
choiceObject()
This method returns the object associated with this Choice. |
boolean |
chosen()
Returns whether this Choice has been chosen. |
java.lang.String |
description()
Returns the (user-friendly) description for this Choice. |
java.lang.String |
getName()
Returns the name of this Choice. |
boolean |
isEnabled()
returns whether this Choice is enabled. |
boolean |
mandatory()
Returns whether this Choice is mandatory or not. |
java.lang.String |
name()
Returns the (user-friendly) name of this Choice. |
void |
setChoiceObject(java.lang.Object o)
Sets the Object associated with this Choice. |
void |
setChosen(boolean b)
Sets whether this Choice is chosen. |
void |
setDescription(java.lang.String s)
Sets the description of this Choice. |
void |
setEnabled(boolean b)
sets whether the Choice should be enabled. |
void |
setMandatory(boolean m)
Sets whether this choice is mandatory or not. |
void |
setName(java.lang.String s)
Sets the name of this Choice. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Choice()
public Choice(java.lang.String name)
name
- the name of this Choice
.Method Detail |
public boolean mandatory()
public java.lang.String name()
public java.lang.String description()
Choice
.public boolean chosen()
public java.lang.Object choiceObject()
public void setMandatory(boolean m)
m
- the boolean value indicating whether this Choice
is mandatory or not.public void setName(java.lang.String s)
s
- the name of the Choice
.public java.lang.String getName()
Choice
.public void setDescription(java.lang.String s)
s
- the description of this Choice
.public void setChosen(boolean b)
b
- a boolean value indicating whether this Choice
is
chosen or not.public void setChoiceObject(java.lang.Object o)
o
- the object
associated with this
Choice
.public void setEnabled(boolean b)
b
- a boolean value indicating whether this Choice
is
enabled or not.public boolean isEnabled()
Choice
is enabled or not.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |