Package Summary  Overview Summary

class:ScrollPaneAdjustable [NONE]

All Implemented Interfaces:
Adjustable, Serializable

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.
Since:
1.4
See Also:
Serialized Form

method:getOrientation() [NONE]

  • getOrientation

    public int getOrientation()
    Returns the orientation of this scrollbar.
    Specified by:
    getOrientation in interface Adjustable
    Returns:
    the orientation of this scrollbar, either Adjustable.HORIZONTAL or Adjustable.VERTICAL
  • method:setMinimum(int) [NONE]

    setMinimum

    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.
    Specified by:
    setMinimum in interface Adjustable
    Parameters:
    min - the minimum value
    Throws:
    AWTError - Always throws an error when called.

    method:getMinimum() [NONE]

    getMinimum

    public int getMinimum()
    Description copied from interface: Adjustable
    Gets the minimum value of the adjustable object.
    Specified by:
    getMinimum in interface Adjustable
    Returns:
    the minimum value of the adjustable object

    method:setMaximum(int) [NONE]

    setMaximum

    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.
    Specified by:
    setMaximum in interface Adjustable
    Parameters:
    max - the maximum value
    Throws:
    AWTError - Always throws an error when called.

    method:getMaximum() [NONE]

    getMaximum

    public int getMaximum()
    Description copied from interface: Adjustable
    Gets the maximum value of the adjustable object.
    Specified by:
    getMaximum in interface Adjustable
    Returns:
    the maximum value of the adjustable object

    method:setUnitIncrement(int) [NONE]

    setUnitIncrement

    public void setUnitIncrement?(int u)
    Description copied from interface: Adjustable
    Sets the unit value increment for the adjustable object.
    Specified by:
    setUnitIncrement in interface Adjustable
    Parameters:
    u - the unit increment

    method:getUnitIncrement() [NONE]

    getUnitIncrement

    public int getUnitIncrement()
    Description copied from interface: Adjustable
    Gets the unit value increment for the adjustable object.
    Specified by:
    getUnitIncrement in interface Adjustable
    Returns:
    the unit value increment for the adjustable object

    method:setBlockIncrement(int) [NONE]

    setBlockIncrement

    public void setBlockIncrement?(int b)
    Description copied from interface: Adjustable
    Sets the block value increment for the adjustable object.
    Specified by:
    setBlockIncrement in interface Adjustable
    Parameters:
    b - the block increment

    method:getBlockIncrement() [NONE]

    getBlockIncrement

    public int getBlockIncrement()
    Description copied from interface: Adjustable
    Gets the block value increment for the adjustable object.
    Specified by:
    getBlockIncrement in interface Adjustable
    Returns:
    the block value increment for the adjustable object

    method:setVisibleAmount(int) [NONE]

    setVisibleAmount

    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.
    Specified by:
    setVisibleAmount in interface Adjustable
    Parameters:
    v - the length of the indicator
    Throws:
    AWTError - Always throws an error when called.

    method:getVisibleAmount() [NONE]

    getVisibleAmount

    public int getVisibleAmount()
    Description copied from interface: Adjustable
    Gets the length of the proportional indicator.
    Specified by:
    getVisibleAmount in interface Adjustable
    Returns:
    the length of the proportional indicator

    method:setValueIsAdjusting(boolean) [NONE]

    setValueIsAdjusting

    public void setValueIsAdjusting?(boolean b)
    Sets the valueIsAdjusting property.
    Parameters:
    b - new adjustment-in-progress status
    Since:
    1.4
    See Also:
    getValueIsAdjusting()

    method:getValueIsAdjusting() [NONE]

    getValueIsAdjusting

    public boolean getValueIsAdjusting()
    Returns true if the value is in the process of changing as a result of actions being taken by the user.
    Returns:
    the value of the valueIsAdjusting property
    See Also:
    setValueIsAdjusting(boolean)

    method:setValue(int) [NONE]

    setValue

    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.

    Specified by:
    setValue in interface Adjustable
    Parameters:
    v - the new value of the scrollbar

    method:getValue() [NONE]

    getValue

    public int getValue()
    Description copied from interface: Adjustable
    Gets the current value of the adjustable object.
    Specified by:
    getValue in interface Adjustable
    Returns:
    the current value of the adjustable object

    method:addAdjustmentListener(java.awt.event.AdjustmentListener) [NONE]

    addAdjustmentListener

    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.

    Specified by:
    addAdjustmentListener in interface Adjustable
    Parameters:
    l - the adjustment listener.
    See Also:
    removeAdjustmentListener(java.awt.event.AdjustmentListener), getAdjustmentListeners(), AdjustmentListener, AdjustmentEvent

    method:removeAdjustmentListener(java.awt.event.AdjustmentListener) [NONE]

    removeAdjustmentListener

    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.

    Specified by:
    removeAdjustmentListener in interface Adjustable
    Parameters:
    l - the adjustment listener.
    Since:
    1.1
    See Also:
    addAdjustmentListener(java.awt.event.AdjustmentListener), getAdjustmentListeners(), AdjustmentListener, AdjustmentEvent

    method:getAdjustmentListeners() [NONE]

    getAdjustmentListeners

    public AdjustmentListener[] getAdjustmentListeners()
    Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable.
    Returns:
    all of this ScrollPaneAdjustable's AdjustmentListeners or an empty array if no adjustment listeners are currently registered
    Since:
    1.4
    See Also:
    addAdjustmentListener(java.awt.event.AdjustmentListener), removeAdjustmentListener(java.awt.event.AdjustmentListener), AdjustmentListener, AdjustmentEvent

    method:toString() [NONE]

    toString

    public String toString()
    Returns a string representation of this scrollbar and its values.
    Overrides:
    toString in class Object
    Returns:
    a string representation of this scrollbar.

    method:paramString() [NONE]

    paramString

    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.
    Returns:
    the parameter string of this scrollbar.

    © 2020 Oracle Corporation and/or its affiliates