Trull

edu.luc.cs.trull.swing
Class InputPanel

java.lang.Object
  extended by edu.luc.cs.trull.EmptyComponent
      extended by edu.luc.cs.trull.TerminatingComponent
          extended by edu.luc.cs.trull.AbstractComponent
              extended by edu.luc.cs.trull.EmitComponent
                  extended by edu.luc.cs.trull.swing.ActionEventAdapter
                      extended by edu.luc.cs.trull.swing.InputPanel
All Implemented Interfaces:
Component, PropertyChangeSource, Startable, Suspendable, VisualComponent, Terminating, java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.util.EventListener

public class InputPanel
extends ActionEventAdapter
implements VisualComponent

A visual component that provides a user interface consisting of a button panel. There is one button for each String event label specified in the constructor argument.


Field Summary
protected  javax.swing.JPanel buttonPanel
          The panel that contains the buttons.
 
Constructor Summary
InputPanel(java.lang.String[] labels)
          Constructs an input panel with one button for each label in the array.
 
Method Summary
 javax.swing.JComponent getView()
          Returns the Swing component associated with this Trull component.
 
Methods inherited from class edu.luc.cs.trull.swing.ActionEventAdapter
actionPerformed
 
Methods inherited from class edu.luc.cs.trull.EmitComponent
eventEmitter, eventEmitterCached, eventEmitterUncached, resume, scheduleEvent, scheduleEvent, scheduleEvent, start, stop, suspend
 
Methods inherited from class edu.luc.cs.trull.AbstractComponent
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getExternalListeners, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from class edu.luc.cs.trull.TerminatingComponent
fireTermination, getParent, getTermEvent, scheduleTermination, setTerminationListener
 
Methods inherited from class edu.luc.cs.trull.EmptyComponent
getTerminationListener, propertyChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.luc.cs.trull.PropertyChangeSource
addPropertyChangeListener, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from interface edu.luc.cs.trull.Startable
start, stop
 
Methods inherited from interface edu.luc.cs.trull.Suspendable
resume, suspend
 
Methods inherited from interface edu.luc.cs.trull.Terminating
getTerminationListener, setTerminationListener
 

Field Detail

buttonPanel

protected final javax.swing.JPanel buttonPanel
The panel that contains the buttons.

Constructor Detail

InputPanel

public InputPanel(java.lang.String[] labels)
Constructs an input panel with one button for each label in the array.

Parameters:
labels - the labels for the buttons.
Method Detail

getView

public javax.swing.JComponent getView()
Description copied from interface: VisualComponent
Returns the Swing component associated with this Trull component.

Specified by:
getView in interface VisualComponent
Returns:
the associated Swing component.

Trull

http://www.cs.luc.edu/trull/