|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.gui.SwingUpdater
public class SwingUpdater
Controller for recieving updates during execution and then scheduling them on the GUI thread for updating the GUI.
Nested Class Summary | |
---|---|
class |
SwingUpdater.DoChange
Class object representing a message containing info about the current state of the application's execution. |
Constructor Summary | |
---|---|
SwingUpdater(RatGui gui)
Create a new updater linked to the GUI |
Method Summary | |
---|---|
void |
publishChange(Model m,
int type,
int argument)
Recieve and update of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingUpdater(RatGui gui)
gui
- GUI to publishn to.Method Detail |
---|
public void publishChange(Model m, int type, int argument)
Listener
publishChange
in interface Listener
m
- model that changedtype
- type of change that has occured
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |