java.lang.Object | +--java.awt.ScrollPaneAdjustable
Safe:
private int
blockIncrement
private static String
SCROLLPANE_ONLY
AWTError reported when one of
the public but unsupported methods is called.
private int
unitIncrement
(package private)
ScrollPaneAdjustable(ScrollPane sp,
AdjustmentListener l,
int orientation)
ScrollPane.
void
addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable.
AdjustmentListener[]
getAdjustmentListeners()
ScrollPaneAdjustable.
boolean
getValueIsAdjusting()
void
removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable.
(package private) void
setSpan(int min,
int max,
int visible)
minimum, maximum and
visible values.
private ScrollPane sp
ScrollPane this object is a scrollbar of.
private int orientation
getOrientation(),
java.awt.Adjustable#HORIZONTAL,
java.awt.Adjustable#VERTICALprivate int value
value should be greater than minimum
and less than maximum
getValue(),
setValue(int)private int minimum
ScrollPane.
ATTN: In current implementation
minimum is always 0. This field can
only be altered via setSpan method and
ScrollPane always calls that method with
0 for the minimum. getMinimum method
always returns 0 without checking this field.
getMinimum(),
setSpan(int, int, int)private int maximum
ScrollPane.
getMaximum(),
setSpan(int, int, int)private int visibleAmount
ScrollPane.
getVisibleAmount(),
setSpan(int, int, int)private transient boolean isAdjusting
Scrollbar.
True if the value is in the process of changing as a result of
actions being taken by the user.
getValueIsAdjusting(),
setValueIsAdjusting(boolean)private int unitIncrement
getUnitIncrement(),
setUnitIncrement(int)private int blockIncrement
getBlockIncrement(),
setBlockIncrement(int)private AdjustmentListener adjustmentListener
private static final String SCROLLPANE_ONLY
AWTError reported when one of
the public but unsupported methods is called.
private static final long serialVersionUID
ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation)
ScrollPane.
Only ScrollPane creates instances of this class.
sp - ScrollPanel - AdjustmentListener to add upon creation.orientation - specifies which scrollbar this object represents,
can be either Adjustable.HORIZONTAL
or Adjustable.VERTICAL.private static void initIDs()
void setSpan(int min, int max, int visible)
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 int getOrientation()
getOrientation in interface AdjustableAdjustable.HORIZONTAL or
Adjustable.VERTICALpublic void setMinimum(int min)
Adjustable interface.
setMinimum in interface Adjustablemin - the minimum value
AWTError - Always throws an error when called.public int getMinimum()
getMinimum in interface Adjustablepublic void setMaximum(int max)
Adjustable interface.
setMaximum in interface Adjustablemax - the maximum value
AWTError - Always throws an error when called.public int getMaximum()
getMaximum in interface Adjustablepublic void setUnitIncrement(int u)
setUnitIncrement in interface Adjustableu - the unit incrementpublic int getUnitIncrement()
getUnitIncrement in interface Adjustablepublic void setBlockIncrement(int b)
setBlockIncrement in interface Adjustableb - the block incrementpublic int getBlockIncrement()
getBlockIncrement in interface Adjustablepublic void setVisibleAmount(int v)
Adjustable interface.
setVisibleAmount in interface Adjustablev - the length of the indicator
AWTError - Always throws an error when called.public int getVisibleAmount()
getVisibleAmount in interface Adjustablepublic void setValueIsAdjusting(boolean b)
valueIsAdjusting property.
b - new adjustment-in-progress statusgetValueIsAdjusting()public boolean getValueIsAdjusting()
valueIsAdjusting propertysetValueIsAdjusting(boolean)public void setValue(int v)
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.
setValue in interface Adjustablev - the new value of the scrollbarpublic int getValue()
getValue in interface Adjustablepublic void addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable.
If l is null, no exception is thrown
and no action is performed.
addAdjustmentListener in interface Adjustablel - the adjustment listener.removeAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
java.awt.event.AdjustmentListener,
java.awt.event.AdjustmentEventpublic void removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable.
If l is null, no exception is thrown
and no action is performed.
removeAdjustmentListener in interface Adjustablel - the adjustment listener.addAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
java.awt.event.AdjustmentListener,
java.awt.event.AdjustmentEventpublic AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable.
ScrollPaneAdjustable's
AdjustmentListeners
or an empty array if no adjustment
listeners are currently registeredaddAdjustmentListener(java.awt.event.AdjustmentListener),
removeAdjustmentListener(java.awt.event.AdjustmentListener),
java.awt.event.AdjustmentListener,
java.awt.event.AdjustmentEventpublic String toString()
public String paramString()
null.