JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class RowTree

java.lang.Object
  |
  +--javax.swing.tree.DefaultTreeModel
        |
        +--com.klg.jclass.datasource.DataSourceTreeModel
              |
              +--com.klg.jclass.higrid.RowTree
All Implemented Interfaces:
Serializable, TreeModel

public class RowTree
extends DataSourceTreeModel

The RowTree holds the run-time visual information for the levels of an instance of HiGrid. It is composed entirely of {@ link RowNode} objects.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.datasource.DataSourceTreeModel
NullRoot
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
RowTree(com.klg.jclass.higrid.HiGrid grid)
          Constructor for the RowTree object.
RowTree(com.klg.jclass.higrid.HiGrid grid, boolean runtime)
          Constructor for the RowTree object.
 
Method Summary
protected  void addRepeatHeader(com.klg.jclass.higrid.RowNode rowNode)
          Add possible repeat header after current row node
protected  void addRowNode(com.klg.jclass.higrid.RowNode rnParent, com.klg.jclass.higrid.RowNode rn, com.klg.jclass.higrid.RowNode rnBefore)
          Add row node to the row tree.
protected  void addTotalNumberOfScrollableRows(int rows)
          Adds to the total number of scrollable rows in the grid.
protected  void addTotalNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.FormatNode formatNode)
          Adds to the total number of scrollable rows in the grid for the given row.
protected static void addUnique(Vector v, Object object)
           
protected  void closeFolder(com.klg.jclass.higrid.RowNode rowNode)
          Close the current RowNode folder.
protected  void closeFolder(com.klg.jclass.higrid.RowNode rowNode, boolean updateRowCount)
          Close the current RowNode folder.
protected  void computeTotalWidth()
          Compute the maximum width of scrollable rows for the grid area
protected  int computeTotalWidth(com.klg.jclass.higrid.FormatNode node, boolean root)
          Compute the maximum width of scrollable rows for this format node and its children
protected  void createPrintTimeTree(com.klg.jclass.higrid.FormatTree formatTree, int[] metaIDArray)
          Creates the print time row tree.
protected  com.klg.jclass.higrid.RowNode createRowNode(com.klg.jclass.higrid.FormatNode node, com.klg.jclass.higrid.RowFormat format, com.klg.jclass.datasource.DataTableModel dataTableModel, long bookmark)
          Helper method to create a row node.
protected  void createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject)
          A helper routine that is called by createRuntimeChildren.
protected  com.klg.jclass.higrid.FormatNode createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.datasource.DataTableModel dataTableModel)
          Add a row node for a given data table model to the specified row node parent.
protected  int createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode node, com.klg.jclass.datasource.DataTableModel dataModel, boolean checkBeforeDetails, com.klg.jclass.higrid.RowNode rnBefore)
          A helper routine that is called by createRuntimeTree.
protected  void createRuntimeTree(com.klg.jclass.higrid.FormatTree formatTree)
          Creates the runtime RowTree.
protected  boolean displayRowChildren(Graphics gc, com.klg.jclass.higrid.RowNode firstNode)
          A recursive helper routine for displayThisRowAndBelow().
protected  void displayRuntimeTree(Graphics gc)
          Draws the higrid into the specified Graphics context.
protected  boolean displayThisRowAndBelow(Graphics gc, com.klg.jclass.higrid.RowNode node)
          A recursive helper routine for displayRuntimeTree().
protected  int doPageDown(int row)
          Find the row index of the topmost visible row on a page down and update the grid area.
protected  int doPageUp(int row)
          Find the row index of the topmost visible row on a page up and update the grid area.
 com.klg.jclass.higrid.RowNode findFirstRowNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.datasource.DataTableModel dtm)
           
 com.klg.jclass.higrid.RowNode findHeaderRowNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode formatNode)
           
protected  com.klg.jclass.higrid.RowNode findInsertBeforeFormatNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode formatNode)
           
protected  com.klg.jclass.higrid.RowNode findInsertBeforeNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode formatNode)
           
protected  void findLastPageTopRow()
          Find the row index and the row node of the topmost visible row for the last page.
protected  com.klg.jclass.higrid.RowNode findNextNode(com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.FormatNode formatNode)
           
protected  com.klg.jclass.higrid.RowNode findNextRecordRowNode(com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.FormatNode formatNode)
           
