Class ButtonGrid

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ButtonGrid

public class ButtonGrid
extends Panel
implements ActionListener

Constructor Index

 o ButtonGrid(String[], Output, boolean, boolean, int, int)
ButtonGrid(String[], Output, boolean, boolean, int, int) is a constructor

Method Index

 o actionPerformed(ActionEvent)
actionPerformed(ActionEvent) is invoked when an ActionEvent is generated
 o addToHistory(String)
addToHistory(String) is invoked when a string is to be added to the historylist

Constructors

 o 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

Methods

 o actionPerformed
  public void actionPerformed(ActionEvent e)
actionPerformed(ActionEvent) is invoked when an ActionEvent is generated

Parameters:
e - the ActionEvent
 o 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