|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.controllers.UIController
public abstract class UIController
A controller class for handling UI events and server push updates.
| Field Summary | |
|---|---|
private boolean |
_stopRunning
|
private Desktop |
desk
|
protected org.apache.commons.logging.Log |
log
|
static int |
SLEEP_TIME
|
private AtomicBoolean |
updatesPending
|
| Constructor Summary | |
|---|---|
private |
UIController()
|
|
UIController(Desktop objDesktop)
|
| Method Summary | |
|---|---|
abstract void |
processUpdates()
Called by the UI controller thread when there are updates pending |
void |
run()
|
void |
setPendingUpdates()
Sets the updates pending flag to true, so that when the UI Controller thread checks, it will call the Controller.processUpdates() method. |
void |
stopRunning()
Sets the stop running flag, which is checked before the UI Controller thread checks for updates. |
String |
toString()
|
void |
updateDesktop(Desktop objDesktop)
Set the desktop that is locked and updated during the UI update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SLEEP_TIME
private boolean _stopRunning
private Desktop desk
private AtomicBoolean updatesPending
protected org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public UIController(Desktop objDesktop)
private UIController()
| Method Detail |
|---|
public abstract void processUpdates()
Controller
processUpdates in interface Controllerpublic void run()
run in interface Runnablepublic void setPendingUpdates()
ControllerController.processUpdates() method.
setPendingUpdates in interface Controllerpublic void stopRunning()
Controller
stopRunning in interface Controllerpublic String toString()
toString in class Objectpublic void updateDesktop(Desktop objDesktop)
Controller
updateDesktop in interface Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||