edu.luc.cs.trull.demo.office
Class OfficeUI
java.lang.Object
edu.luc.cs.trull.EmptyComponent
edu.luc.cs.trull.TerminatingComponent
edu.luc.cs.trull.AbstractComponent
edu.luc.cs.trull.EmitComponent
edu.luc.cs.trull.demo.office.OfficeUI
- All Implemented Interfaces:
- Component, EventLabels, PropertyChangeSource, Startable, Suspendable, Terminating, java.beans.PropertyChangeListener, java.util.EventListener
public class OfficeUI
- extends EmitComponent
- implements EventLabels
The occupant control panel for an office. It provides a
target temperature setting, a light switch,
and the ability to open or close the door. It also displays
the actual ambient temperature, whether the heat is on, and whether
the light is on.
| Fields inherited from interface edu.luc.cs.trull.demo.office.EventLabels |
AWAKE, DOORCLOSE, DOOROPEN, ECONOMYMODE, HEATOFF, HEATON, LIGHTOFF, LIGHTON, OCCUPANTMODE, REQUESTTEMP, SETTEMP, SLEEP, SWITCHOFF, SWITCHON, TEMP |
|
Constructor Summary |
OfficeUI(java.lang.String name)
|
|
Method Summary |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
private static int count
economyStatus
private javax.swing.JCheckBox economyStatus
frame
private javax.swing.JFrame frame
heatStatus
private javax.swing.JCheckBox heatStatus
lightStatus
private javax.swing.JCheckBox lightStatus
tempStatus
private javax.swing.JSlider tempStatus
OfficeUI
public OfficeUI(java.lang.String name)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener- Overrides:
propertyChange in class EmptyComponent
http://www.cs.luc.edu/trull/