java.awt
Class ScrollPaneAdjustable

java.lang.Object
  |
  +--java.awt.ScrollPaneAdjustable

class ScrollPaneAdjustable
extends Object
implements Adjustable, Serializable

See Also:
Serialized Form

Field Summary
private  AdjustmentListener adjustmentListener
           
private  int blockIncrement
           
private  int maximum
           
private  int minimum
           
private  int orientation
           
private static String SCROLLPANE_ONLY
           
private static long serialVersionUID
           
private  ScrollPane sp
           
private  int unitIncrement
           
private  int value
           
private  int visibleAmount
           
 
Constructor Summary
ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation)
           
 
Method Summary
(package private) static void ()
           
 void addAdjustmentListener(AdjustmentListener l)
          Adds the specified adjustment listener to receive adjustment events from this ScrollPane.
 int getBlockIncrement()
           
 int getMaximum()
           
 int getMinimum()
           
 int getOrientation()
           
 int getUnitIncrement()
           
 int getValue()
           
 int getVisibleAmount()
           
private static void initIDs()
          Initialize JNI field and method ids
 String paramString()
           
 void removeAdjustmentListener(AdjustmentListener l)
          Removes the specified adjustment listener so that it no longer receives adjustment events from this button.
 void setBlockIncrement(int b)
           
 void setMaximum(int max)
           
 void setMinimum(int min)
           
(package private)  void setSpan(int min, int max, int visible)
          This is called by the scrollpane itself to update the min,max,visible values.
 void setUnitIncrement(int u)
           
 void setValue(int v)
           
 void setVisibleAmount(int v)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

sp

private ScrollPane sp

orientation

private int orientation

minimum

private int minimum

maximum

private int maximum

visibleAmount

private int visibleAmount

unitIncrement

private int unitIncrement

blockIncrement

private int blockIncrement

value

private int value

adjustmentListener

private AdjustmentListener adjustmentListener

SCROLLPANE_ONLY

private static final String SCROLLPANE_ONLY

serialVersionUID

private static final long serialVersionUID
Constructor Detail

ScrollPaneAdjustable

public ScrollPaneAdjustable(ScrollPane sp,
                            AdjustmentListener l,
                            int orientation)
Method Detail

initIDs

private static void initIDs()
Initialize JNI field and method ids

static void ()

setSpan

void setSpan(int min,
             int max,
             int visible)
This is called by the scrollpane itself to update the min,max,visible values. The scrollpane is the only one that should be changing these since it is the source of these values.

getOrientation

public int getOrientation()
Specified by:
getOrientation in interface Adjustable

setMinimum

public void setMinimum(int min)
Specified by:
setMinimum in interface Adjustable

getMinimum

public int getMinimum()
Specified by:
getMinimum in interface Adjustable

setMaximum

public void setMaximum(int max)
Specified by:
setMaximum in interface Adjustable

getMaximum

public int getMaximum()
Specified by:
getMaximum in interface Adjustable

setUnitIncrement

public void setUnitIncrement(int u)
Specified by:
setUnitIncrement in interface Adjustable

getUnitIncrement

public int getUnitIncrement()
Specified by:
getUnitIncrement in interface Adjustable

setBlockIncrement

public void setBlockIncrement(int b)
Specified by:
setBlockIncrement in interface Adjustable

getBlockIncrement

public int getBlockIncrement()
Specified by:
getBlockIncrement in interface Adjustable

setVisibleAmount

public void setVisibleAmount(int v)
Specified by:
setVisibleAmount in interface Adjustable

getVisibleAmount

public int getVisibleAmount()
Specified by:
getVisibleAmount in interface Adjustable

setValue

public void setValue(int v)
Specified by:
setValue in interface Adjustable

getValue

public int getValue()
Specified by:
getValue in interface Adjustable

addAdjustmentListener

public void addAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive adjustment events from this ScrollPane. If l is null, no exception is thrown and no action is performed.
Specified by:
addAdjustmentListener in interface Adjustable
Parameters:
l - the adjustment listener.
See Also:
AdjustmentListener, java.awt.ScrollPane#removeAdjustmentListener

removeAdjustmentListener

public void removeAdjustmentListener(AdjustmentListener l)
Removes the specified adjustment listener so that it no longer receives adjustment events from this button. If l is null, no exception is thrown and no action is performed.
Specified by:
removeAdjustmentListener in interface Adjustable
Parameters:
l - the adjustment listener.
Since:
JDK1.1
See Also:
AdjustmentListener, java.awt.Button#addAdjustmentListener

toString

public String toString()
Overrides:
toString in class Object

paramString

public String paramString()