|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.layouts.MiLayout
com.swfm.mica.core.MiVisibleContainer
com.swfm.mica.widgets.MiWidget
com.swfm.mica.widgets.MiAdjuster
com.swfm.mica.widgets.MiSlider
com.swfm.mica.widgets.MiScrollBar
| Field Summary | |
static java.lang.String |
Mi_DOWN_ARROW_NAME
|
static java.lang.String |
Mi_LEFT_ARROW_NAME
|
static java.lang.String |
Mi_RIGHT_ARROW_NAME
|
static java.lang.String |
Mi_SCROLLBAR_PROTOTYPE_CLASS_NAME
|
static java.lang.String |
Mi_UP_ARROW_NAME
|
| Constructor Summary | |
MiScrollBar()
Constructs a new MiScrollBar with a horizontal orientation. |
|
MiScrollBar(int orient)
Constructs a new MiScrollBar with the given orientation. |
|
| Method Summary | |
void |
calcMinimumSize(MiSize size)
Gets the minimum size of this widget. |
void |
calcPreferredSize(MiSize size)
Gets the preferred size of this widget. |
static MiWidget |
create()
Creates a new widget from the prototype. |
int |
drag(MiEvent event)
Handles the user's dragging the associated 'thumb' of this widget in order to change the value. |
MiPushButton |
getLessArrow()
|
MiPushButton |
getMoreArrow()
|
java.lang.String |
getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. |
static MiWidget |
getPrototype()
Gets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created. |
boolean |
processAction(MiiAction action)
Process the given action. |
void |
setNormalizedPositionOfThumb(double normalizedValue)
Sets the normalized (between 0.0 and 1.0 inclusive) position of the associated 'thumb' of this widget (a value of 0.0 sets the thumb to the left side of a horizontally oriented widget and the bottom of a vertically oriented widget. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value. |
static void |
setPrototype(MiScrollBar p)
Sets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created. |
| Methods inherited from class com.swfm.mica.widgets.MiSlider |
adjustValueFromVector, getNormalizedLengthOfThumb, getOrientation, getSlotWidth, getThumb, getThumbWidth, getValue, layoutParts, moveOneChunkTowardsLocation, refreshLookAndFeel, setNormalizedLengthOfThumb, setNormalizedValue, setOrientation, setPrototype, setSlotWidth, setThumb, setThumbWidth, setValue, setValueFromLocation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.layouts.MiiLayout |
getMinimumSize, getPreferredSize, invalidateLayout |
| Field Detail |
public static final java.lang.String Mi_SCROLLBAR_PROTOTYPE_CLASS_NAME
public static final java.lang.String Mi_RIGHT_ARROW_NAME
public static final java.lang.String Mi_LEFT_ARROW_NAME
public static final java.lang.String Mi_UP_ARROW_NAME
public static final java.lang.String Mi_DOWN_ARROW_NAME
| Constructor Detail |
public MiScrollBar()
public MiScrollBar(int orient)
| Method Detail |
public MiPushButton getMoreArrow()
public MiPushButton getLessArrow()
public static MiWidget create()
setPrototype(com.swfm.mica.widgets.MiScrollBar)public void calcPreferredSize(MiSize size)
calcPreferredSize in class MiSlidersize - the returned preferred size.public void calcMinimumSize(MiSize size)
calcMinimumSize in class MiSlidersize - the returned minimum size.public void setNormalizedPositionOfThumb(double normalizedValue)
setNormalizedPositionOfThumb in class MiSlidernormalizedValue - the normalized thumb positionpublic static void setPrototype(MiScrollBar p)
p - the new prototypegetPrototype(),
create(),
MiPart.copy()public static MiWidget getPrototype()
setPrototype(com.swfm.mica.widgets.MiScrollBar),
create(),
MiPart.copy()public boolean processAction(MiiAction action)
processAction in interface MiiActionHandleraction - the action to process.
public int drag(MiEvent event)
drag in interface MiiDraggabledrag in class MiSliderevent - the user's event
public void setPropertyValue(java.lang.String name,
java.lang.String value)
setPropertyValue in class MiWidgetname - the name of an attributevalue - the value of the attributepublic java.lang.String getPropertyValue(java.lang.String name)
getPropertyValue in class MiWidgetname - the name of a property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||