|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQScrollBar
ScrollBar Component.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants |
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQScrollBarProperties |
PROPERTY_BLOCK_INCREMENT, PROPERTY_MODEL, PROPERTY_ORIENTATION, PROPERTY_UNIT_INCREMENT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQScrollBar()
Constructs new JQScrollBar object. |
|
JQScrollBar(BoundedRangeModel model)
Constructs new JQScrollBar object. |
|
JQScrollBar(int orientation)
Constructs new JQScrollBar object. |
|
JQScrollBar(int minimum,
int maximum)
Constructs new JQScrollBar object. |
|
JQScrollBar(int minimum,
int maximum,
int value)
Constructs new JQScrollBar object. |
|
JQScrollBar(int orientation,
int minimum,
int maximum,
int value)
Constructs new JQScrollBar object. |
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds change listener. |
protected void |
fireStateChanged()
Fires state changed event. |
int |
getBlockIncrement()
Returns block increment of the scrollbar. |
ChangeListener[] |
getChangeListeners()
Returns change listeners. |
int |
getMaximum()
Returns maximum scrollbar value. |
int |
getMinimum()
Returns minimum scrollbar value. |
BoundedRangeModel |
getModel()
Returns data model of the scrollbar. |
int |
getOrientation()
Returns orientation of the scrollbar. |
int |
getUnitIncrement()
Returns unit increment of the scrollbar. |
int |
getValue()
Returns current value of the scrollbar. |
boolean |
getValueIsAdjusting()
Returns true if the scrollbar knob is being dragged. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
removeChangeListener(ChangeListener listener)
Removes change listener. |
void |
setBlockIncrement(int blockIncrement)
Sets block increment. |
void |
setMaximum(int maximum)
Sets maximum scrollbar value. |
void |
setMinimum(int minimum)
Sets minimum scrollbar value. |
void |
setModel(BoundedRangeModel model)
Sets data model of the scrollbar. |
void |
setOrientation(int orientation)
Sets orientation. |
void |
setUnitIncrement(int unitIncrement)
Sets unit increment. |
void |
setValue(int value)
Sets current value of the scrollbar. |
void |
setValueIsAdjusting(boolean adjusting)
Sets the value of the valueIsAdjusting property. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JQScrollBar()
public JQScrollBar(int orientation)
orientation
- the orientation of the scrollbarpublic JQScrollBar(int minimum, int maximum)
minimum
- the minimum value of the scrollbarmaximum
- the maximum value of the scrollbarpublic JQScrollBar(int minimum, int maximum, int value)
minimum
- the minimum value of the scrollbarmaximum
- the maximum value of the scrollbarvalue
- the current value of the scrollbarpublic JQScrollBar(int orientation, int minimum, int maximum, int value)
orientation
- the orientation of the scrollbarminimum
- the minimum value of the scrollbarmaximum
- the maximum value of the scrollbarvalue
- the current value of the scrollbarpublic JQScrollBar(BoundedRangeModel model)
model
- the modelMethod Detail |
public BoundedRangeModel getModel()
public void setModel(BoundedRangeModel model)
model
- the data modelpublic int getValue()
public void setValue(int value)
value
- the current value of the scrollbarpublic int getMinimum()
public void setMinimum(int minimum)
minimum
- the maximum scrollbar valuepublic int getMaximum()
public void setMaximum(int maximum)
maximum
- the maximum scrollbar valuepublic boolean getValueIsAdjusting()
public void setValueIsAdjusting(boolean adjusting)
adjusting
- the value of the valueIsAdjusting propertypublic int getOrientation()
public void setOrientation(int orientation)
orientation
- the orientationpublic int getUnitIncrement()
public void setUnitIncrement(int unitIncrement)
unitIncrement
- the unit incrementpublic int getBlockIncrement()
public void setBlockIncrement(int blockIncrement)
blockIncrement
- the block incrementpublic void addChangeListener(ChangeListener listener)
listener
- the change listenerpublic void removeChangeListener(ChangeListener listener)
listener
- the change listenerpublic ChangeListener[] getChangeListeners()
protected void fireStateChanged()
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |