|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.ScrollPaneAdjustable
public class ScrollPaneAdjustable
Need this class since the serialization spec for ScrollPane uses it.
Field Summary |
---|
Fields inherited from interface java.awt.Adjustable |
---|
HORIZONTAL, NO_ORIENTATION, VERTICAL |
Method Summary | |
---|---|
void |
addAdjustmentListener(AdjustmentListener listener)
Adds a listener that will receive adjustment events for this object. |
AdjustmentListener[] |
getAdjustmentListeners()
|
int |
getBlockIncrement()
Returns the increment value for incrementing the value by blocks. |
int |
getMaximum()
Returns the maximum value this object can have. |
int |
getMinimum()
Returns the minimum value this object can have. |
int |
getOrientation()
Returns a constant representing the orientation of the object. |
int |
getUnitIncrement()
Returns the increment value for incrementing the value by units. |
int |
getValue()
Returns the current value of the object. |
boolean |
getValueIsAdjusting()
Returns true if the value is in the process of changing. |
int |
getVisibleAmount()
Returns the length of the indicator for this object. |
String |
paramString()
|
void |
removeAdjustmentListener(AdjustmentListener listener)
Removes an adjustment listener from this object. |
void |
setBlockIncrement(int blockIncrement)
Sets the increment value for incrementing the value by blocks. |
void |
setMaximum(int maximum)
This method should never be called. |
void |
setMinimum(int minimum)
This method should never be called. |
void |
setUnitIncrement(int unitIncrement)
Sets the increment value for incrementing the value by units. |
void |
setValue(int value)
Sets the current value of the object. |
void |
setValueIsAdjusting(boolean valueIsAdjusting)
Sets the value of valueIsAdjusting. |
void |
setVisibleAmount(int visibleAmount)
This method should never be called. |
String |
toString()
Convert this Object to a human-readable String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void addAdjustmentListener(AdjustmentListener listener)
Adjustable
addAdjustmentListener
in interface Adjustable
listener
- the adjustment listener to addAdjustmentEvent
public void removeAdjustmentListener(AdjustmentListener listener)
Adjustable
removeAdjustmentListener
in interface Adjustable
listener
- the adjustment listener to removeAdjustmentEvent
public AdjustmentListener[] getAdjustmentListeners()
public int getBlockIncrement()
Adjustable
getBlockIncrement
in interface Adjustable
public int getMaximum()
Adjustable
getMaximum
in interface Adjustable
public int getMinimum()
Adjustable
getMinimum
in interface Adjustable
public int getOrientation()
Adjustable
getOrientation
in interface Adjustable
Adjustable.HORIZONTAL
,
Adjustable.VERTICAL
,
Adjustable.NO_ORIENTATION
public int getUnitIncrement()
Adjustable
getUnitIncrement
in interface Adjustable
public int getValue()
Adjustable
getValue
in interface Adjustable
public int getVisibleAmount()
Adjustable
getVisibleAmount
in interface Adjustable
public void setBlockIncrement(int blockIncrement)
Adjustable
setBlockIncrement
in interface Adjustable
blockIncrement
- the block increment valuepublic void setMaximum(int maximum) throws AWTError
setMaximum
in interface Adjustable
maximum
- The maximum value to be set.
AWTError
- Always throws this error when called.public void setMinimum(int minimum)
setMinimum
in interface Adjustable
minimum
- The minimum value to be set.
AWTError
- Always throws this error when called.public void setUnitIncrement(int unitIncrement)
Adjustable
setUnitIncrement
in interface Adjustable
unitIncrement
- the unit increment valuepublic void setValue(int value)
Adjustable
setValue
in interface Adjustable
value
- the new valuepublic void setVisibleAmount(int visibleAmount)
setVisibleAmount
in interface Adjustable
visibleAmount
- The visible amount to be set.
AWTError
- Always throws this error when called.public String paramString()
public String toString()
Object
System.out.println()
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a RuntimeException
.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
public boolean getValueIsAdjusting()
public void setValueIsAdjusting(boolean valueIsAdjusting)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |