|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.ScrollPaneAdjustable
public class ScrollPaneAdjustable
This class represents the state of a horizontal or vertical
scrollbar of a ScrollPane. Objects of this class are
returned by ScrollPane methods.
| Field Summary |
|---|
| Fields inherited from interface java.awt.Adjustable |
|---|
HORIZONTAL, NO_ORIENTATION, VERTICAL |
| Method Summary | |
|---|---|
void |
addAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive adjustment events from this ScrollPaneAdjustable. |
AdjustmentListener[] |
getAdjustmentListeners()
Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable. |
int |
getBlockIncrement()
Gets the block value increment for the adjustable object. |
int |
getMaximum()
Gets the maximum value of the adjustable object. |
int |
getMinimum()
Gets the minimum value of the adjustable object. |
int |
getOrientation()
Returns the orientation of this scrollbar. |
int |
getUnitIncrement()
Gets the unit value increment for the adjustable object. |
int |
getValue()
Gets the current value of the adjustable object. |
boolean |
getValueIsAdjusting()
Returns true if the value is in the process of changing as a result of actions being taken by the user. |
int |
getVisibleAmount()
Gets the length of the proportional indicator. |
String |
paramString()
Returns a string representing the state of this scrollbar. |
void |
removeAdjustmentListener(AdjustmentListener l)
Removes the specified adjustment listener so that it no longer receives adjustment events from this ScrollPaneAdjustable. |
void |
setBlockIncrement(int b)
Sets the block value increment for the adjustable object. |
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)
Sets the unit value increment for the adjustable object. |
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, wait, wait, wait |
| Method Detail |
|---|
public int getOrientation()
getOrientation in interface AdjustableAdjustable.HORIZONTAL or
Adjustable.VERTICALpublic void setMinimum(int min)
Adjustable interface.
setMinimum in interface Adjustablemin - the minimum value
AWTError - Always throws an error when called.public int getMinimum()
Adjustable
getMinimum in interface Adjustablepublic void setMaximum(int max)
Adjustable interface.
setMaximum in interface Adjustablemax - the maximum value
AWTError - Always throws an error when called.public int getMaximum()
Adjustable
getMaximum in interface Adjustablepublic void setUnitIncrement(int u)
Adjustable
setUnitIncrement in interface Adjustableu - the unit incrementpublic int getUnitIncrement()
Adjustable
getUnitIncrement in interface Adjustablepublic void setBlockIncrement(int b)
Adjustable
setBlockIncrement in interface Adjustableb - the block incrementpublic int getBlockIncrement()
Adjustable
getBlockIncrement in interface Adjustablepublic void setVisibleAmount(int v)
Adjustable interface.
setVisibleAmount in interface Adjustablev - the length of the indicator
AWTError - Always throws an error when called.public int getVisibleAmount()
Adjustable
getVisibleAmount in interface Adjustablepublic void setValueIsAdjusting(boolean b)
valueIsAdjusting property.
b - new adjustment-in-progress statusgetValueIsAdjusting()public boolean getValueIsAdjusting()
valueIsAdjusting propertysetValueIsAdjusting(boolean)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.
setValue in interface Adjustablev - the new value of the scrollbarpublic int getValue()
Adjustable
getValue in interface Adjustablepublic 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.
addAdjustmentListener in interface Adjustablel - the adjustment listener.removeAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
AdjustmentListener,
AdjustmentEventpublic 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.
removeAdjustmentListener in interface Adjustablel - the adjustment listener.addAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
AdjustmentListener,
AdjustmentEventpublic AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable.
ScrollPaneAdjustable's
AdjustmentListeners
or an empty array if no adjustment
listeners are currently registeredaddAdjustmentListener(java.awt.event.AdjustmentListener),
removeAdjustmentListener(java.awt.event.AdjustmentListener),
AdjustmentListener,
AdjustmentEventpublic String toString()
toString in class Objectpublic String paramString()
null.
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.