| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class ScrollPaneAdjustable extends Object implements Adjustable, Serializable
This class represents the state of a horizontal or vertical
scrollbar of a ScrollPane
. Objects of this class are
returned by ScrollPane
methods.
Method Summary | |
---|---|
void |
Adds the specified adjustment listener to receive adjustment events from this ScrollPaneAdjustable .
|
AdjustmentListener[] |
Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable .
|
int |
|
int |
|
int |
|
int |
Returns the orientation of this scrollbar. |
int |
|
int |
getValue() |
boolean |
Returns true if the value is in the process of changing as a result of actions being taken by the user. |
int |
|
String |
Returns a string representing the state of this scrollbar. |
void |
Removes the specified adjustment listener so that it no longer receives adjustment events from this ScrollPaneAdjustable .
|
void |
setBlockIncrement(int b) |
void |
setMaximum(int max) This method should NOT be called by user code. |
void |
setMinimum(int min) This method should NOT be called by user code. |
void |
setUnitIncrement(int u) |
void |
setValue(int v) Sets the value of this scrollbar to the specified value. |
void |
setValueIsAdjusting(boolean b) Sets the valueIsAdjusting property.
|
void |
setVisibleAmount(int v) This method should NOT be called by user code. |
String |
toString() Returns a string representation of this scrollbar and its values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public synchronized void addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable
.
If l
is null
, no exception is thrown
and no action is performed.
Refer to AWT Threading Issues for details on AWT's threading model.
l
- the adjustment listener.public synchronized AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable
.
ScrollPaneAdjustable
's
AdjustmentListener
s
or an empty array if no adjustment
listeners are currently registeredpublic int getBlockIncrement()
public int getMaximum()
public int getMinimum()
public int getOrientation()
Adjustable.HORIZONTAL
or
Adjustable.VERTICAL
public int getUnitIncrement()
public int getValue()
public boolean getValueIsAdjusting()
valueIsAdjusting
propertypublic int getVisibleAmount()
public String paramString()
null
.
public synchronized void removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable
.
If l
is null
, no exception is thrown
and no action is performed.
Refer to AWT Threading Issues for details on AWT's threading model.
l
- the adjustment listener.public synchronized void setBlockIncrement(int b)
b
public void setMaximum(int max)
Adjustable
interface.
max
public void setMinimum(int min)
Adjustable
interface.
min
public synchronized void setUnitIncrement(int u)
u
public void setValue(int v)
If the value supplied is less than the current minimum or greater than the current maximum, then one of those values is substituted, as appropriate.
v
- the new value of the scrollbarpublic void setValueIsAdjusting(boolean b)
valueIsAdjusting
property.
b
- new adjustment-in-progress statuspublic void setVisibleAmount(int v)
Adjustable
interface.
v
public String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |