| |
|
| java.lang.Object java.awt.ScrollPaneAdjustable
ScrollPaneAdjustable | public class ScrollPaneAdjustable implements Adjustable,Serializable(Code) | | This class represents the state of a horizontal or vertical
scrollbar of a ScrollPane . Objects of this class are
returned by ScrollPane methods.
version: 1.17 05/05/07 since: 1.4 |
Method Summary | |
public synchronized void | addAdjustmentListener(AdjustmentListener l) Adds the specified adjustment listener to receive adjustment
events from this ScrollPaneAdjustable . | 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. | public synchronized void | removeAdjustmentListener(AdjustmentListener l) Removes the specified adjustment listener so that it no longer
receives adjustment events from this ScrollPaneAdjustable . | public synchronized void | setBlockIncrement(int b) | public void | setMaximum(int max) This method should NOT be called by user code. | public void | setMinimum(int min) This method should NOT be called by user code. | void | setSpan(int min, int max, int visible) This is called by the scrollpane itself to update the
minimum , maximum and
visible values. | public synchronized void | setUnitIncrement(int u) | public void | setValue(int v) Sets the value of this scrollbar to the specified value. | public void | setValueIsAdjusting(boolean b) Sets the valueIsAdjusting property. | public void | setVisibleAmount(int v) This method should NOT be called by user code. | public String | toString() Returns a string representation of this scrollbar and its values. |
ScrollPaneAdjustable | ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation)(Code) | | Constructs a new object to represent specified scrollabar
of the specified ScrollPane .
Only ScrollPane creates instances of this class.
Parameters: sp - ScrollPane Parameters: l - AdjustmentListener to add upon creation. Parameters: orientation - specifies which scrollbar this object represents,can be either Adjustable.HORIZONTAL or Adjustable.VERTICAL . |
getBlockIncrement | public int getBlockIncrement()(Code) | | |
getMaximum | public int getMaximum()(Code) | | |
getMinimum | public int getMinimum()(Code) | | |
getOrientation | public int getOrientation()(Code) | | Returns the orientation of this scrollbar.
the orientation of this scrollbar, eitherAdjustable.HORIZONTAL orAdjustable.VERTICAL |
getUnitIncrement | public int getUnitIncrement()(Code) | | |
getValue | public int getValue()(Code) | | |
getValueIsAdjusting | public boolean getValueIsAdjusting()(Code) | | Returns true if the value is in the process of changing as a
result of actions being taken by the user.
the value of the valueIsAdjusting property See Also: ScrollPaneAdjustable.setValueIsAdjusting |
getVisibleAmount | public int getVisibleAmount()(Code) | | |
paramString | public String paramString()(Code) | | 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 .
the parameter string of this scrollbar. |
setBlockIncrement | public synchronized void setBlockIncrement(int b)(Code) | | |
setMaximum | public void setMaximum(int max)(Code) | | This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
AWTError Always throws an error when called. |
setMinimum | public void setMinimum(int min)(Code) | | This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
AWTError Always throws an error when called. |
setSpan | void setSpan(int min, int max, int visible)(Code) | | 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.
|
setUnitIncrement | public synchronized void setUnitIncrement(int u)(Code) | | |
setValue | public void setValue(int v)(Code) | | 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.
Parameters: v - the new value of the scrollbar |
setVisibleAmount | public void setVisibleAmount(int v)(Code) | | This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
AWTError Always throws an error when called. |
toString | public String toString()(Code) | | Returns a string representation of this scrollbar and its values.
a string representation of this scrollbar. |
|
|
|