Trull

edu.luc.cs.trull.demo.battleship
Class WindowShip

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.demo.battleship.WindowShip
All Implemented Interfaces:
Component, EventLabels, PropertyChangeSource, Startable, Suspendable, Terminating, java.beans.PropertyChangeListener, java.util.EventListener

 class WindowShip
extends EmitComponent
implements EventLabels

User interface for entering Place and Shot events.


Field Summary
(package private)  javax.swing.JCheckBox hitIndicator
           
(package private)  javax.swing.JCheckBox sunkIndicator
           
(package private) static int windowNumber
           
 
Fields inherited from interface edu.luc.cs.trull.demo.battleship.EventLabels
HIT, PLACE, SHOT, SUNK
 
Constructor Summary
WindowShip(java.lang.String placeLabel)
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
static int toInt(javax.swing.JTextField t)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hitIndicator

javax.swing.JCheckBox hitIndicator

sunkIndicator

javax.swing.JCheckBox sunkIndicator

windowNumber

static int windowNumber
Constructor Detail

WindowShip

public WindowShip(java.lang.String placeLabel)
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class EmptyComponent

toInt

public static int toInt(javax.swing.JTextField t)

Trull

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