|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.options.Option
Field Summary | |
protected int |
choiceNum
# of items in the option. |
protected int |
defaultChoice
the default choice. |
protected OptionItem[] |
optItems
option items. |
protected java.lang.String |
optLabel
the option label. |
protected int |
userChoice
user choice. |
Constructor Summary | |
Option(java.lang.String optLabel,
int choiceNum,
int defaultChoice,
int userChoice)
constructor. |
Method Summary | |
java.lang.Object |
clone()
methods from class Object |
int |
getChoiceNum()
Returns the number of choices. |
int |
getDefaultChoice()
Returns default choice. |
OptionItem |
getOptionItem(int choice)
Returns a specific option item. |
java.lang.String |
getOptLabel()
Returns the option label. |
int |
getUserChoice()
Returns user's choice. |
void |
setChoiceNum(int num)
Sets the number of choices. |
void |
setDefaultChoice(int choice)
Sets the default choice. |
void |
setOptionItems(OptionItem[] items)
Sets the option items. |
void |
setUserChoice(int choice)
Sets the user choice. |
java.lang.String |
toString()
methods from class Object |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String optLabel
protected int choiceNum
protected int defaultChoice
protected int userChoice
protected OptionItem[] optItems
Constructor Detail |
public Option(java.lang.String optLabel, int choiceNum, int defaultChoice, int userChoice)
optLabel
- the option label.defaultChoice
- the default choice.userChoice
- the user's choice.Method Detail |
public java.lang.String getOptLabel()
public int getChoiceNum()
public int getDefaultChoice()
public int getUserChoice()
public OptionItem getOptionItem(int choice)
choice
- the specific choice.
public void setChoiceNum(int num)
num
- the number to set.public void setDefaultChoice(int choice)
choice
- the default choice to set.public void setUserChoice(int choice)
choice
- the user choice to set.public void setOptionItems(OptionItem[] items)
items
- the option items to set.public java.lang.String toString()
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |