com.sshtools.terminal
Interface VDUScrollBar

All Superinterfaces:
VirtualTerminalComponent
All Known Implementing Classes:
AWTScrollBar, SwingScrollBar

public interface VDUScrollBar
extends VirtualTerminalComponent

The VDUDisplay implementation will probably require access to a scroll bar of some type. This interface provides it.

Author:
$Author: james $

Method Summary
 void addScrollListener(ScrollListener listener)
          Add to the list of listeners to be informed of any changes to the state of this scrollbar.
 int getMaximum()
          Return the maximum value of the scrollbar
 int getUnitIncrement()
          Return the amount that the scrollbar changes for each unit
 int getValue()
          Return the current value of the scrollbar
 void removeScrollListener(ScrollListener listener)
          Remove from the list of listeners to be informed when the state of the scrollbar changes in some way.
 void setValue(int value)
          Set the value of the
 void setValues(int value, int extent, int min, int max)
          Set the four main values of the scrollbar
 
Methods inherited from interface com.sshtools.terminal.VirtualTerminalComponent
getComponent, init
 

Method Detail

addScrollListener

void addScrollListener(ScrollListener listener)
Add to the list of listeners to be informed of any changes to the state of this scrollbar. For example, when the user drags the scrollbar using the mouse.

Parameters:
listener - listener to add

removeScrollListener

void removeScrollListener(ScrollListener listener)
Remove from the list of listeners to be informed when the state of the scrollbar changes in some way.

Parameters:
listener - listener to remove

getValue

int getValue()
Return the current value of the scrollbar

Returns:
value of scroller

getMaximum

int getMaximum()
Return the maximum value of the scrollbar

Returns:
maximum value of scroller

setValue

void setValue(int value)
Set the value of the

Parameters:
value - of scrollbar

setValues

void setValues(int value,
               int extent,
               int min,
               int max)
Set the four main values of the scrollbar

Parameters:
value -
extent -
min -
max -

getUnitIncrement

int getUnitIncrement()
Return the amount that the scrollbar changes for each unit

Returns:
unit increment


Copyright © 2003-2004 3SP LTD. All Rights Reserved.