danger.ui
Class SliderWindow

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.ui.View
              |
              +--danger.ui.Container
                    |
                    +--danger.ui.Window
                          |
                          +--danger.ui.SliderWindow
All Implemented Interfaces:
ISliderData
Direct Known Subclasses:
PhoneVolumeSliderWindow

public class SliderWindow
extends Window
implements ISliderData


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
 
Fields inherited from interface danger.ui.ISliderData
kCompressed, kUncompressed, kWindowOnly
 
Constructor Summary
SliderWindow(Slider inSlider)
           
SliderWindow(java.lang.String title)
           
SliderWindow(java.lang.String title, int min, int cur, int max)
           
 
Method Summary
 boolean eventKeyUp(char inKey, 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
 Bitmap[] getBitmaps()
           
 Bitmap getCurrentBitmap()
           
 java.lang.String getDescription()
           
 int getMaxValue()
           
 int getMinValue()
           
 int getSliderPortionWidth()
           
 int getSliderType()
           
 java.lang.String getTitle()
           
 int getValue()
           
 void paint(Pen p)
          Draw the contents of this View.
 void setBitmaps(Bitmap[] inBitmaps)
           
 void setDescription(java.lang.String text)
           
 void setMaxValue(int inMaxValue)
           
 void setMinValue(int inMinValue)
           
protected  void setOwnSize()
           
 void setSliderPortionWidth(int inWidth)
           
 void setSliderType(int inType)
           
 void setTitle(java.lang.String inTitle)
           
 void setValue(int inValue)
           
 void show()
           
 void showAt(Point p)
           
 
Methods inherited from class danger.ui.Window
addFromDialogResource, addFromDialogResource, addToChildIDList, addToChildIDList, adjustActionMenuState, autoHide, 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, showControlWithID
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventShortcut, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, receiveEvent, 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

SliderWindow

public SliderWindow(java.lang.String title)

SliderWindow

public SliderWindow(java.lang.String title,
                    int min,
                    int cur,
                    int max)

SliderWindow

public SliderWindow(Slider inSlider)
Method Detail

setOwnSize

protected void setOwnSize()

show

public void show()
Overrides:
show in class Window

showAt

public void showAt(Point p)

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

eventKeyUp

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

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

setTitle

public void setTitle(java.lang.String inTitle)
Specified by:
setTitle in interface ISliderData

setValue

public void setValue(int inValue)
Specified by:
setValue in interface ISliderData

setMinValue

public void setMinValue(int inMinValue)
Specified by:
setMinValue in interface ISliderData

setMaxValue

public void setMaxValue(int inMaxValue)
Specified by:
setMaxValue in interface ISliderData

setSliderPortionWidth

public void setSliderPortionWidth(int inWidth)
Specified by:
setSliderPortionWidth in interface ISliderData

setSliderType

public void setSliderType(int inType)
Specified by:
setSliderType in interface ISliderData

setBitmaps

public void setBitmaps(Bitmap[] inBitmaps)
Specified by:
setBitmaps in interface ISliderData

setDescription

public void setDescription(java.lang.String text)
Specified by:
setDescription in interface ISliderData

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface ISliderData

getValue

public int getValue()
Specified by:
getValue in interface ISliderData

getMinValue

public int getMinValue()
Specified by:
getMinValue in interface ISliderData

getMaxValue

public int getMaxValue()
Specified by:
getMaxValue in interface ISliderData

getSliderPortionWidth

public int getSliderPortionWidth()
Specified by:
getSliderPortionWidth in interface ISliderData

getSliderType

public int getSliderType()
Specified by:
getSliderType in interface ISliderData

getBitmaps

public Bitmap[] getBitmaps()
Specified by:
getBitmaps in interface ISliderData

getCurrentBitmap

public Bitmap getCurrentBitmap()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ISliderData


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