protected  com.klg.jclass.higrid.RowNode findPreviousRecordRowNode(com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.FormatNode formatNode)
           
 com.klg.jclass.higrid.RowNode findRecordRowNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode formatNode)
           
 com.klg.jclass.higrid.RowNode findRecordRowNode(com.klg.jclass.higrid.RowNode rootObject, long bookmark)
           
 com.klg.jclass.higrid.RowNode findRowNode(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode formatNode, int index)
           
protected  Vector getDataTableChildren(com.klg.jclass.higrid.RowNode rowNode)
          Creates a list of DataTables that exist as immediate children of this row
protected  com.klg.jclass.datasource.DataTableModel getDataTableModel(com.klg.jclass.higrid.FormatNode formatNode, com.klg.jclass.higrid.RowNode rootObject)
          Retrieves the DataTableModel for a given format node below a given row node (one level deep only).
protected  int getFirstLevelGridAreaWidth()
          Retrieves the first format node level width.
protected  com.klg.jclass.higrid.RowNode getFirstRecordRowNode()
          Does a quick search for the first record format node.
protected  int getGridAreaRows()
          Retrieves the number of rows fully visible in the gridArea
 int getGridAreaWidth()
          Retrieves the gridArea width.
protected  com.klg.jclass.higrid.RowNode getNextUncle(com.klg.jclass.higrid.RowNode rootObject)
          A helper routine that returns the "uncle" (or "aunt") of the passed row.
protected  Vector getNodeLevelList(com.klg.jclass.higrid.RowNode rowNode)
           
protected  int getNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rootObject, boolean add)
          Retrieves the number of scrollable rows beneath this row.
protected  int getNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rootObject, com.klg.jclass.higrid.FormatNode node, boolean add)
          Retrieves the number of scrollable rows beneath this row of a given format node.
protected  com.klg.jclass.higrid.RowNode getPreviousUncle(com.klg.jclass.higrid.RowNode rootObject)
          A helper routine that returns the "uncle" (or "aunt") of the passed row.
protected  int getRowIndex(com.klg.jclass.higrid.RowNode rowNode)
          Converts a RowNode to its index in the RowTree
protected  com.klg.jclass.higrid.RowNode getRowNode(int index)
          Converts an index to a RowNode
protected  int getScrollableRowsHeight()
          Retrieves the ScrollableRows height in pixels.
protected  com.klg.jclass.higrid.RowNode getTopRowNode()
          Retrieves the topmost visible RowNode.
protected  com.klg.jclass.higrid.RowNode getTopRowNodeFromLastFullyVisibleRow(com.klg.jclass.higrid.RowNode lastVisibleRow)
          Find the row node of the topmost visible row when the row at the bottom of the window is scrolled into view.
 int getTotalNumberOfScrollableRows()
          Retrieves the total number of scrollable rows in the grid.
protected  boolean isPrintNode(com.klg.jclass.higrid.FormatNode node)
          Determine if the given format node is to be printed.
protected  void openFolder(com.klg.jclass.higrid.RowNode rowNode)
          Open the current RowNode folder.
protected  boolean parentFolderClosed(com.klg.jclass.datasource.DataTableModel table)
           
protected  void removeRepeatHeader(com.klg.jclass.higrid.RowNode rowNode)
          Remove possible repeat header after current row node
protected  void setFirstLevelGridAreaWidth(int width)
          Sets the first format node level width.
protected  int setGridAreaRows()
          Sets the number of rows fully visible in the gridArea and calculate the last top row.
protected  int setGridAreaRows(int rowIndex, com.klg.jclass.higrid.RowNode rowNode)
           
protected  void setGridAreaWidth(int width)
          Sets the gridArea width.
protected  void setScrollableRowsHeight(int height)
          Sets the ScrollableRows height in pixels.
protected  void setSortTable(boolean sort)
          Set the indication that setup of the row tree, sorting may be performed.
protected  void setTopRow(int value)
          Sets the topmost visible row in the higrid based on the passed value and sets the vertical scrollbar position to this value.
protected  void setTopRow(com.klg.jclass.higrid.RowNode rowNode)
          Sets the topmost visible row in the higrid based on the given row node.
protected  void setTopRowNode(com.klg.jclass.higrid.RowNode rowNode)
          Sets the topmost visible RowNode.
