Class ButtonGrid
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ButtonGrid
- public class ButtonGrid
- extends Panel
- implements ActionListener
-
ButtonGrid(String[], Output, boolean, boolean, int, int)
- ButtonGrid(String[], Output, boolean, boolean, int, int) is a constructor
-
actionPerformed(ActionEvent)
- actionPerformed(ActionEvent) is invoked when an ActionEvent is generated
-
addToHistory(String)
- addToHistory(String) is invoked when a string is to be added to the historylist
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
actionPerformed
public void actionPerformed(ActionEvent e)
- actionPerformed(ActionEvent) is invoked when an ActionEvent is generated
- Parameters:
- e - the ActionEvent
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