danger.ui
Class Slider
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
|
+--danger.ui.Control
|
+--danger.ui.Slider
- All Implemented Interfaces:
- ISliderData
- public class Slider
- extends Control
- implements ISliderData
|
Constructor Summary |
Slider()
|
Slider(int inMinValue,
int inValue,
int inMaxValue)
|
Slider(int type,
int inMinValue,
int inValue,
int inMaxValue)
|
Slider(java.lang.String title)
|
Slider(java.lang.String title,
int type)
|
Slider(java.lang.String title,
int inMinValue,
int inValue,
int inMaxValue)
|
Slider(java.lang.String inTitle,
int inType,
int inMinValue,
int inValue,
int inMaxValue)
|
| Methods inherited from class danger.ui.Control |
drawFocusBox, drawIdleBox, drawIdleBox, getEventListener, getEventType, getHasBorder, getString, getTitle, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventListener, setHasBorder |
| Methods inherited from class danger.ui.Container |
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventShortcut, eventWidgetDown, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getDescendantWithID, 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, hide, invalidate, invalidate, invalidate, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, keepRectInView, localToGlobal, localToGlobal, localToWindow, moveBy, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onPeriodicPulse, onRemovedFromParent, onWindowPaint, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setBackgroundColor, setBottom, setDebugBounds, setEnabled, setFrame, setHeight, setKeyedValue, setLeft, setOrigin, setOrigin, setPosition, setRight, setSize, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, shouldDropEvent, show, styleIsDefault, willFocusWithin, windowToLocal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Slider
public Slider()
Slider
public Slider(int inMinValue,
int inValue,
int inMaxValue)
Slider
public Slider(int type,
int inMinValue,
int inValue,
int inMaxValue)
Slider
public Slider(java.lang.String title)
Slider
public Slider(java.lang.String title,
int type)
Slider
public Slider(java.lang.String title,
int inMinValue,
int inValue,
int inMaxValue)
Slider
public Slider(java.lang.String inTitle,
int inType,
int inMinValue,
int inValue,
int inMaxValue)
setSliderWindow
public void setSliderWindow(SliderWindow inWindow)
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
enterPopup
public void enterPopup()
exitPopup
public void exitPopup()
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.
getEvent
public Event getEvent()
- Overrides:
getEvent in class Control
setTitle
public void setTitle(java.lang.String inTitle)
- Specified by:
setTitle in interface ISliderData- Overrides:
setTitle in class Control
setValue
public void setValue(int inValue)
- Specified by:
setValue in interface ISliderData- Overrides:
setValue in class Control
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
onStyleChanged
protected void onStyleChanged(int attribute)
- Overrides:
onStyleChanged in class View
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
getValue
public int getValue()
- Specified by:
getValue in interface ISliderData- Overrides:
getValue in class Control
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
setTitleSpacing
public void setTitleSpacing(int titleSpacing)
setHasFrame
public void setHasFrame(boolean hasFrame)
Danger Confidential. Copyright © 2000-2003, Danger Inc.