danger.ui
Class BaseMenuWindow
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
|
+--danger.ui.Window
|
+--danger.ui.BaseMenuWindow
- Direct Known Subclasses:
- MenuWindow
- public abstract class BaseMenuWindow
- extends Window
|
Method Summary |
protected void |
advanceHilite(int count)
|
protected void |
autoHide()
|
boolean |
blocksChooser()
Whether the window blocks from going to the chooser
Some applications, such as security/passcode lock and registration
block from going to the chooser when the JUMP button is pressed. |
protected void |
drawMenuItem(Pen p,
Rect r,
MenuItem m,
int offset,
boolean inEnabled,
boolean inSelected)
|
protected void |
drawMenuText(Pen p,
int x,
int y,
java.lang.String inText,
int width,
boolean enabled)
|
void |
drawOpenMenuContents(Pen p)
|
void |
drawOpenMenuFrame(Pen p)
|
protected void |
drawSelection(Pen p,
Rect r)
|
boolean |
eventKeyDown(char inChar,
Event event)
|
boolean |
eventKeyUp(char inChar,
Event event)
Processes key releases directed at this container. |
boolean |
eventShortcut(char shortcut)
|
boolean |
eventWidgetDown(int inWhichWidget,
Event event)
Handle the pressing of a device widget |
boolean |
eventWidgetUp(int inWhichWidget,
Event event)
Handle the release of a device widget |
protected void |
hideActiveMenu(boolean onlyIfOrphaned)
|
protected void |
onSelectionChanged()
|
void |
paint(Pen p)
Draw the contents of this View. |
boolean |
receiveEvent(Event event)
Entry point for event processing. |
protected void |
reverseHilite(int count)
|
void |
setEnablePrefixHilite(boolean inEnablePrefixHilite)
|
| Methods inherited from class danger.ui.Window |
addFromDialogResource, addFromDialogResource, addToChildIDList, addToChildIDList, adjustActionMenuState, autoHideIfIdle, autoHideIfIdle, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, getApplication, getControlWithID, getDescendantWithID, getExplicitIDOfChild, getIDOfChild, getListener, getWindowBelow, hide, hideControlWithID, isActionMenuVisible, isFloating, isFullScreen, isUnresponsive, onPeriodicPulse, onWindowPaint, receiveMessage, removeChildFromIDList, setEventForControlWithID, setFloating, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setMaxChildID, setMaxControlID, setPosition, setSize, setTitled, shouldDropEvent, show, showControlWithID |
| Methods inherited from class danger.ui.Container |
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setFocusedChild, setWindow, showAllChildren, snapToChildren, takeFocus |
| Methods inherited from class danger.ui.View |
clear, copyStyle, getAcceptFocus, getBackgroundColor, getBottom, getBounds, getBounds, getFrame, getFrame, getHeight, getInterestingRect, getInterestingRect, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getRight, getSibling, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, invalidate, invalidate, invalidate, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, keepRectInView, localToGlobal, localToGlobal, localToWindow, moveBy, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onRemovedFromParent, onStyleChanged, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setBackgroundColor, setBottom, setDebugBounds, setEnabled, setFrame, setHeight, setKeyedValue, setLeft, setOrigin, setOrigin, setRight, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, styleIsDefault, willFocusWithin, windowToLocal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMenuWindow
public BaseMenuWindow(BaseMenu inParentMenu)
paint
public void paint(Pen p)
- Description copied from class:
View
- Draw the contents of this View. This method is called by the graphics
system when the View needs to be repainted. A Pen will be provided which
is appropriately clipped and translated for drawing on this View.
- Overrides:
paint in class Container
drawOpenMenuFrame
public void drawOpenMenuFrame(Pen p)
drawSelection
protected void drawSelection(Pen p,
Rect r)
drawMenuText
protected void drawMenuText(Pen p,
int x,
int y,
java.lang.String inText,
int width,
boolean enabled)
drawMenuItem
protected void drawMenuItem(Pen p,
Rect r,
MenuItem m,
int offset,
boolean inEnabled,
boolean inSelected)
drawOpenMenuContents
public void drawOpenMenuContents(Pen p)
receiveEvent
public boolean receiveEvent(Event event)
- Description copied from class:
Listener
- Entry point for event processing.
Default behaviour is to do nothing and return false.
Normally this method is called from a Dispatcher when it
discovers an Event in its queue that is targetted at this
Listener.
- Overrides:
receiveEvent in class Container
eventWidgetDown
public boolean eventWidgetDown(int inWhichWidget,
Event event)
- Description copied from class:
Container
- Handle the pressing of a device widget
- Overrides:
eventWidgetDown in class Container
- Following copied from class:
danger.ui.Container
- Parameters:
inWidget - the widget that went up- Returns:
- whether or not the event was consumed
eventWidgetUp
public boolean eventWidgetUp(int inWhichWidget,
Event event)
- Description copied from class:
Container
- Handle the release of a device widget
- Overrides:
eventWidgetUp in class Container
- Following copied from class:
danger.ui.Container
- Parameters:
inWidget - the widget that went down- Returns:
- whether or not the event was consumed
eventKeyDown
public boolean eventKeyDown(char inChar,
Event event)
- Overrides:
eventKeyDown in class Container
eventKeyUp
public boolean eventKeyUp(char inChar,
Event event)
- Description copied from class:
Container
- Processes key releases directed at this container.
- Overrides:
eventKeyUp in class Container
- Following copied from class:
danger.ui.Container
- Parameters:
c - the character being released.
eventShortcut
public boolean eventShortcut(char shortcut)
- Overrides:
eventShortcut in class Container
setEnablePrefixHilite
public final void setEnablePrefixHilite(boolean inEnablePrefixHilite)
autoHide
protected void autoHide()
- Overrides:
autoHide in class Window
advanceHilite
protected void advanceHilite(int count)
reverseHilite
protected void reverseHilite(int count)
onSelectionChanged
protected void onSelectionChanged()
blocksChooser
public boolean blocksChooser()
- Description copied from class:
Window
- Whether the window blocks from going to the chooser
Some applications, such as security/passcode lock and registration
block from going to the chooser when the JUMP button is pressed.
- Overrides:
blocksChooser in class Window
- Following copied from class:
danger.ui.Window
- Returns:
- A boolean containing true if the application blocks the
chooser.
hideActiveMenu
protected final void hideActiveMenu(boolean onlyIfOrphaned)
- Overrides:
hideActiveMenu in class Window
Danger Confidential. Copyright © 2000-2003, Danger Inc.