protected  void setTotalNumberOfScrollableRows(int rows)
          Sets the total number of scrollable rows in the grid.
protected  void subtractTotalNumberOfScrollableRows(int rows)
          Subtracts from the total number of scrollable rows in the grid.
protected  void subtractTotalNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.FormatNode formatNode)
          Subtracts from the total number of scrollable rows in the grid for the given row.
protected  void updateGridArea()
           
protected  int updateGridArea(int rowIndex, com.klg.jclass.higrid.RowNode rowNode)
          Update the visible grid area info.
protected  void updateGridState()
          Whenever the visible grid has changed, the state has to be updated
 void walk(com.klg.jclass.higrid.RowNode node, com.klg.jclass.higrid.Walkable walkable)
           
 
Methods inherited from class com.klg.jclass.datasource.DataSourceTreeModel
getRoot, getRootNode, setRoot
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowTree

public RowTree(com.klg.jclass.higrid.HiGrid grid,
               boolean runtime)
Constructor for the RowTree object.

Parameters:
grid - The HiGrid parent.
runtime - True if created at run-time, false if at design-time.

RowTree

public RowTree(com.klg.jclass.higrid.HiGrid grid)
Constructor for the RowTree object.

Parameters:
grid - The HiGrid parent.
Method Detail

setSortTable

protected void setSortTable(boolean sort)
Set the indication that setup of the row tree, sorting may be performed.

Parameters:
sort - True if sorting is to be performed if required.

createRuntimeTree

protected void createRuntimeTree(com.klg.jclass.higrid.FormatTree formatTree)
Creates the runtime RowTree. This routine is called whenever the tree needs to created (when the grid is initialized and first displayed) or whenever the grids needs to be regenerated.

Parameters:
formatTree - The FormatTree for the higrid.

createPrintTimeTree

protected void createPrintTimeTree(com.klg.jclass.higrid.FormatTree formatTree,
                                   int[] metaIDArray)
Creates the print time row tree.

Parameters:
formatTree - The FormatTree for the higrid.

createRuntimeChildren

protected int createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject,
                                    com.klg.jclass.higrid.FormatNode node,
                                    com.klg.jclass.datasource.DataTableModel dataModel,
                                    boolean checkBeforeDetails,
                                    com.klg.jclass.higrid.RowNode rnBefore)
A helper routine that is called by createRuntimeTree. It recursively calls other versions of itself to create row objects, based on whether the children should be automatically expanded.

Parameters:
rootObject - The row which will be the parent of the created rows.
node - The FormatNode which describes the visual format of the created rows.
dataModel - The data model for the created rows.
checkBeforeDetails - True if possible BeforeDetails row node is to be created
rnBefore - The row node to insert before (if any)
Returns:
The number of scrollable rows for this node/dataModel

createRowNode

protected com.klg.jclass.higrid.RowNode createRowNode(com.klg.jclass.higrid.FormatNode node,
                                                      com.klg.jclass.higrid.RowFormat format,
                                                      com.klg.jclass.datasource.DataTableModel dataTableModel,
                                                      long bookmark)
Helper method to create a row node.

Parameters:
node - The format node.
format - The row format.
dataTableModel - The data table model.
bookmark - The row bookmark.
Returns:
The new row node.

addRowNode

protected void addRowNode(com.klg.jclass.higrid.RowNode rnParent,
                          com.klg.jclass.higrid.RowNode rn,
                          com.klg.jclass.higrid.RowNode rnBefore)
Add row node to the row tree.

Parameters:
rnParent - The parent row node.
rn - The row node to insert.
rnBefore - The row node to insert before

isPrintNode

protected boolean isPrintNode(com.klg.jclass.higrid.FormatNode node)
Determine if the given format node is to be printed.

Parameters:
node - The format node.
Returns:
True if it is to be printed.

createRuntimeChildren

protected void createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject)
                              throws DataModelException
A helper routine that is called by createRuntimeChildren. It recursively calls itself to create row objects, based on whether the children should be automatically expanded

Parameters:
rootObject - The row which will be the parent of the created rows.
Throws:
DataModelException - If an error occurs creating a new table.

createRuntimeChildren

protected com.klg.jclass.higrid.FormatNode createRuntimeChildren(com.klg.jclass.higrid.RowNode rootObject,
                                                                 com.klg.jclass.datasource.DataTableModel dataTableModel)
