JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class AdjustmentHandler

java.lang.Object
  |
  +--com.klg.jclass.table.AdjustmentHandler
All Implemented Interfaces:
AdjustmentListener, EventListener, Serializable

public class AdjustmentHandler
extends Object
implements AdjustmentListener, Serializable

AdjustmentHandler responds to AdjustmentEvents and manages table scrolling.

See Also:
Serialized Form

Field Summary
protected  boolean isTracking
           
protected  com.klg.jclass.table.JCTable table
           
protected  JLabel trackLabel
           
 
Constructor Summary
AdjustmentHandler(com.klg.jclass.table.JCTable table)
          Creates a new AdjustmentHandler and links it to table.
 
Method Summary
 void adjustmentValueChanged(AdjustmentEvent e)
          Controls the origin of the scrollable cell region when AdjustmentEvent objects are generated by the scrollbars.
protected  void adjustOrigin()
          Ensures that the cell origin is always in sync with the current scrollbar values.
 void dispose()
          Ensures that AdjustmentHandler can be disposed.
protected  com.klg.jclass.table.CellArea getBottomCellArea()
          Returns bottom-most CellArea that will be used for placing the horizontal track label when visible.
protected  com.klg.jclass.table.CellArea getRightCellArea()
          Returns the right-most CellArea that will be used for placing the vertical track label when visible.
 boolean isTracking()
          Returns the scrollbar tracking state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected com.klg.jclass.table.JCTable table

isTracking

protected boolean isTracking

trackLabel

protected JLabel trackLabel
Constructor Detail

AdjustmentHandler

public AdjustmentHandler(com.klg.jclass.table.JCTable table)
Creates a new AdjustmentHandler and links it to table.

Parameters:
table - The table to which this handler is linked
Method Detail

adjustmentValueChanged

public void adjustmentValueChanged(AdjustmentEvent e)
Controls the origin of the scrollable cell region when AdjustmentEvent objects are generated by the scrollbars. AdjustmentHandler determines the origin based on the JumpScroll setting.

Specified by:
adjustmentValueChanged in interface AdjustmentListener
Parameters:
e - The event generated by the adjustment

adjustOrigin

protected void adjustOrigin()
Ensures that the cell origin is always in sync with the current scrollbar values.


getBottomCellArea

protected com.klg.jclass.table.CellArea getBottomCellArea()
Returns bottom-most CellArea that will be used for placing the horizontal track label when visible.

Returns:
The bottom-most CellArea

getRightCellArea

protected com.klg.jclass.table.CellArea getRightCellArea()
Returns the right-most CellArea that will be used for placing the vertical track label when visible.

Returns:
The right most cell area

isTracking

public boolean isTracking()
Returns the scrollbar tracking state. During the tracking the table does not adjust according to the scrollbar value, but redisplays after the tracking completes.

Returns:
The current scrollbar tracking state

dispose

public void dispose()
Ensures that AdjustmentHandler can be disposed.


Copyright © 2004 Quest Software Inc..
All rights reserved.