JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface ComponentModel

All Superinterfaces:
Moveable, SeriesModel
All Known Implementing Classes:
ComponentHandler

public interface ComponentModel
extends SeriesModel

ComponentModel defines the requirements of a class that controls the storage, placement and traversal of components in cells.


Method Summary
 void addComponentsToParent()
          Forces all components to be added to their container whether they have been exposed or not.
 com.klg.jclass.table.JCCellPosition findPosition(Component c)
          Returns the JCCellPosition that contains the given component.
 com.klg.jclass.table.JCTable getTable()
          Returns the JCTable.
 boolean isParentSetRequired()
          Returns true if one or more components have not been added to table yet.
 void reconfigureComponents()
          Reconfigure components such that components in visible cells are visible and components in invisible cells are invisible.
 void removeCellComponents()
          Remove components when a span is added.
 void setParentSetRequired(boolean value)
          Flags that one or more components do not have a parent yet.
 void setTable(com.klg.jclass.table.JCTable table)
          Sets the JCTable.
 
Methods inherited from interface com.klg.jclass.table.SeriesModel
getCellRanges, getDefault, getSeriesValues, getUniqueValues, getValue, setDefault, setValue, setValue, setValue
 
Methods inherited from interface com.klg.jclass.table.Moveable
moveColumns, moveRows, remapColumns, remapRows, shiftColumn, shiftRow, swapColumns, swapRows
 

Method Detail

getTable

public com.klg.jclass.table.JCTable getTable()
Returns the JCTable.

Returns:
The table for this component model

setTable

public void setTable(com.klg.jclass.table.JCTable table)
Sets the JCTable.

Parameters:
table - The new table for this component model

addComponentsToParent

public void addComponentsToParent()
Forces all components to be added to their container whether they have been exposed or not. This is required for Look And Feel support.


findPosition

public com.klg.jclass.table.JCCellPosition findPosition(Component c)
Returns the JCCellPosition that contains the given component.

Parameters:
c - The component whose position we want to find
Returns:
An object which contains the cell position of the component

isParentSetRequired

public boolean isParentSetRequired()
Returns true if one or more components have not been added to table yet.

Returns:
Whether one or more components have not been added to table yet.
See Also:
setParentSetRequired(boolean)

setParentSetRequired

public void setParentSetRequired(boolean value)
Flags that one or more components do not have a parent yet. The appropriate container for components will not be present before table is realized.

Parameters:
value - The new value of parentSetRequired which tells us whether one or more components do not have a parent yet.

removeCellComponents

public void removeCellComponents()
Remove components when a span is added. Any components not contained in the span will re-added in CellAreaRenderer.


reconfigureComponents

public void reconfigureComponents()
Reconfigure components such that components in visible cells are visible and components in invisible cells are invisible.


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