Add a row node for a given data table model to the specified row node parent.

Parameters:
rootObject - The row which will be the parent of the created row.
dataTableModel - The data table model of the new row node.
Returns:
The format node of the row node to be inserted.

addRepeatHeader

protected void addRepeatHeader(com.klg.jclass.higrid.RowNode rowNode)
Add possible repeat header after current row node

Parameters:
rowNode - The row node before the possible repeat header.

removeRepeatHeader

protected void removeRepeatHeader(com.klg.jclass.higrid.RowNode rowNode)
Remove possible repeat header after current row node

Parameters:
rowNode - The row node before the possible repeat header.

getTotalNumberOfScrollableRows

public int getTotalNumberOfScrollableRows()
Retrieves the total number of scrollable rows in the grid.

Returns:
The total number of scrollable rows in the grid.

setTotalNumberOfScrollableRows

protected void setTotalNumberOfScrollableRows(int rows)
Sets the total number of scrollable rows in the grid.

Parameters:
rows - The total number of scrollable rows in the grid.

addTotalNumberOfScrollableRows

protected void addTotalNumberOfScrollableRows(int rows)
Adds to the total number of scrollable rows in the grid.

Parameters:
rows - The number of scrollable rows to add to the grid.

subtractTotalNumberOfScrollableRows

protected void subtractTotalNumberOfScrollableRows(int rows)
Subtracts from the total number of scrollable rows in the grid.

Parameters:
rows - The number of scrollable rows to subtract from the grid.

addTotalNumberOfScrollableRows

protected void addTotalNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rowNode,
                                              com.klg.jclass.higrid.FormatNode formatNode)
Adds to the total number of scrollable rows in the grid for the given row.

Parameters:
rowNode - The row node to add.
formatNode - The format node of the row node.

subtractTotalNumberOfScrollableRows

protected void subtractTotalNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rowNode,
                                                   com.klg.jclass.higrid.FormatNode formatNode)
Subtracts from the total number of scrollable rows in the grid for the given row.

Parameters:
rowNode - The row node to subtract.
formatNode - The format node of the row node.

getNumberOfScrollableRows

protected int getNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rootObject,
                                        boolean add)
Retrieves the number of scrollable rows beneath this row. Also as it traverses the nodes, add/subtract the row count in the FormatNodes.

Parameters:
rootObject - The parent row.
add - Indicates to add or subtract the row count.
Returns:
The number of scrollable rows beneath this node.

getNumberOfScrollableRows

protected int getNumberOfScrollableRows(com.klg.jclass.higrid.RowNode rootObject,
                                        com.klg.jclass.higrid.FormatNode node,
                                        boolean add)
Retrieves the number of scrollable rows beneath this row of a given format node. It add/subtract the row count in the FormatNode's.

Parameters:
rootObject - The parent row.
node - The format node.
add - Indicates the add or subtract the row count.
Returns:
The number of scrollable rows found.

getScrollableRowsHeight

protected int getScrollableRowsHeight()
Retrieves the ScrollableRows height in pixels.

Returns:
The ScrollableRows height.

setScrollableRowsHeight

protected void setScrollableRowsHeight(int height)
Sets the ScrollableRows height in pixels.

Parameters:
height - The ScrollableRows height.

getGridAreaWidth

public int getGridAreaWidth()
Retrieves the gridArea width.

Returns:
The gridArea width.

setGridAreaWidth

protected void setGridAreaWidth(int width)
Sets the gridArea width.

Parameters:
width - The gridArea width.

getFirstLevelGridAreaWidth

protected int getFirstLevelGridAreaWidth()
Retrieves the first format node level width.

Returns:
The first level width.

setFirstLevelGridAreaWidth

protected void setFirstLevelGridAreaWidth(int width)
Sets the first format node level width.


getGridAreaRows

protected int getGridAreaRows()
Retrieves the number of rows fully visible in the gridArea

Returns:
The number of rows in the gridArea

setGridAreaRows

protected int setGridAreaRows()
Sets the number of rows fully visible in the gridArea and calculate the last top row.

Returns:
The true row index of the top row in the grid area.

setGridAreaRows

protected int setGridAreaRows(int rowIndex,
                              com.klg.jclass.higrid.RowNode rowNode)

updateGridArea

