ScrollPane. Objects of this class are
returned by ScrollPane methods.
| Modifier and Type | Field and Description |
|---|---|
| private AdjustmentListener | |
| private int | blockIncrement
The amount by which the scrollbar value will change when going up or down by a page. |
| private transient boolean | isAdjusting
The adjusting status of the |
| private int | maximum
The maximum value of this scrollbar. |
| private int | minimum
The minimum value of this scrollbar. |
| private int | orientation
Orientation of this scrollbar. |
| private static final String | SCROLLPANE_ONLY
Error message for |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability. |
| private ScrollPane | sp
The |
| private int | unitIncrement
The amount by which the scrollbar value will change when going up or down by a line. |
| private int | value
The value of this scrollbar. |
| private int | visibleAmount
The size of the visible portion of this scrollbar. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ScrollPaneAdjustable(ScrollPane
ScrollPaneAdjustmentListener to add upon creation.specifies which scrollbar this object represents,
can be either orientation)Adjustable.HORIZONTAL
or Adjustable.VERTICAL.Constructs a new object to represent specified scrollabar
of the specified |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addAdjustmentListener(AdjustmentListener
the adjustment listener. l)Implements java. Adds the specified adjustment listener to receive adjustment
events from this |
| public synchronized AdjustmentListener[] | Returns: all of thisScrollPaneAdjustable's
AdjustmentListeners
or an empty array if no adjustment
listeners are currently registeredReturns an array of all the adjustment listeners
registered on this |
| public int | getBlockIncrement()
Implements java. Gets the block value increment for the adjustable object. |
| public int | getMaximum()
Implements java. Gets the maximum value of the adjustable object. |
| public int | getMinimum()
Implements java. Gets the minimum value of the adjustable object. |
| public int | Returns: the orientation of this scrollbar, eitherAdjustable.HORIZONTAL or
Adjustable.VERTICALImplements java. Returns the orientation of this scrollbar. |
| public int | getUnitIncrement()
Implements java. Gets the unit value increment for the adjustable object. |
| public int | |
| public boolean | Returns: the value of thevalueIsAdjusting propertyReturns true if the value is in the process of changing as a result of actions being taken by the user. |
| public int | getVisibleAmount()
Implements java. Gets the length of the proportional indicator. |
| private static native void | |
| public String | Returns: the parameter string of this scrollbar.Returns a string representing the state of this scrollbar. |
| public synchronized void | removeAdjustmentListener(AdjustmentListener
the adjustment listener. l)Implements java. Removes the specified adjustment listener so that it no longer
receives adjustment events from this |
| public synchronized void | setBlockIncrement(int b)
Implements java. Sets the block value increment for the adjustable object. |
| public void | setMaximum(int max)
Implements java. This method should NOT be called by user code. |
| public void | setMinimum(int min)
Implements java. This method should NOT be called by user code. |
| pack-priv void | setSpan(int min, int max, int visible)
This is called by the scrollpane itself to update the
|
| private void | setTypedValue(int
the new value of the scrollbar v, int the type of the scrolling operation occurred type)Sets the value of this scrollbar to the specified value. |
| public synchronized void | setUnitIncrement(int u)
Implements java. Sets the unit value increment for the adjustable object. |
| public void | setValue(int
the new value of the scrollbar v)Implements java. Sets the value of this scrollbar to the specified value. |
| public void | |
| public void | setVisibleAmount(int v)
Implements java. This method should NOT be called by user code. |
| public String | Returns: a string representation of this scrollbar.Overrides java. Returns a string representation of this scrollbar and its values. |
| adjustmentListener | back to summary |
|---|---|
private AdjustmentListener adjustmentListener
| |
| blockIncrement | back to summary |
|---|---|
| private int blockIncrement The amount by which the scrollbar value will change when going up or down by a page. This value should be a non negative integer.
| |
| isAdjusting | back to summary |
|---|---|
| private transient boolean isAdjusting The adjusting status of the
| |
| maximum | back to summary |
|---|---|
| private int maximum The maximum value of this scrollbar.
This value can only be set by the
| |
| minimum | back to summary |
|---|---|
| private int minimum The minimum value of this scrollbar.
This value can only be set by the
ATTN: In current implementation
| |
| orientation | back to summary |
|---|---|
| private int orientation Orientation of this scrollbar. | |
| SCROLLPANE_ONLY | back to summary |
|---|---|
| private static final String SCROLLPANE_ONLY Error message for | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.1 for interoperability. | |
| sp | back to summary |
|---|---|
| private ScrollPane sp The | |
| unitIncrement | back to summary |
|---|---|
| private int unitIncrement The amount by which the scrollbar value will change when going up or down by a line. This value should be a non negative integer.
| |
| value | back to summary |
|---|---|
| private int value The value of this scrollbar.
| |
| visibleAmount | back to summary |
|---|---|
| private int visibleAmount The size of the visible portion of this scrollbar.
This value can only be set by the
| |
| ScrollPaneAdjustable | back to summary |
|---|---|
| pack-priv ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation) Constructs a new object to represent specified scrollabar
of the specified
| |
| addAdjustmentListener | back to summary |
|---|---|
| public synchronized void addAdjustmentListener(AdjustmentListener l) Implements java. Adds the specified adjustment listener to receive adjustment
events from this Refer to AWT Threading Issues for details on AWT's threading model.
| |
| getAdjustmentListeners | back to summary |
|---|---|
| public synchronized AdjustmentListener[] getAdjustmentListeners() Returns an array of all the adjustment listeners
registered on this
| |
| getBlockIncrement | back to summary |
|---|---|
| public int getBlockIncrement() Implements java. Doc from java. Gets the block value increment for the adjustable object. | |
| getMaximum | back to summary |
|---|---|
| public int getMaximum() Implements java. Doc from java. Gets the maximum value of the adjustable object. | |
| getMinimum | back to summary |
|---|---|
| public int getMinimum() Implements java. Doc from java. Gets the minimum value of the adjustable object. | |
| getOrientation | back to summary |
|---|---|
| public int getOrientation() Implements java. Returns the orientation of this scrollbar.
| |
| getUnitIncrement | back to summary |
|---|---|
| public int getUnitIncrement() Implements java. Doc from java. Gets the unit value increment for the adjustable object. | |
| getValue | back to summary |
|---|---|
| public int getValue() Implements java. Doc from java. Gets the current value of the adjustable object. | |
| getValueIsAdjusting | back to summary |
|---|---|
| public boolean getValueIsAdjusting() Returns true if the value is in the process of changing as a result of actions being taken by the user.
| |
| getVisibleAmount | back to summary |
|---|---|
| public int getVisibleAmount() Implements java. Doc from java. Gets the length of the proportional indicator. | |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() Initialize JNI field and method ids. | |
| paramString | back to summary |
|---|---|
| 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
| |
| removeAdjustmentListener | back to summary |
|---|---|
| public synchronized void removeAdjustmentListener(AdjustmentListener l) Implements java. Removes the specified adjustment listener so that it no longer
receives adjustment events from this Refer to AWT Threading Issues for details on AWT's threading model.
| |
| setBlockIncrement | back to summary |
|---|---|
| public synchronized void setBlockIncrement(int b) Implements java. Doc from java. Sets the block value increment for the adjustable object. | |
| setMaximum | back to summary |
|---|---|
| public void setMaximum(int max) Implements java. This method should NOT be called by user code.
This method is public for this class to properly implement
| |
| setMinimum | back to summary |
|---|---|
| public void setMinimum(int min) Implements java. This method should NOT be called by user code.
This method is public for this class to properly implement
| |
| setSpan | back to summary |
|---|---|
| pack-priv void setSpan(int min, int max, int visible) This is called by the scrollpane itself to update the
| |
| setTypedValue | back to summary |
|---|---|
| private void setTypedValue(int v, int type) 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. Also, creates and dispatches the AdjustmentEvent with specified type and value.
| |
| setUnitIncrement | back to summary |
|---|---|
| public synchronized void setUnitIncrement(int u) Implements java. Doc from java. Sets the unit value increment for the adjustable object. | |
| setValue | back to summary |
|---|---|
| public void setValue(int v) Implements java. 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.
| |
| setValueIsAdjusting | back to summary |
|---|---|
| public void setValueIsAdjusting(boolean b) Sets the
| |
| setVisibleAmount | back to summary |
|---|---|
| public void setVisibleAmount(int v) Implements java. This method should NOT be called by user code.
This method is public for this class to properly implement
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this scrollbar and its values.
| |