danger.ui
Class PickerWindow

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.ui.View
              |
              +--danger.ui.Container
                    |
                    +--danger.ui.Window
                          |
                          +--danger.ui.PickerWindow

public class PickerWindow
extends Window


Fields inherited from class danger.ui.Window
mBusyPaintCount, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FLOATING, STATE_FULLSCREEN
 
Fields inherited from class danger.ui.View
mOriginX, mOriginY, mStyle, STATE_CAN_FOCUS, STATE_DEBUG_BOUNDS, STATE_ENABLED, STATE_FOCUSED, STATE_TRANSPARENT, STATE_VISIBLE
 
Constructor Summary
PickerWindow(int inMin, int inMax, int inDefault)
           
PickerWindow(int inMin, int inMax, int inDefault, boolean inWrap)
           
 
Method Summary
protected  void autoHide()
           
protected  void decrement(int inValue)
           
protected  void drawArrows(Pen p)
           
 void drawOpenMenuFrame(Pen p)
           
protected  void enforceLimits()
           
 boolean eventKeyDown(char c, Event event)
           
 boolean eventKeyUp(char c, Event event)
          Processes key releases directed at this container.
 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 increment(int inValue)
           
 void paint(Pen p)
          Draw the contents of this View.
 boolean receiveEvent(Event inEvent)
          Entry point for event processing.
 void setEvent(Listener inListener, int inType)
           
 
Methods inherited from class danger.ui.Window
addFromDialogResource, addFromDialogResource, addToChildIDList, addToChildIDList, adjustActionMenuState, autoHideIfIdle, autoHideIfIdle, blocksChooser, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, getApplication, getControlWithID, getDescendantWithID, getExplicitIDOfChild, getIDOfChild, getListener, getWindowBelow, hide, hideActiveMenu, 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, eventShortcut, 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 danger.app.Listener
cancelEvents, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickerWindow

public PickerWindow(int inMin,
                    int inMax,
                    int inDefault)

PickerWindow

public PickerWindow(int inMin,
                    int inMax,
                    int inDefault,
                    boolean inWrap)
Method Detail

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

drawArrows

protected void drawArrows(Pen p)

drawOpenMenuFrame

public void drawOpenMenuFrame(Pen p)

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

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

eventKeyUp

public boolean eventKeyUp(char c,
                          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.

eventKeyDown

public boolean eventKeyDown(char c,
                            Event event)
Overrides:
eventKeyDown in class Container

receiveEvent

public boolean receiveEvent(Event inEvent)
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

autoHide

protected void autoHide()
Overrides:
autoHide in class Window

increment

protected void increment(int inValue)

decrement

protected void decrement(int inValue)

enforceLimits

protected void enforceLimits()

setEvent

public void setEvent(Listener inListener,
                     int inType)


Danger Confidential. Copyright © 2000-2003, Danger Inc.