net.thestump.ghronos
Class Ghronos

java.lang.Object
  extended bywaba.ui.Control
      extended bywaba.ui.Container
          extended bywaba.ui.Window
              extended bywaba.ui.MainWindow
                  extended bynet.thestump.ghronos.Ghronos
All Implemented Interfaces:
waba.fx.ISurface, superwaba.ext.xplat.io.Storable

public class Ghronos
extends waba.ui.MainWindow
implements superwaba.ext.xplat.io.Storable

The main application window

Author:
Christopher C. Stump

Field Summary
 
Fields inherited from class waba.ui.MainWindow
defaultFont
 
Fields inherited from class waba.ui.Window
beepIfOut, borderStyle, canDrag, eraseBackgroundNow, flicker, HIDE_STATE, highResPrepared, imgCovered, lastSwappedContainer, mainSwapContainer, menubar, needsPaint, NO_BORDER, RECT_BORDER, ROUND_BORDER, TAB_BORDER, TAB_ONLY_BORDER, title, titleFont, topMost, VK_BOTTOM, VK_HIDE, VK_SHOW, VK_TOP, zStack
 
Fields inherited from class waba.ui.Container
BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_SIMPLE, children, lastH, lastW, lastX, lastY, parentWindow, tail
 
Fields inherited from class waba.ui.Control
AFTER, appId, asContainer, asWindow, backColor, backDis, BEFORE, BOTTOM, CENTER, enabled, FILL, FIT, fm, fmH, focusLess, font, foreColor, foreDis, height, LEFT, parent, PREFERRED, RANGE, RIGHT, SAME, TOP, visible, width, x, x2, y, y2
 
Constructor Summary
Ghronos()
           
 
Method Summary
 byte getID()
           
 superwaba.ext.xplat.io.Storable getInstance()
           
 void loadState(superwaba.ext.xplat.io.DataStream ds)
           
 void onEvent(waba.ui.Event event)
           
 void onExit()
           
 void onStart()
           
 void saveState(superwaba.ext.xplat.io.DataStream ds)
           
 void setClocks(Clock tClock, Clock bClock)
          If a call to Mediator.replaceClock is made, the Mediator must make this callback to change clock references in the MainWindow for saving on exit
 void setState(StateLabel lbl)
          If a call to Mediator.replaceState is made, the Mediator must make this callback to change clock references in the MainWindow for saving on exit
 
Methods inherited from class waba.ui.MainWindow
_onTimerTick, _runThreads, addThread, addTimer, appEnding, appStarting, exit, getCommandLine, getFontMetrics, getMainWindow, killThreads, removeThread, removeTimer
 
Methods inherited from class waba.ui.Window
_doPaint, _doPaint, _postEvent, damageRect, destroyZStack, dontSaveBehind, getClientRect, getClientRect, getFocus, getOffScreen, getPreferredHeight, getPreferredWidth, getTopMost, isTopMost, isVisible, loadBehind, makeUnmovable, onClickedOutside, onPopup, onUnpop, paintTitle, popupBlockingModal, popupMenuBar, popupModal, postPopup, postUnpop, pumpEvents, saveBehind, setBorderStyle, setDoubleBuffer, setFocus, setMenuBar, setStatePosition, setTitle, setTitleFont, swap, swapFocus, unpop, updateScreen, validate
 
Methods inherited from class waba.ui.Container
add, add, add, broadcastEvent, findChild, getChildren, onAdd, onColorsChanged, onPaint, onRemove, paintChildren, remove, setEnabled
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getAbsoluteRect, getBackColor, getFont, getForeColor, getNext, getParent, getParentWindow, getPos, getRect, getSize, isDisplayed, isEnabled, onBoundsChanged, onFontChanged, onWindowPaintFinished, postEvent, repaint, repaintNow, requestFocus, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ghronos

public Ghronos()
Method Detail

onStart

public void onStart()

onEvent

public void onEvent(waba.ui.Event event)

onExit

public void onExit()

setClocks

public void setClocks(Clock tClock,
                      Clock bClock)
If a call to Mediator.replaceClock is made, the Mediator must make this callback to change clock references in the MainWindow for saving on exit

Parameters:
tClock - The top clock
bClock - The bottom clock

setState

public void setState(StateLabel lbl)
If a call to Mediator.replaceState is made, the Mediator must make this callback to change clock references in the MainWindow for saving on exit

Parameters:
lbl - The state label

getID

public byte getID()
Specified by:
getID in interface superwaba.ext.xplat.io.Storable

getInstance

public superwaba.ext.xplat.io.Storable getInstance()
Specified by:
getInstance in interface superwaba.ext.xplat.io.Storable

saveState

public void saveState(superwaba.ext.xplat.io.DataStream ds)
Specified by:
saveState in interface superwaba.ext.xplat.io.Storable

loadState

public void loadState(superwaba.ext.xplat.io.DataStream ds)
Specified by:
loadState in interface superwaba.ext.xplat.io.Storable


Copyright © 2004 Christopher C. Stump. All Rights Reserved.