Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
public class: ScrollPaneAdjustable [javadoc | source]
java.lang.Object
   java.awt.ScrollPaneAdjustable

All Implemented Interfaces:
    java$io$Serializable, Adjustable

This class represents the state of a horizontal or vertical scrollbar of a ScrollPane. Objects of this class are returned by ScrollPane methods.
Constructor:
 ScrollPaneAdjustable(ScrollPane sp,
    AdjustmentListener l,
    int orientation) 
    Constructs a new object to represent specified scrollabar of the specified ScrollPane. Only ScrollPane creates instances of this class.
    Parameters:
    sp - ScrollPane
    l - AdjustmentListener to add upon creation.
    orientation - specifies which scrollbar this object represents, can be either Adjustable.HORIZONTAL or Adjustable.VERTICAL.
Method from java.awt.ScrollPaneAdjustable Summary:
addAdjustmentListener,   getAdjustmentListeners,   getBlockIncrement,   getMaximum,   getMinimum,   getOrientation,   getUnitIncrement,   getValue,   getValueIsAdjusting,   getVisibleAmount,   paramString,   removeAdjustmentListener,   setBlockIncrement,   setMaximum,   setMinimum,   setSpan,   setUnitIncrement,   setValue,   setValueIsAdjusting,   setVisibleAmount,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.ScrollPaneAdjustable Detail:
 public synchronized  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.

 public synchronized AdjustmentListener[] getAdjustmentListeners() 
    Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable.
 public int getBlockIncrement() 
 public int getMaximum() 
 public int getMinimum() 
 public int getOrientation() 
    Returns the orientation of this scrollbar.
 public int getUnitIncrement() 
 public int getValue() 
 public boolean getValueIsAdjusting() 
    Returns true if the value is in the process of changing as a result of actions being taken by the user.
 public int getVisibleAmount() 
 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.
 public synchronized  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.

 public synchronized  void setBlockIncrement(int b) 
 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.
 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.
  void setSpan(int min,
    int max,
    int visible) 
    This is called by the scrollpane itself to update the minimum, maximum and visible values. The scrollpane is the only one that should be changing these since it is the source of these values.
 public synchronized  void setUnitIncrement(int u) 
 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.

 public  void setValueIsAdjusting(boolean b) 
    Sets the valueIsAdjusting property.
 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.
 public String toString() 
    Returns a string representation of this scrollbar and its values.