protected int updateGridArea(int rowIndex,
                             com.klg.jclass.higrid.RowNode rowNode)
Update the visible grid area info.

Parameters:
rowIndex - The row index of the top row in the grid area.
rowNode - The row node for the row index
Returns:
The true row index of the top row in the grid area.

updateGridArea

protected void updateGridArea()

computeTotalWidth

protected void computeTotalWidth()
Compute the maximum width of scrollable rows for the grid area


computeTotalWidth

protected int computeTotalWidth(com.klg.jclass.higrid.FormatNode node,
                                boolean root)
Compute the maximum width of scrollable rows for this format node and its children


updateGridState

protected void updateGridState()
Whenever the visible grid has changed, the state has to be updated


displayRuntimeTree

protected void displayRuntimeTree(Graphics gc)
Draws the higrid into the specified Graphics context. This routine will normally be called by a child to display the grid in a sub-window, or may be called by mouse hit-testing routines.

Parameters:
gc - The Graphics Context to use. If gc is null, the tree is traversed for visible rows in the Grid Area.

displayThisRowAndBelow

protected boolean displayThisRowAndBelow(Graphics gc,
                                         com.klg.jclass.higrid.RowNode node)
A recursive helper routine for displayRuntimeTree(). It draws the passed row, and any of its direct descendants that are within open nodes. It then continues to draw nodes that are visibly below it, but are not direct descendants.

Parameters:
gc - The Graphics Context to use. If gc is null, the tree is traversed for visible rows in the Grid Area.
Returns:
False if there is no need to draw anymore rows else true

displayRowChildren

protected boolean displayRowChildren(Graphics gc,
                                     com.klg.jclass.higrid.RowNode firstNode)
A recursive helper routine for displayThisRowAndBelow(). It draws the passed row, and any of its direct descendants that are within open nodes.

Parameters:
gc - The Graphics Context to use.
Returns:
False if there is no need to draw anymore rows else true

getNextUncle

protected com.klg.jclass.higrid.RowNode getNextUncle(com.klg.jclass.higrid.RowNode rootObject)
A helper routine that returns the "uncle" (or "aunt") of the passed row.

Parameters:
rootObject - The row whose uncle is desired..

getPreviousUncle

protected com.klg.jclass.higrid.RowNode getPreviousUncle(com.klg.jclass.higrid.RowNode rootObject)
A helper routine that returns the "uncle" (or "aunt") of the passed row.

Parameters:
rootObject - The row whose uncle is desired..

openFolder

protected void openFolder(com.klg.jclass.higrid.RowNode rowNode)
Open the current RowNode folder.

Parameters:
rowNode - The record row to be opened.

closeFolder

protected void closeFolder(com.klg.jclass.higrid.RowNode rowNode)
Close the current RowNode folder.

Parameters:
rowNode - The record row to be closed.

closeFolder

protected void closeFolder(com.klg.jclass.higrid.RowNode rowNode,
                           boolean updateRowCount)
Close the current RowNode folder.

Parameters:
rowNode - The record row to be closed.
updateRowCount - true if numberOfScrollableRows should be updated.

addUnique

protected static void addUnique(Vector v,
                                Object object)

getDataTableChildren

protected Vector getDataTableChildren(com.klg.jclass.higrid.RowNode rowNode)
Creates a list of DataTables that exist as immediate children of this row

Parameters:
rowNode - the parent rowNode.
Returns:
The Vector of unique DataTable children.

getRowNode

protected com.klg.jclass.higrid.RowNode getRowNode(int index)
Converts an index to a RowNode

Parameters:
index - The index to convert.
Returns:
The RowNode in the index'th position in the RowTree.

getRowIndex

protected int getRowIndex(com.klg.jclass.higrid.RowNode rowNode)
Converts a RowNode to its index in the RowTree

Parameters:
rowNode - The row to convert.
Returns:
The index of the RowNode in the RowTree.

getTopRowNode

protected com.klg.jclass.higrid.RowNode getTopRowNode()
Retrieves the topmost visible RowNode.

Returns:
The topmost visible RowNode.

setTopRowNode

protected void setTopRowNode(com.klg.jclass.higrid.RowNode rowNode)
Sets the topmost visible RowNode.

Parameters:
rowNode - The new topmost visible RowNode.

setTopRow

protected void setTopRow(com.klg.jclass.higrid.RowNode rowNode)
Sets the topmost visible row in the higrid based on the given row node.

Parameters:
rowNode - The row node.

setTopRow

protected void setTopRow(int value)
Sets the topmost visible row in the higrid based on the passed value and sets the vertical scrollbar position to this value.

Parameters:
value - The new vertical scrollbar position.

getTopRowNodeFromLastFullyVisibleRow

protected com.klg.jclass.higrid.RowNode getTopRowNodeFromLastFullyVisibleRow(com.klg.jclass.higrid.RowNode lastVisibleRow)
Find the row node of the topmost visible row when the row at the bottom of the window is scrolled into view.

Returns:
The new top row node.

getFirstRecordRowNode

protected com.klg.jclass.higrid.RowNode getFirstRecordRowNode()
Does a quick search for the first record format node.

Returns:
The first record format node.

doPageUp

protected int doPageUp(int row)
Find the row index of the topmost visible row on a page up and update the grid area.

Parameters:
row - The row index of the current top row node
Returns:
The row index of new page up row node.

doPageDown

protected int doPageDown(int row)
Find the row index of the topmost visible row on a page down and update the grid area.

Parameters:
row - The row index of the current top row node
Returns:
The row index of new page down row node.

findLastPageTopRow

protected void findLastPageTopRow()
Find the row index and the row node of the topmost visible row for the last page.


getNodeLevelList

protected Vector getNodeLevelList(com.klg.jclass.higrid.RowNode rowNode)

getDataTableModel

protected com.klg.jclass.datasource.DataTableModel getDataTableModel(com.klg.jclass.higrid.FormatNode formatNode,
                                                                     com.klg.jclass.higrid.RowNode rootObject)
Retrieves the DataTableModel for a given format node below a given row node (one level deep only).

Parameters:
formatNode - The given format node.
rootObject - The parent row node.
Returns:
The current DataTableModel.

findRecordRowNode

public com.klg.jclass.higrid.RowNode findRecordRowNode(com.klg.jclass.higrid.RowNode rootObject,
                                                       long bookmark)

findRecordRowNode

public com.klg.jclass.higrid.RowNode findRecordRowNode(com.klg.jclass.higrid.RowNode rootObject,
                                                       com.klg.jclass.higrid.FormatNode formatNode)

findHeaderRowNode

public com.klg.jclass.higrid.RowNode findHeaderRowNode(com.klg.jclass.higrid.RowNode rootObject,
                                                       com.klg.jclass.higrid.FormatNode formatNode)

findRowNode

public com.klg.jclass.higrid.RowNode findRowNode(com.klg.jclass.higrid.RowNode rootObject,
                                                 com.klg.jclass.higrid.FormatNode formatNode,
                                                 int index)

parentFolderClosed

protected boolean parentFolderClosed(com.klg.jclass.datasource.DataTableModel table)

findFirstRowNode

public com.klg.jclass.higrid.RowNode findFirstRowNode(com.klg.jclass.higrid.RowNode rootObject,
                                                      com.klg.jclass.datasource.DataTableModel dtm)

findPreviousRecordRowNode

protected com.klg.jclass.higrid.RowNode findPreviousRecordRowNode(com.klg.jclass.higrid.RowNode rowNode,
                                                                  com.klg.jclass.higrid.FormatNode formatNode)

findNextRecordRowNode

protected com.klg.jclass.higrid.RowNode findNextRecordRowNode(com.klg.jclass.higrid.RowNode rowNode,
                                                              com.klg.jclass.higrid.FormatNode formatNode)

findNextNode

protected com.klg.jclass.higrid.RowNode findNextNode(com.klg.jclass.higrid.RowNode rowNode,
                                                     com.klg.jclass.higrid.FormatNode formatNode)

findInsertBeforeNode

protected com.klg.jclass.higrid.RowNode findInsertBeforeNode(com.klg.jclass.higrid.RowNode rootObject,
                                                             com.klg.jclass.higrid.FormatNode formatNode)

findInsertBeforeFormatNode

protected com.klg.jclass.higrid.RowNode findInsertBeforeFormatNode(com.klg.jclass.higrid.RowNode rootObject,
                                                                   com.klg.jclass.higrid.FormatNode formatNode)

walk

public void walk(com.klg.jclass.higrid.RowNode node,
                 com.klg.jclass.higrid.Walkable walkable)

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