|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiRange
|
+--com.yospace.yae.yogi.YogiScrollBar
This class provides the scroll bars that YogiScrollPanes use. Scrollbars are typically contained within a
YogiScrollPane, although this is not mandatory.
Scrollbars may be customised with respect to configuration, which controls
when a scrollbar will appear, and placement, which controls how a scrollbar will
be painted.
| Field Summary | |
static int |
APPEAR_ALWAYS
Used to define a scrollbar that will always appear. |
static int |
APPEAR_AS_NEEDED
Used to define a scrollbar that will appear as needed. |
static int |
APPEAR_NEVER
Used to define a scrollbar that will never appear. |
static int |
MODE_CONTRACTED
Scrollbar mode constant representing the contracted state. |
static int |
MODE_MAXIMIZED
Scrollbar mode constant representing the maximized state. |
static int |
MODE_MINIMIZED
Scrollbar mode constant representing the minimized state. |
static int |
PLACEMENT_BOTTOM
Constant the defines that the scrollbar will appear on the bottom of its scrollpane. |
static int |
PLACEMENT_LEFT
Constant the defines that the scrollbar will appear on the left of its scrollpane. |
static int |
PLACEMENT_RIGHT
Constant the defines that the scrollbar will appear on the right of its scrollpane. |
static int |
PLACEMENT_TOP
Constant the defines that the scrollbar will appear on the top of its scrollpane. |
static int |
PROPERTY_CONFIG
Constant for config property. |
static int |
PROPERTY_MODE
Constant for mode property. |
static int |
PROPERTY_PLACEMENT
Constant for placement property. |
static int |
PROPERTY_VIEW_SIZE
Constant for view size property. |
| Fields inherited from class com.yospace.yae.yogi.YogiRange |
maxValue, minValue, PROPERTY_BLOCK_INCREMENT, PROPERTY_MAX_VALUE, PROPERTY_MIN_VALUE, PROPERTY_UNIT_INCREMENT, PROPERTY_VALUE, value |
| Constructor Summary | |
YogiScrollBar()
Default constructor. |
|
YogiScrollBar(int config,
int placement)
Constructor taking configuration and placement settings. |
|
| Method Summary | |
int |
getConfig()
Gets the configuration of the scrollbar. |
int |
getMode()
Gets the scrollbar mode. |
int |
getPlacement()
Gets the placement of the scrollbar. |
int |
getViewSize()
Gets the length of the scrollbar. |
int |
parsePlacement(java.lang.String placement)
Method used internally in conjunction with setProperty() to read a scrollbar's placement from xml. |
void |
setConfig(int config)
Sets the configuration of the scrollbar. |
boolean |
setMode(int mode)
Sets the mode of the scrollbar. |
void |
setPlacement(int placement)
Sets the placement of the scrollbar. |
void |
setViewSize(int viewSize)
Sets the length of the scrollbar. |
| Methods inherited from class com.yospace.yae.yogi.YogiRange |
getBlockIncrement, getMaxValue, getMinValue, getRange, getUnitIncrement, getValue, setBlockIncrement, setMaxValue, setMinValue, setUnitIncrement, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_CONFIG
public static final int PROPERTY_PLACEMENT
public static final int PROPERTY_VIEW_SIZE
public static final int PROPERTY_MODE
public static final int APPEAR_NEVER
public static final int APPEAR_AS_NEEDED
public static final int APPEAR_ALWAYS
public static final int PLACEMENT_BOTTOM
public static final int PLACEMENT_TOP
public static final int PLACEMENT_LEFT
public static final int PLACEMENT_RIGHT
public static final int MODE_MINIMIZED
public static final int MODE_CONTRACTED
YogiScrollPane and thus
cannot occupy the full extent of the scroll pane.public static final int MODE_MAXIMIZED
YogiScrollPane
in this mode.| Constructor Detail |
public YogiScrollBar()
public YogiScrollBar(int config,
int placement)
config - the scrollbar configuration. Must be one of APPEAR_NEVER,
APPEAR_AS_NEEDED, APPEAR_ALWAYS.placement - the scrollbar placement. Must be one of PLACEMENT_BOTTOM,
PLACEMENT_TOP, PLACEMENT_LEFT,
PLACEMENT_RIGHT.| Method Detail |
public void setViewSize(int viewSize)
viewSize - the length in pixels of the scrollbar.public int getViewSize()
public void setConfig(int config)
APPEAR_NEVER,
APPEAR_AS_NEEDED, APPEAR_ALWAYS.config - the new scrollbar configuration setting.public int getConfig()
public void setPlacement(int placement)
PLACEMENT_BOTTOM,
PLACEMENT_TOP, PLACEMENT_LEFT,
PLACEMENT_RIGHT.placement - the new scrollbar placement setting.public int getPlacement()
public boolean setMode(int mode)
MODE_MINIMIZED,
MODE_CONTRACTED, MODE_MAXIMIZED.mode - the new mode for the scrollbar.public int getMode()
public int parsePlacement(java.lang.String placement)
placement - scrollbar placement.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||