ScrollbarNameScrollbar
DescriptionThe Scrollbar is a Component that provides the means to get and set values within a predetermined range. For example, a scrollbar could be used for a volume control. Scrollbars are most frequently used to help users manipulate areas too large to be displayed on the screen (pre version 1.1) or to set a value within an integer range. Class Definition
public class java.awt.Scrollbar extends java.awt.Component implements java.awt.Adjustable { // Constants public final static int HORIZONTAL; public final static int VERTICAL; // Constructors public Scrollbar(); public Scrollbar (int orientation); public Scrollbar (int orientation, int value, int visible, int minimum, int maximum); // Instance Methods public void addAdjustmentListener (AdjustmentListener l); public void addNotify(); public int getBlockIncrement(); public int getLineIncrement(); public int getMaximum(); public int getMinimum(); public int getOrientation(); public int getPageIncrement(); public int getUnitIncrement(); public int getValue(); public int getVisible(); public int getVisibleAmount(); public void removeAdjustmentListener (AdjustmentListener l); public synchronized void setBlockIncrement (int v); public void setLineIncrement (int amount); public synchronized void setMaximum (int newMaximum); public synchronized void setMinimum (int newMinimum); public synchronized void setOrientation (int orientation); public void setPageIncrement (int amount); public synchronized void setUnitIncrement(int v); public synchronized void setValue (int value); public synchronized void setValues (int value, int visible, int minimum, int maximum); public synchronized void setVisibleAmount (int newAmount); // Protected Instance Methods protected String paramString(); protected void processAdjustmentEvent (AdjustmentEvent e); protected void processEvent (AWTEvent e); } ConstantsHORIZONTALpublic final static int HORIZONTALConstant used for a Scrollbar with a horizontal orientation. VERTICALpublic final static int VERTICALConstant used for a Scrollbar with a vertical orientation. ConstructorsScrollbarpublic Scrollbar()
public Scrollbar (int orientation)
public Scrollbar (int orientation, int value, int visible, int minimum, int maximum)
Instance MethodsaddAdjustmentListenerpublic void addAdjustmentListener (AdjustmentListener l)
addNotifypublic void addNotify()
getBlockIncrementpublic int getBlockIncrement()
getLineIncrementpublic int getLineIncrement()
getMaximumpublic int getMaximum()
getMinimumpublic int getMinimum()
getOrientationpublic int getOrientation()
getPageIncrementpublic int getPageIncrement()
getUnitIncrementpublic int getUnitIncrement()
getValuepublic int getValue()
getVisiblepublic int getVisible()
getVisibleAmountpublic int getVisibleAmount()
removeAdjustmentListenerpublic void removeAdjustmentListener (AdjustmentListener l)
setBlockIncrementpublic synchronized void setBlockIncrement (int amount)
setLineIncrementpublic void setLineIncrement (int amount)
setMaximumpublic synchronized void setMaximum (int newMaximum)
setMinimumpublic synchronized void setMinimum (int newMinimum)
setOrientationpublic synchronized void setOrientation (int orientation)
setPageIncrementpublic void setPageIncrement (int amount)
setUnitIncrementpublic synchronized void setUnitIncrement (int amount)
setValuepublic synchronized void setValue (int value)
setValuespublic synchronized void setValues (int value, int visible, int minimum, int maximum)
setVisibleAmountpublic synchronized void setVisibleAmount (int newAmount)
Protected Instance MethodsparamStringprotected String paramString()
processAdjustmentEventprotected void processAdjustmentEvent (AdjustmentEvent e)
processEventprotected void processEvent (AWTEvent e)
See AlsoAdjustable, Component, String |
|