|
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 | +--javax.swing.tree.DefaultMutableTreeNode | +--com.klg.jclass.datasource.DataSourceTreeNode | +--com.klg.jclass.higrid.FormatNode
The FormatNode class aggregates all of the information necessary to render
a given table. It contains RowFormat objects for each of the five basic
RowFormat subclasses: Record, Header, Footer, BeforeDetails, AfterDetails.
FormatNodes are stored in a tree structure called the FormatTree
The FormatTree serves as a design-time template for the run-time rendering of
an instance of HiGrid.
Field Summary | |
static int |
AFTER_DETAILS_FORMAT
Specifies a AfterDetailsFormat |
static int |
ANY_FORMAT
Specifies any RowFormat |
static int |
AUTO_TRAVERSE_CALLBACK
Rely on callback to specify if this row has children |
static int |
AUTO_TRAVERSE_DETECT_CHILDREN
Expand and collapse any of this row's children |
static int |
AUTO_TRAVERSE_EXPAND
Always expand any of this row's children |
static int |
AUTO_TRAVERSE_NONE
Never expand any of this row's children |
static int |
BEFORE_DETAILS_FORMAT
Specifies a BeforeDetailsFormat |
static int |
FIRST_FORMAT
Specifies the first RowFormat |
static int |
FOOTER_FORMAT
Specifies a FooterFormat |
static int |
HEADER_FORMAT
Specifies a HeaderFormat |
static int |
LAST_FORMAT
Specifies the last RowFormat |
static int |
RECORD_FORMAT
Specifies a RecordFormat |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
FormatNode()
|
|
FormatNode(int indent)
|
Method Summary | |
protected void |
addNumberOfScrollableRows(int rows)
Adds to the total number of scrollable rows for this FormatNode. |
com.klg.jclass.higrid.AfterDetailsFormat |
getAfterDetailsFormat()
Retrieves the after details format for this object. |
int |
getAutoTraverse()
Retrieves whether to automatically traverse this level during runtime table creation. |
com.klg.jclass.higrid.BeforeDetailsFormat |
getBeforeDetailsFormat()
Retrieves the before details format for this object. |
com.klg.jclass.higrid.SortData |
getDefaultSortData()
Retrieves the default sort data. |
com.klg.jclass.higrid.FooterFormat |
getFooterFormat()
Retrieves the footer format for this object. |
com.klg.jclass.higrid.HeaderFormat |
getHeaderFormat()
Retrieves the header format for this object. |
int |
getIndent()
Retrieves the indent level. |
String |
getName()
Retrieves the name for this format node. |
protected int |
getNumberOfScrollableRows()
Retrieves the total number of scrollable rows for this FormatNode. |
com.klg.jclass.higrid.RecordFormat |
getRecordFormat()
Retrieves the record format for this object. |
com.klg.jclass.higrid.RowFormat |
getRowFormat(int index)
Retrieves the indexed row format for this object. |
protected int |
getTotalWidth(com.klg.jclass.higrid.HiGrid grid)
Retrieves the total width of this level. |
protected String |
makeLevelName(int level)
Create a level name given a level value. |
protected void |
resetRuntimeInfo()
Reset the runtime info for this format node. |
void |
setAfterDetailsFormat(com.klg.jclass.higrid.AfterDetailsFormat format)
Sets the after details format for this object. |
void |
setAutoTraverse(int traverse)
Sets whether to automatically traverse this level during runtime table creation. |
void |
setBeforeDetailsFormat(com.klg.jclass.higrid.BeforeDetailsFormat format)
Sets the before details format for this object. |
void |
setDefaultSortData(com.klg.jclass.higrid.SortData sortData)
Sets the default sort data. |
void |
setFooterFormat(com.klg.jclass.higrid.FooterFormat format)
Sets the footer format for this object. |
void |
setHeaderFormat(com.klg.jclass.higrid.HeaderFormat format)
Sets the header format for this object. |
void |
setIndent(int indent)
Sets the indent level. |
protected void |
setNumberOfScrollableRows(int rows)
Sets the total number of scrollable rows for this FormatNode. |
void |
setRecordFormat(com.klg.jclass.higrid.RecordFormat format)
Sets the record format for this object. |
void |
setRowFormat(com.klg.jclass.higrid.RowFormat format,
int index)
Sets the indexed row format for this object. |
protected void |
subtractNumberOfScrollableRows(int rows)
Subtracts from the total number of scrollable rows for this FormatNode. |
Methods inherited from class com.klg.jclass.datasource.DataSourceTreeNode |
getChildren, getFirstChild, getIterator, getIterator, getIterator, getIterator, getLastChild, getNextChild, getPreviousChild, hasChildren, insert, isChildOf, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ANY_FORMAT
public static final int RECORD_FORMAT
public static final int HEADER_FORMAT
public static final int FOOTER_FORMAT
public static final int BEFORE_DETAILS_FORMAT
public static final int AFTER_DETAILS_FORMAT
public static final int FIRST_FORMAT
public static final int LAST_FORMAT
public static final int AUTO_TRAVERSE_NONE
public static final int AUTO_TRAVERSE_EXPAND
public static final int AUTO_TRAVERSE_DETECT_CHILDREN
public static final int AUTO_TRAVERSE_CALLBACK
Constructor Detail |
public FormatNode()
public FormatNode(int indent)
Method Detail |
public com.klg.jclass.higrid.RowFormat getRowFormat(int index)
index
- the enumerated row format
public void setRowFormat(com.klg.jclass.higrid.RowFormat format, int index)
format
- The new row format.index
- the enumerated row formatpublic com.klg.jclass.higrid.RecordFormat getRecordFormat()
public void setRecordFormat(com.klg.jclass.higrid.RecordFormat format)
format
- The new record format.public com.klg.jclass.higrid.HeaderFormat getHeaderFormat()
public void setHeaderFormat(com.klg.jclass.higrid.HeaderFormat format)
format
- The new header format.public com.klg.jclass.higrid.FooterFormat getFooterFormat()
public void setFooterFormat(com.klg.jclass.higrid.FooterFormat format)
format
- The new footer format.public com.klg.jclass.higrid.BeforeDetailsFormat getBeforeDetailsFormat()
public void setBeforeDetailsFormat(com.klg.jclass.higrid.BeforeDetailsFormat format)
format
- The new before details format.public com.klg.jclass.higrid.AfterDetailsFormat getAfterDetailsFormat()
public void setAfterDetailsFormat(com.klg.jclass.higrid.AfterDetailsFormat format)
format
- The new after details format.public String getName()
protected String makeLevelName(int level)
level
- An arbitrary level value.
public int getAutoTraverse()
public void setAutoTraverse(int traverse)
traverse
- Whether level is automatically traversed during runtime table creation.public int getIndent()
public void setIndent(int indent)
indent
- The indent level.public com.klg.jclass.higrid.SortData getDefaultSortData()
public void setDefaultSortData(com.klg.jclass.higrid.SortData sortData)
protected int getNumberOfScrollableRows()
protected void setNumberOfScrollableRows(int rows)
rows
- The total number of scrollable rows for this FormatNode.protected void addNumberOfScrollableRows(int rows)
rows
- The number of scrollable rows to for this FormatNode.protected void subtractNumberOfScrollableRows(int rows)
rows
- The number of scrollable rows to subtract for this FormatNode.protected void resetRuntimeInfo()
protected int getTotalWidth(com.klg.jclass.higrid.HiGrid grid)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |