MOA 12.03
Real Time Analytics for Data Streams
moa.options.MultiChoiceOption Class Reference

Multi choice option. More...

Inheritance diagram for moa.options.MultiChoiceOption:
Collaboration diagram for moa.options.MultiChoiceOption:

List of all members.

Public Member Functions

 MultiChoiceOption (String name, char cliChar, String purpose, String[] optionLabels, String[] optionDescriptions, int defaultOptionIndex)
String getDefaultCLIString ()
 Gets the Command Line Interface text.
String getValueAsCLIString ()
 Gets the value of a Command Line Interface text as a string.
void setValueViaCLIString (String s)
 Sets value of this option via the Command Line Interface text.
void setChosenLabel (String label)
void setChosenIndex (int index)
String[] getOptionLabels ()
String getChosenLabel ()
int getChosenIndex ()
JComponent getEditComponent ()
 Gets the GUI component to edit.

Protected Attributes

String[] optionLabels
String[] optionDescriptions
int defaultOptionIndex
int chosenOptionIndex

Detailed Description

Multi choice option.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 32 of file MultiChoiceOption.java.


Constructor & Destructor Documentation

moa.options.MultiChoiceOption.MultiChoiceOption ( String  name,
char  cliChar,
String  purpose,
String[]  optionLabels,
String[]  optionDescriptions,
int  defaultOptionIndex 
)

Definition at line 44 of file MultiChoiceOption.java.

Here is the call graph for this function:


Member Function Documentation

String moa.options.MultiChoiceOption.getChosenLabel ( )

Definition at line 98 of file MultiChoiceOption.java.

Referenced by moa.options.MultiChoiceOption.getValueAsCLIString().

Here is the caller graph for this function:

String moa.options.MultiChoiceOption.getDefaultCLIString ( )

Gets the Command Line Interface text.

Returns:
the Command Line Interface text

Implements moa.options.Option.

Definition at line 58 of file MultiChoiceOption.java.

JComponent moa.options.MultiChoiceOption.getEditComponent ( )

Gets the GUI component to edit.

Returns:
the component to edit

Reimplemented from moa.options.AbstractOption.

Definition at line 107 of file MultiChoiceOption.java.

String [] moa.options.MultiChoiceOption.getOptionLabels ( )

Definition at line 94 of file MultiChoiceOption.java.

Referenced by moa.gui.MultiChoiceOptionEditComponent.MultiChoiceOptionEditComponent().

Here is the caller graph for this function:

String moa.options.MultiChoiceOption.getValueAsCLIString ( )

Gets the value of a Command Line Interface text as a string.

Returns:
the string with the value of the Command Line Interface text

Implements moa.options.Option.

Definition at line 63 of file MultiChoiceOption.java.

Here is the call graph for this function:

void moa.options.MultiChoiceOption.setChosenIndex ( int  index)

Definition at line 87 of file MultiChoiceOption.java.

Referenced by moa.gui.MultiChoiceOptionEditComponent.applyState(), and moa.options.MultiChoiceOption.setValueViaCLIString().

Here is the caller graph for this function:

void moa.options.MultiChoiceOption.setChosenLabel ( String  label)

Definition at line 76 of file MultiChoiceOption.java.

Referenced by moa.options.MultiChoiceOption.setValueViaCLIString().

Here is the caller graph for this function:

void moa.options.MultiChoiceOption.setValueViaCLIString ( String  s)

Sets value of this option via the Command Line Interface text.

Parameters:
sthe Command Line Interface text

Implements moa.options.Option.

Definition at line 68 of file MultiChoiceOption.java.

Referenced by moa.gui.MultiChoiceOptionEditComponent.setEditState().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 38 of file MultiChoiceOption.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations