|
|||||||||
| 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 Adjustablelistener - the adjustment listener to addAdjustmentEventpublic void removeAdjustmentListener(AdjustmentListener listener)
Adjustable
removeAdjustmentListener in interface Adjustablelistener - the adjustment listener to removeAdjustmentEventpublic AdjustmentListener[] getAdjustmentListeners()
public int getBlockIncrement()
Adjustable
getBlockIncrement in interface Adjustablepublic int getMaximum()
Adjustable
getMaximum in interface Adjustablepublic int getMinimum()
Adjustable
getMinimum in interface Adjustablepublic int getOrientation()
Adjustable
getOrientation in interface AdjustableAdjustable.HORIZONTAL,
Adjustable.VERTICAL,
Adjustable.NO_ORIENTATIONpublic int getUnitIncrement()
Adjustable
getUnitIncrement in interface Adjustablepublic int getValue()
Adjustable
getValue in interface Adjustablepublic int getVisibleAmount()
Adjustable
getVisibleAmount in interface Adjustablepublic void setBlockIncrement(int blockIncrement)
Adjustable
setBlockIncrement in interface AdjustableblockIncrement - the block increment value
public void setMaximum(int maximum)
throws AWTError
setMaximum in interface Adjustablemaximum - The maximum value to be set.
AWTError - Always throws this error when called.public void setMinimum(int minimum)
setMinimum in interface Adjustableminimum - The minimum value to be set.
AWTError - Always throws this error when called.public void setUnitIncrement(int unitIncrement)
Adjustable
setUnitIncrement in interface AdjustableunitIncrement - the unit increment valuepublic void setValue(int value)
Adjustable
setValue in interface Adjustablevalue - the new valuepublic void setVisibleAmount(int visibleAmount)
setVisibleAmount in interface AdjustablevisibleAmount - The visible amount to be set.
AWTError - Always throws this error when called.public String paramString()
public String toString()
ObjectSystem.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 ObjectObject.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 | ||||||||