All Packages Class Hierarchy This Package Previous Next Index
Class ChaosDemos.choiceControls
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ChaosDemos.choiceControls
- public class choiceControls
- extends Panel
Class to install n labelled yes/no choices.
- Version:
- March 15 1997
- Author:
- Michael Cross
-
choiceControls(dynamicGraph, String[])
-
-
action(Event, Object)
- Handle button events: calls respondToButtons(int i) in
parent.
-
disable(int)
- Disable i th control
-
enable(int)
- Enable i th control
-
getState(int)
- Gets ith yes/no
-
setState(int, boolean)
- Sets ith yes/no
choiceControls
public choiceControls(dynamicGraph target,
String intext[])
- Parameters:
- target - parent of type dynamicGraph
- intext - vector of button labels
setState
public void setState(int i,
boolean yesno)
- Sets ith yes/no
- Parameters:
- i - index
- yesno - true for yes; false for no
getState
public boolean getState(int i)
- Gets ith yes/no
- Parameters:
- i - index
- Returns:
- true for yes; false for no
action
public boolean action(Event evt,
Object arg)
- Handle button events: calls respondToButtons(int i) in
parent.
- Overrides:
- action in class Component
enable
public void enable(int i)
- Enable i th control
disable
public void disable(int i)
- Disable i th control
All Packages Class Hierarchy This Package Previous Next Index