net.codescore.controllers
Interface Controller

All Superinterfaces:
Runnable
All Known Implementing Classes:
CompController, HomeController, JudgeController, SchoolController, ScoreBoardController, TeamController, UIController

public interface Controller
extends Runnable

A generic controller for controlling a ZK UI window.

Author:
Adam Cornett

Method Summary
 void processUpdates()
          Called by the UI controller thread when there are updates pending
 void setPendingUpdates()
          Sets the updates pending flag to true, so that when the UI Controller thread checks, it will call the processUpdates() method.
 void stopRunning()
          Sets the stop running flag, which is checked before the UI Controller thread checks for updates.
 void updateDesktop(Desktop objDesktop)
          Set the desktop that is locked and updated during the UI update.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

processUpdates

void processUpdates()
Called by the UI controller thread when there are updates pending


setPendingUpdates

void setPendingUpdates()
Sets the updates pending flag to true, so that when the UI Controller thread checks, it will call the processUpdates() method.


stopRunning

void stopRunning()
Sets the stop running flag, which is checked before the UI Controller thread checks for updates. This method will not guarantee that the UI Controller thread will stop immediately, but only that the next time it wakes up it will exit the main execution loop.


updateDesktop

void updateDesktop(Desktop objDesktop)
Set the desktop that is locked and updated during the UI update.

Parameters:
objDesktop -


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.