Class ButtonGrid
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ButtonGrid
- public class ButtonGrid
- extends Panel
-
ButtonGrid(String[], Output, boolean, boolean, int, int)
- ButtonGrid(String[], Output, boolean, boolean, int, int) is a constructor
-
addToHistory(String)
- addToHistory(String) is invoked when a string is to be added to the historylist
-
handleEvent(Event)
- handleEvent(Event) is invoked when an Event is generated.
Deprecated.
ButtonGrid
public ButtonGrid(String buttonarray[],
Output output,
boolean textcomp,
boolean historycomp,
int historyheight,
int visibleheight)
- ButtonGrid(String[], Output, boolean, boolean, int, int) is a constructor
- Parameters:
- buttonarray - an array with the button labels
- output - the object that is used as output
- textcomp - is true if the textfield should be used
- historycomp - is true if the historylist should be used
- historyheight - the amount of rows in the historylist
- visibleheight - the amount of visible rows in the historylist
handleEvent
public boolean handleEvent(Event e)
- Note: handleEvent() is deprecated.
handleEvent() is replaced by actionPerformed() in Java 1.1
- handleEvent(Event) is invoked when an Event is generated. This method is deprecated in Java 1.1 and has been replaced by actionPerformed()
- Parameters:
- e - the Event
- Returns:
- true if handled
- Overrides:
- handleEvent in class Component
addToHistory
public void addToHistory(String str)
- addToHistory(String) is invoked when a string is to be added to the historylist
- Parameters:
- str - the string to be added to the historylist