|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwaba.ui.Control
waba.ui.Container
waba.ui.Window
waba.ui.MenuBar
net.thestump.ghronos.ui.Menubar
A command-oriented menubar to handle all menubar events.
| Field Summary | |
static int |
ABOUT
about menubar option |
static int |
FIRST_MOVE_BLACK
black moves first menubar option |
static int |
RESET
reset menubar option |
static int |
SEQUENTIAL_MOVES
per player moves menubar option |
static int |
SOUND
sound menubar option |
static int |
TIMING
timingstyle menubar option |
| Fields inherited from class waba.ui.MenuBar |
CHECKED, DISABLED, gap, UNCHECKED |
| 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 |
| Method Summary | |
void |
accessAllItems(boolean state)
Sets accessability of menubar options |
void |
evaluateSelection()
Evaluates and responds to the selected menu item. |
byte |
getID()
|
superwaba.ext.xplat.io.Storable |
getInstance()
|
static Menubar |
instance()
Singleton accessor for the application's menubar |
void |
loadState(superwaba.ext.xplat.io.DataStream ds)
|
void |
saveState(superwaba.ext.xplat.io.DataStream ds)
|
| Methods inherited from class waba.ui.MenuBar |
getSelectedMenuItem, isCheckable, isChecked, isEnabled, loadBehindLastPopup, onClickedOutside, onColorsChanged, onEvent, onFontChanged, onPaint, onPopup, popupClosed, postPopup, setChecked, setCursorColor, setEnabled, setItems, setPopColors, setVisible, switchTo |
| Methods inherited from class waba.ui.Window |
_doPaint, _doPaint, _postEvent, damageRect, destroyZStack, dontSaveBehind, getClientRect, getClientRect, getFocus, getOffScreen, getPreferredHeight, getPreferredWidth, getTopMost, isTopMost, isVisible, loadBehind, makeUnmovable, onUnpop, paintTitle, popupBlockingModal, popupMenuBar, popupModal, 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, onRemove, onStart, paintChildren, remove, setEnabled |
| Methods inherited from class waba.ui.Control |
addTimer, contains, createGraphics, getAbsoluteRect, getBackColor, getFont, getFontMetrics, getForeColor, getNext, getParent, getParentWindow, getPos, getRect, getSize, isDisplayed, isEnabled, onBoundsChanged, onWindowPaintFinished, postEvent, removeTimer, repaint, repaintNow, requestFocus, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RESET
public static final int TIMING
public static final int SOUND
public static final int FIRST_MOVE_BLACK
public static final int SEQUENTIAL_MOVES
public static final int ABOUT
| Method Detail |
public static Menubar instance()
public void accessAllItems(boolean state)
state - true to have all menu bar items enabled,
false to have them all disabledpublic void evaluateSelection()
public byte getID()
getID in interface superwaba.ext.xplat.io.Storablepublic superwaba.ext.xplat.io.Storable getInstance()
getInstance in interface superwaba.ext.xplat.io.Storablepublic void saveState(superwaba.ext.xplat.io.DataStream ds)
saveState in interface superwaba.ext.xplat.io.Storablepublic void loadState(superwaba.ext.xplat.io.DataStream ds)
loadState in interface superwaba.ext.xplat.io.Storable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||