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.
HORIZONTAL, NO_ORIENTATION, VERTICAL public int getOrientation()
Returns the orientation of this scrollbar.
getOrientation in interface Adjustable
Adjustable.HORIZONTAL or Adjustable.VERTICAL
public void setMinimum(int min)
This method should NOT be called by user code. This method is public for this class to properly implement Adjustable interface.
setMinimum in interface Adjustable
min - the minimum valueAWTError - Always throws an error when called.public int getMinimum()
Description copied from interface: Adjustable
Gets the minimum value of the adjustable object.
getMinimum in interface Adjustable
public void setMaximum(int max)
This method should NOT be called by user code. This method is public for this class to properly implement Adjustable interface.
setMaximum in interface Adjustable
max - the maximum valueAWTError - Always throws an error when called.public int getMaximum()
Description copied from interface: Adjustable
Gets the maximum value of the adjustable object.
getMaximum in interface Adjustable
public void setUnitIncrement(int u)
Description copied from interface: Adjustable
Sets the unit value increment for the adjustable object.
setUnitIncrement in interface Adjustable
u - the unit incrementpublic int getUnitIncrement()
Description copied from interface: Adjustable
Gets the unit value increment for the adjustable object.
getUnitIncrement in interface Adjustable
public void setBlockIncrement(int b)
Description copied from interface: Adjustable
Sets the block value increment for the adjustable object.
setBlockIncrement in interface Adjustable
b - the block incrementpublic int getBlockIncrement()
Description copied from interface: Adjustable
Gets the block value increment for the adjustable object.
getBlockIncrement in interface Adjustable
public void setVisibleAmount(int v)
This method should NOT be called by user code. This method is public for this class to properly implement Adjustable interface.
setVisibleAmount in interface Adjustable
v - the length of the indicatorAWTError - Always throws an error when called.public int getVisibleAmount()
Description copied from interface: Adjustable
Gets the length of the proportional indicator.
getVisibleAmount in interface Adjustable
public void setValueIsAdjusting(boolean b)
Sets the valueIsAdjusting property.
b - new adjustment-in-progress statusgetValueIsAdjusting()public boolean getValueIsAdjusting()
Returns true if the value is in the process of changing as a result of actions being taken by the user.
valueIsAdjusting propertysetValueIsAdjusting(boolean)public void setValue(int v)
Sets the value of this scrollbar to the specified value.
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 Adjustable
v - the new value of the scrollbarpublic int getValue()
Description copied from interface: Adjustable
Gets the current value of the adjustable object.
getValue in interface Adjustable
public void addAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive adjustment events from this 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 Adjustable
l - the adjustment listener.removeAdjustmentListener(java.awt.event.AdjustmentListener), getAdjustmentListeners(), AdjustmentListener, AdjustmentEvent
public void removeAdjustmentListener(AdjustmentListener l)
Removes the specified adjustment listener so that it no longer receives adjustment events from this 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 Adjustable
l - the adjustment listener.addAdjustmentListener(java.awt.event.AdjustmentListener), getAdjustmentListeners(), AdjustmentListener, AdjustmentEvent
public AdjustmentListener[] getAdjustmentListeners()
Returns an array of all the adjustment listeners registered on this 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, AdjustmentEvent
public String toString()
Returns a string representation of this scrollbar and its values.
public String paramString()
Returns a string representing the state of this scrollbar. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.