|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BScrollBar
public class BScrollBar
Displays a scroll bar for all your horizontal and vertical scrolling needs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.bui.BContainer |
|---|
BContainer.ChildOp |
| Field Summary | |
|---|---|
protected ActionListener |
_buttoner
|
protected BButton |
_less
|
protected BoundedRangeModel |
_model
|
protected BButton |
_more
|
protected Orientation |
_orient
|
protected BComponent |
_thumb
|
protected MouseAdapter |
_thumbListener
|
protected ChangeListener |
_updater
|
protected BComponent |
_well
|
protected MouseListener |
_wellListener
|
protected MouseWheelListener |
_wheelListener
|
| Fields inherited from class com.jmex.bui.BContainer |
|---|
_children, _layout |
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Fields inherited from interface com.jmex.bui.BConstants |
|---|
DEFAULT_SIZE, DEFAULT_SPACING |
| Constructor Summary | |
|---|---|
BScrollBar()
Creates a vertical scroll bar with the default range, value and extent. |
|
BScrollBar(Orientation orientation)
Creates a scroll bar with the default range, value and extent. |
|
BScrollBar(Orientation orientation,
BoundedRangeModel model)
Creates a scroll bar with the specified orientation which will interact with the supplied model. |
|
BScrollBar(Orientation orientation,
int min,
int value,
int extent,
int max)
Creates a scroll bar with the specified orientation, range, value and extent. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getDefaultStyleClass()
Returns the default stylesheet class to be used for all instances of this component. |
BComponent |
getHitComponent(int mx,
int my)
Returns the component "hit" by the specified mouse coordinates which might be this component or any of its children. |
BoundedRangeModel |
getModel()
Returns a reference to the scrollbar's range model. |
protected void |
layout()
Instructs this component to lay itself out. |
protected void |
update()
Recomputes and repositions the scroll bar thumb to reflect the current configuration of the model. |
void |
wasAdded()
This method is called when we are added to a hierarchy that is connected to a top-level window (at which point we can rely on having a look and feel and can set ourselves up). |
void |
wasRemoved()
This method is called when we are removed from a hierarchy that is connected to a top-level window. |
| Methods inherited from class com.jmex.bui.BContainer |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getLayoutManager, getNextFocus, getPreviousFocus, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChangeListener _updater
protected MouseListener _wellListener
protected MouseAdapter _thumbListener
protected ActionListener _buttoner
protected BoundedRangeModel _model
protected Orientation _orient
protected BButton _less
protected BButton _more
protected BComponent _well
protected BComponent _thumb
protected MouseWheelListener _wheelListener
| Constructor Detail |
|---|
public BScrollBar()
public BScrollBar(Orientation orientation)
orientation - Orientation
public BScrollBar(Orientation orientation,
int min,
int value,
int extent,
int max)
orientation - Orientationmin - intvalue - intextent - intmax - int
public BScrollBar(Orientation orientation,
BoundedRangeModel model)
orientation - Orientationmodel - BoundedRangeModel| Method Detail |
|---|
public BoundedRangeModel getModel()
public void wasAdded()
BComponent
wasAdded in class BContainerpublic void wasRemoved()
BComponentBComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class BContainer
public BComponent getHitComponent(int mx,
int my)
BComponent
getHitComponent in class BContainerprotected void update()
protected java.lang.String getDefaultStyleClass()
BComponent
getDefaultStyleClass in class BContainerprotected void layout()
BComponent
layout in class BContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||