JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class GridScrollbar

java.lang.Object
  |
  +--com.klg.jclass.higrid.GridScrollbar
All Implemented Interfaces:
AdjustmentListener, EventListener, GridScrollbarCallback, Serializable

public class GridScrollbar
extends Object
implements Serializable, AdjustmentListener, GridScrollbarCallback

GridScrollbar manages the interaction between an actual scrollbar (extends Component, implements Adjustable) and the HiGrid object.

See Also:
Adjustable, Serialized Form

Field Summary
static int DISPLAY_ALWAYS
          The scrollbar always is displayed.
static int DISPLAY_AS_NEEDED
          The scrollbar displays as needed.
static int DISPLAY_NEVER
          The scrollbar is never displayed.
static int HORIZONTAL
          The horizontal orientation of the scrollbar.
protected static int MAGIC_BLOCK_INCREMENT
           
static int VERTICAL
          The vertical orientation of the scrollbar.
 
Constructor Summary
GridScrollbar(com.klg.jclass.higrid.HiGrid grid, int orientation)
           
 
Method Summary
protected  void addRowtip(int value)
           
 void adjustmentValueChanged(AdjustmentEvent event)
           
 void adjustValues(int maximum, int visible)
           
 boolean atEnd()
           
 Adjustable getAdjustable()
           
protected  int getAdjustedValue(int value)
           
 int getBlockIncrement()
           
 Component getComponent()
           
 int getDisplay()
           
protected  com.klg.jclass.higrid.RowNode getLabelRowNode(int value)
           
 int getMaximum()
           
 int getMinimum()
           
 int getOrientation()
           
 Component getRowtip()
           
 com.klg.jclass.higrid.GridScrollbarCallback getRowtipCallback()
           
 String getRowtipText()
           
 int getUnitIncrement()
           
 int getValue()
           
 void initValues()
           
protected  boolean isRowtipVisible()
           
 boolean isVisible()
           
protected  void placeRowtip()
           
 void positionRowtip(Container parent, Component rowtip)
           
protected  void removeOldReferences()
          Remove references to old DataModels held by oldTopRowNode.
protected  void removeRowtip()
           
 void scrollLineDown()
           
 void scrollLineUp()
           
 void scrollPageDown()
           
 void scrollPageUp()
           
 void setAdjustable(Adjustable adj)
           
 void setBlockIncrement(int inc)
           
 void setComponent(Component comp)
           
 void setDisplay(int display)
           
 void setMaximum(int max)
           
 void setMinimum(int min)
           
 void setRowtipCallback(com.klg.jclass.higrid.GridScrollbarCallback callback)
           
 String setRowtipText(com.klg.jclass.higrid.RowNode rowNode, int currentValue, Adjustable adjustable)
           
protected  void setRowtipVisible(boolean visible)
           
 void setSize(Dimension d)
           
 void setUnitIncrement(int inc)
           
 void setValue(int value)
           
 void setValues(int value, int visible, int min, int max)
           
 void setVisible(boolean b)
           
protected  void updateRowtip(int currentValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
The horizontal orientation of the scrollbar.

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
The vertical orientation of the scrollbar.

See Also:
Constant Field Values

DISPLAY_AS_NEEDED

public static final int DISPLAY_AS_NEEDED
The scrollbar displays as needed.

See Also:
Constant Field Values

DISPLAY_ALWAYS

public static final int DISPLAY_ALWAYS
The scrollbar always is displayed.

See Also:
Constant Field Values

DISPLAY_NEVER

public static final int DISPLAY_NEVER
The scrollbar is never displayed.

See Also:
Constant Field Values

MAGIC_BLOCK_INCREMENT

protected static final int MAGIC_BLOCK_INCREMENT
See Also:
Constant Field Values
Constructor Detail

GridScrollbar

public GridScrollbar(com.klg.jclass.higrid.HiGrid grid,
                     int orientation)
Method Detail

getComponent

public Component getComponent()

setComponent

public void setComponent(Component comp)

setAdjustable

public void setAdjustable(Adjustable adj)

getAdjustable

public Adjustable getAdjustable()

adjustmentValueChanged

public void adjustmentValueChanged(AdjustmentEvent event)
Specified by:
adjustmentValueChanged in interface AdjustmentListener

getDisplay

public int getDisplay()

setDisplay

public void setDisplay(int display)

setVisible

public void setVisible(boolean b)

isVisible

public boolean isVisible()

setSize

public void setSize(Dimension d)

setUnitIncrement

public void setUnitIncrement(int inc)

getUnitIncrement

public int getUnitIncrement()

setBlockIncrement

public void setBlockIncrement(int inc)

getBlockIncrement

public int getBlockIncrement()

setValues

public void setValues(int value,
                      int visible,
                      int min,
                      int max)

setValue

public void setValue(int value)

getValue

public int getValue()

getOrientation

public int getOrientation()

setMinimum

public void setMinimum(int min)

getMinimum

public int getMinimum()

setMaximum

public void setMaximum(int max)

getMaximum

public int getMaximum()

atEnd

public boolean atEnd()

scrollLineDown

public void scrollLineDown()

scrollLineUp

public void scrollLineUp()

scrollPageDown

public void scrollPageDown()

scrollPageUp

public void scrollPageUp()

initValues

public void initValues()

adjustValues

public void adjustValues(int maximum,
                         int visible)

getAdjustedValue

protected int getAdjustedValue(int value)

getLabelRowNode

protected com.klg.jclass.higrid.RowNode getLabelRowNode(int value)

getRowtipCallback

public com.klg.jclass.higrid.GridScrollbarCallback getRowtipCallback()

setRowtipCallback

public void setRowtipCallback(com.klg.jclass.higrid.GridScrollbarCallback callback)

getRowtipText

public String getRowtipText()

getRowtip

public Component getRowtip()

isRowtipVisible

protected boolean isRowtipVisible()

setRowtipVisible

protected void setRowtipVisible(boolean visible)

removeRowtip

protected void removeRowtip()

addRowtip

protected void addRowtip(int value)

placeRowtip

protected void placeRowtip()

updateRowtip

protected void updateRowtip(int currentValue)

setRowtipText

public String setRowtipText(com.klg.jclass.higrid.RowNode rowNode,
                            int currentValue,
                            Adjustable adjustable)
Specified by:
setRowtipText in interface GridScrollbarCallback

positionRowtip

public void positionRowtip(Container parent,
                           Component rowtip)
Specified by:
positionRowtip in interface GridScrollbarCallback

removeOldReferences

protected void removeOldReferences()
Remove references to old DataModels held by oldTopRowNode.


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