|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.table.TableLayout
TableLayout controls the placement of CellAreas
and scrollbars in table based on their need and positionning policy.
| Field Summary | |
protected com.klg.jclass.table.CellAreaHandler |
cah
|
protected boolean |
needs_layout
|
protected com.klg.jclass.table.JCTable |
table
|
| Constructor Summary | |
TableLayout(com.klg.jclass.table.CellAreaHandler cah)
Constructor that requires a CellAreaHandler object. |
|
| Method Summary | |
protected int |
getAreaSpace(com.klg.jclass.table.CellArea area,
int type,
int initialOffset,
boolean pref)
The the space used for a given cell area type. |
Dimension |
getMinimumSize()
Returns the minimum size of table based on the number of rows and columns and scrollbar policy. |
Dimension |
getPreferredSize()
Returns the preferred size of table based on the number of rows and columns and scrollbar policy. |
void |
layoutAreas()
Lays out the areas of table and sets the scrollbar visibility and placement. |
void |
layoutAreas(int container_width,
int container_height)
Lays out the areas of table and sets the scrollbar visibility and placement based on a given width and height of the container. |
protected void |
setLayoutOffset(com.klg.jclass.table.CellArea area)
Sets the offset from standard position (LABEL, FROZEN, CELL) based on the visibility and position of labels and frozen cells. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.table.JCTable table
protected com.klg.jclass.table.CellAreaHandler cah
protected boolean needs_layout
| Constructor Detail |
public TableLayout(com.klg.jclass.table.CellAreaHandler cah)
cah - The cell area handler| Method Detail |
public void layoutAreas()
public void layoutAreas(int container_width,
int container_height)
container_width - The width of the containercontainer_height - The height of the container
protected int getAreaSpace(com.klg.jclass.table.CellArea area,
int type,
int initialOffset,
boolean pref)
area - The cell area for which the offset is required.type - The type of area. We can't just get this from the cell area
because it might be null.initialOffset - An initial value to be added to the offset.pref - If true, use the preferred size, otherwise use the minimum size.
protected void setLayoutOffset(com.klg.jclass.table.CellArea area)
public Dimension getMinimumSize()
public Dimension getPreferredSize()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||