MOA 12.03
Real Time Analytics for Data Streams
moa.gui.ClassOptionEditComponent Class Reference

An OptionEditComponent that lets the user edit a class option. More...

Inheritance diagram for moa.gui.ClassOptionEditComponent:
Collaboration diagram for moa.gui.ClassOptionEditComponent:

List of all members.

Public Member Functions

 ClassOptionEditComponent (ClassOption option)
void applyState ()
 This method applies the state.
Option getEditedOption ()
 Gets the option of this component.
void setEditState (String cliString)
 Sets the state of the component.
void editObject ()
void addChangeListener (ChangeListener l)
 Adds the listener to the internal set of listeners.
void removeChangeListener (ChangeListener l)
 Removes the listener from the internal set of listeners.

Protected Member Functions

void notifyChangeListeners ()
 Notifies all registered change listeners that the options have changed.

Protected Attributes

ClassOption editedOption
JTextField textField = new JTextField()
JButton editButton = new JButton("Edit")
HashSet< ChangeListener > changeListeners = new HashSet<ChangeListener>()
 listeners that listen to changes to the chosen option.

Detailed Description

An OptionEditComponent that lets the user edit a class option.

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

Definition at line 44 of file ClassOptionEditComponent.java.


Constructor & Destructor Documentation

moa.gui.ClassOptionEditComponent.ClassOptionEditComponent ( ClassOption  option)

Definition at line 58 of file ClassOptionEditComponent.java.

Here is the call graph for this function:


Member Function Documentation

void moa.gui.ClassOptionEditComponent.addChangeListener ( ChangeListener  l)

Adds the listener to the internal set of listeners.

Gets notified when the option string changes.

Parameters:
lthe listener to add

Definition at line 119 of file ClassOptionEditComponent.java.

Referenced by weka.gui.MOAClassOptionEditor.createCustomEditor().

Here is the caller graph for this function:

void moa.gui.ClassOptionEditComponent.applyState ( )

This method applies the state.

Implements moa.gui.OptionEditComponent.

Definition at line 92 of file ClassOptionEditComponent.java.

Referenced by weka.gui.MOAClassOptionEditor.createCustomEditor().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.gui.ClassOptionEditComponent.editObject ( )

Definition at line 106 of file ClassOptionEditComponent.java.

Referenced by moa.gui.ClassOptionEditComponent.ClassOptionEditComponent().

Here is the call graph for this function:

Here is the caller graph for this function:

Option moa.gui.ClassOptionEditComponent.getEditedOption ( )

Gets the option of this component.

Returns:
the option of this component

Implements moa.gui.OptionEditComponent.

Definition at line 97 of file ClassOptionEditComponent.java.

Referenced by weka.gui.MOAClassOptionEditor.createCustomEditor().

Here is the caller graph for this function:

void moa.gui.ClassOptionEditComponent.notifyChangeListeners ( ) [protected]

Notifies all registered change listeners that the options have changed.

Definition at line 135 of file ClassOptionEditComponent.java.

Referenced by moa.gui.ClassOptionEditComponent.ClassOptionEditComponent().

Here is the caller graph for this function:

void moa.gui.ClassOptionEditComponent.removeChangeListener ( ChangeListener  l)

Removes the listener from the internal set of listeners.

Parameters:
lthe listener to remove

Definition at line 128 of file ClassOptionEditComponent.java.

void moa.gui.ClassOptionEditComponent.setEditState ( String  cliString)

Sets the state of the component.

Parameters:
cliStringthe state of the component

Implements moa.gui.OptionEditComponent.

Definition at line 102 of file ClassOptionEditComponent.java.

Referenced by moa.gui.ClassOptionEditComponent.ClassOptionEditComponent(), and moa.gui.ClassOptionEditComponent.editObject().

Here is the caller graph for this function:


Member Data Documentation

HashSet<ChangeListener> moa.gui.ClassOptionEditComponent.changeListeners = new HashSet<ChangeListener>() [protected]
JButton moa.gui.ClassOptionEditComponent.editButton = new JButton("Edit") [protected]

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