|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charva.awt.Component charvax.swing.JComponent charvax.swing.JScrollBar
An implementation of a scrollbar. The user positions the knob in the scrollbar to determine the contents of the viewing area.
Field Summary | |
protected java.util.Vector |
_adjustmentListeners
A list of AdjustmentListeners registered for this component. |
Fields inherited from class charvax.swing.JComponent |
_border |
Fields inherited from class charva.awt.Component |
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface charva.awt.Adjustable |
HORIZONTAL, VERTICAL |
Constructor Summary | |
JScrollBar()
Creates a vertical scrollbar with default values. |
|
JScrollBar(int orientation_)
Creates a scrollbar with the specified orientation and with default values. |
|
JScrollBar(int orientation_,
int value_,
int extent_,
int min_,
int max_)
Creates a scrollbar with the specified orientation, value, extent, min and max. |
Method Summary | |
void |
addAdjustmentListener(AdjustmentListener listener_)
Register an AdjustmentListener object for this component. |
void |
debug(int level_)
|
void |
draw()
Draws the border of the component (if there is one). |
int |
getBlockIncrement()
Gets the block increment (the amount by which the value will change when the arrow keys are pressed). |
int |
getHeight()
|
int |
getMaximum()
Gets the maximum value of the adjustable object. |
int |
getMinimum()
Gets the minimum value of the adjustable object. |
int |
getOrientation()
Gets the scrollbar's orientation (VERTICAL or HORIZONTAL) |
Dimension |
getSize()
Get the screen size of the scrollbar. |
int |
getValue()
Gets the value of the adjustable object. |
int |
getVisibleAmount()
Gets the length of the proportional indicator. |
int |
getWidth()
|
Dimension |
minimumSize()
|
void |
processAdjustmentEvent(AdjustmentEvent evt_)
|
void |
processKeyEvent(KeyEvent ke_)
Invoke all the KeyListener callbacks that may have been registered for this component. |
void |
removeAdjustmentListener(AdjustmentListener listener_)
|
void |
requestFocus()
This method should be invoked by all subclasses of Component which override this method; because this method generates the FOCUS_GAINED event when the component gains the keyboard focus. |
void |
setBlockIncrement(int val_)
Sets the block increment of the scrollbar. |
void |
setMaximum(int max_)
Set the scrollbar's maximum value. |
void |
setMinimum(int min_)
Set the scrollbar's minimum value. |
void |
setSize(Dimension size_)
Set the size of the component on the screen. |
void |
setValue(int value_)
Set the scrollbar's value. |
void |
setVisibleAmount(int extent_)
Set the scrollbar's extent (a.k.a "visible amount"). |
Methods inherited from class charvax.swing.JComponent |
getBorder, getInsets, setBorder |
Methods inherited from class charva.awt.Component |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector _adjustmentListeners
Constructor Detail |
public JScrollBar()
public JScrollBar(int orientation_)
public JScrollBar(int orientation_, int value_, int extent_, int min_, int max_)
Method Detail |
public int getOrientation()
getOrientation
in interface Adjustable
public void setMinimum(int min_)
setMinimum
in interface Adjustable
public void setValue(int value_)
setValue
in interface Adjustable
public void setVisibleAmount(int extent_)
setVisibleAmount
in interface Adjustable
public void setMaximum(int max_)
setMaximum
in interface Adjustable
public void setBlockIncrement(int val_)
setBlockIncrement
in interface Adjustable
public void setSize(Dimension size_)
public Dimension getSize()
getSize
in class Component
public int getWidth()
getWidth
in class Component
public int getHeight()
getHeight
in class Component
public void draw()
JComponent
draw
in class JComponent
public void processKeyEvent(KeyEvent ke_)
Component
processKeyEvent
in class Component
public void requestFocus()
Component
requestFocus
in class Component
public void addAdjustmentListener(AdjustmentListener listener_)
addAdjustmentListener
in interface Adjustable
public void removeAdjustmentListener(AdjustmentListener listener_)
removeAdjustmentListener
in interface Adjustable
public void processAdjustmentEvent(AdjustmentEvent evt_)
processAdjustmentEvent
in interface Adjustable
public void debug(int level_)
debug
in class Component
public Dimension minimumSize()
minimumSize
in class Component
public int getMinimum()
Adjustable
getMinimum
in interface Adjustable
public int getValue()
Adjustable
getValue
in interface Adjustable
public int getVisibleAmount()
Adjustable
getVisibleAmount
in interface Adjustable
public int getMaximum()
Adjustable
getMaximum
in interface Adjustable
public int getBlockIncrement()
Adjustable
getBlockIncrement
in interface Adjustable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |