Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Class java.awt.ScrollPaneAdjustable
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Class ScrollPaneAdjustable

  • java.lang.Object
    • java.awt.ScrollPaneAdjustable
  • All Implemented Interfaces:
    Adjustable, java.io.Serializable
    public class ScrollPaneAdjustable extends java.lang.Object implements Adjustable, java.io.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
    • Fields 
      Modifier and Type Field and Description
      Inherited member indicator HORIZONTAL Reveal DetailHide Detail
      static int HORIZONTAL
      Indicates that the Adjustable has horizontal orientation.
      public static final int HORIZONTAL
      Indicates that the Adjustable has horizontal orientation.
      See Also:
      Constant Field Values
      Inherited member indicator NO_ORIENTATION Reveal DetailHide Detail
      static int NO_ORIENTATION
      Indicates that the Adjustable has no orientation.
      public static final int NO_ORIENTATION
      Indicates that the Adjustable has no orientation.
      See Also:
      Constant Field Values
      Inherited member indicator VERTICAL Reveal DetailHide Detail
      static int VERTICAL
      Indicates that the Adjustable has vertical orientation.
      public static final int VERTICAL
      Indicates that the Adjustable has vertical orientation.
      See Also:
      Constant Field Values
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator addAdjustmentListener Reveal DetailHide Detail
      void addAdjustmentListener(AdjustmentListener l)
      Adds the specified adjustment listener to receive adjustment events from this ScrollPaneAdjustable.
      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
      Ordinary member indicator getAdjustmentListeners Reveal DetailHide Detail
      AdjustmentListener[] getAdjustmentListeners()
      Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable.
      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
      Ordinary member indicator getBlockIncrement Reveal DetailHide Detail
      int getBlockIncrement()
      Gets the block value increment for the adjustable object.
      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
      Ordinary member indicator getMaximum Reveal DetailHide Detail
      int getMaximum()
      Gets the maximum value of the adjustable object.
      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
      Ordinary member indicator getMinimum Reveal DetailHide Detail
      int getMinimum()
      Gets the minimum value of the adjustable object.
      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
      Ordinary member indicator getOrientation Reveal DetailHide Detail
      int getOrientation()
      Returns the orientation of this scrollbar.
      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
      Ordinary member indicator getUnitIncrement Reveal DetailHide Detail
      int getUnitIncrement()
      Gets the unit value increment for the adjustable object.
      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
      Ordinary member indicator getValue Reveal DetailHide Detail
      int getValue()
      Gets the current value of the adjustable object.
      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
      Ordinary member indicator getValueIsAdjusting Reveal DetailHide Detail
      boolean getValueIsAdjusting()
      Returns true if the value is in the process of changing as a result of actions being taken by the user.
      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)
      Ordinary member indicator getVisibleAmount Reveal DetailHide Detail
      int getVisibleAmount()
      Gets the length of the proportional indicator.
      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
      Ordinary member indicator paramString Reveal DetailHide Detail
      java.lang.String paramString()
      Returns a string representing the state of this scrollbar.
      public java.lang.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.
      Ordinary member indicator removeAdjustmentListener Reveal DetailHide Detail
      void removeAdjustmentListener(AdjustmentListener l)
      Removes the specified adjustment listener so that it no longer receives adjustment events from this ScrollPaneAdjustable.
      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:
      JDK1.1
      See Also:
      addAdjustmentListener(java.awt.event.AdjustmentListener), getAdjustmentListeners(), AdjustmentListener, AdjustmentEvent
      Ordinary member indicator setBlockIncrement Reveal DetailHide Detail
      void setBlockIncrement(int b)
      Sets the block value increment for the adjustable object.
      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
      Ordinary member indicator setMaximum Reveal DetailHide Detail
      void setMaximum(int max)
      This method should NOT be called by user code.
      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.
      Ordinary member indicator setMinimum Reveal DetailHide Detail
      void setMinimum(int min)
      This method should NOT be called by user code.
      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.
      Ordinary member indicator setUnitIncrement Reveal DetailHide Detail
      void setUnitIncrement(int u)
      Sets the unit value increment for the adjustable object.
      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
      Ordinary member indicator setValue Reveal DetailHide Detail
      void setValue(int v)
      Sets the value of this scrollbar to the specified value.
      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
      Ordinary member indicator setValueIsAdjusting Reveal DetailHide Detail
      void setValueIsAdjusting(boolean b)
      Sets the valueIsAdjusting property.
      public void setValueIsAdjusting(boolean b)
      Sets the valueIsAdjusting property.
      Parameters:
      b - new adjustment-in-progress status
      Since:
      1.4
      See Also:
      getValueIsAdjusting()
      Ordinary member indicator setVisibleAmount Reveal DetailHide Detail
      void setVisibleAmount(int v)
      This method should NOT be called by user code.
      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.
      Overridden member indicator toString Reveal DetailHide Detail
      java.lang.String toString()
      Returns a string representation of this scrollbar and its values.
      public java.lang.String toString()
      Returns a string representation of this scrollbar and its values.
      Overrides:
      toString in class java.lang.Object
      Returns:
      a string representation of this scrollbar.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge