bibliothek.gui.dock.station.toolbar.group
Interface ColumnScrollBar

All Known Implementing Classes:
SlimScrollbar

public interface ColumnScrollBar

A scrollbar used by the ToolbarGroupDockStation to slide around entire columns of buttons.

Author:
Benjamin Sigg

Method Summary
 void addAdjustmentListener(AdjustmentListener listener)
          Adds a listener to this scrollbar, the listener is to be called whenever the value changes.
 Component getComponent()
          Gets a Component which is the graphical representation of this scrollbar
 int getValue()
          Gets the offset of the scrollbar.
 void removeAdjustmentListener(AdjustmentListener listener)
          Removes listener from this scrollbar.
 void setOrientation(Orientation orientation)
          Sets the orientation of the scrollbar
 void setValues(int required, int available)
          Tells this scrollbar how much space is required, and how much space is available.
 

Method Detail

setValues

void setValues(int required,
               int available)
Tells this scrollbar how much space is required, and how much space is available.

Parameters:
required - the required pixels to show a column
available - the pixels actually available

getValue

int getValue()
Gets the offset of the scrollbar. This value is between 0 and available - required.

Returns:
the offset

getComponent

Component getComponent()
Gets a Component which is the graphical representation of this scrollbar

Returns:
the graphical representation, not null

setOrientation

void setOrientation(Orientation orientation)
Sets the orientation of the scrollbar

Parameters:
orientation - the orientation, not null

addAdjustmentListener

void addAdjustmentListener(AdjustmentListener listener)
Adds a listener to this scrollbar, the listener is to be called whenever the value changes.

Parameters:
listener - the new listener, not null

removeAdjustmentListener

void removeAdjustmentListener(AdjustmentListener listener)
Removes listener from this scrollbar.

Parameters:
listener - the listener to remove