|
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.RowNode
The RowNode class aggregates all of the information necessary to render a specific row within a given table. A RowNode is constructed from one of the five basic RowFormat subclasses: Record, Header, Footer, BeforeDetails, AfterDetails. Thus, a RowNode can either be based entirely on information from a FormatNode (e.g. Header), or from information from the datasource (e.g. Record), or from some computed information (Footer, BeforeDetails, AfterDetails). An individual instance of the RowNode class can usually be found as an element in the (@ link RowTree}.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
RowNode()
Default constructor. |
|
RowNode(com.klg.jclass.higrid.FormatNode node,
com.klg.jclass.higrid.RowFormat format,
com.klg.jclass.datasource.DataTableModel dataTableModel,
long bookmark)
Constructor for RowNode. |
Method Summary | |
protected boolean |
draw(Graphics gc,
com.klg.jclass.higrid.HiGrid grid)
Delegates to the rowFormat object to draw itself. |
long |
getBookmark()
Retrieves the bookmark for this object. |
com.klg.jclass.datasource.DataTableModel |
getDataTableModel()
Retrieves the DataTableModel for this object. |
com.klg.jclass.higrid.FormatNode |
getFormatNode()
Retrieves the format node for this object. |
int |
getHeight()
Retrieves the height of this object. |
com.klg.jclass.higrid.RowFormat |
getRowFormat()
Retrieves the row format for this object. |
byte |
getState()
Retrieves the state of the row. |
int |
getWidth()
Retrieves the width of this object. |
boolean |
isSelected()
Retrieves the selected state of the row. |
protected void |
setDataTableModel(com.klg.jclass.datasource.DataTableModel dataTableModel)
Sets the DataTableModel for this object. |
protected void |
setFormatNode(com.klg.jclass.higrid.FormatNode node)
Sets the format node for this object. |
protected void |
setHeight(int height)
Sets the height of this object. |
protected void |
setRowFormat(com.klg.jclass.higrid.RowFormat format)
Sets the row format for this object. |
protected void |
setSelected(boolean selected)
Sets the selected state of the row |
protected void |
setState(byte state)
Sets the state of the row |
protected void |
setWidth(int width)
Sets the width of this object. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.klg.jclass.datasource.DataSourceTreeNode |
getChildren, getFirstChild, getIterator, getIterator, getIterator, getIterator, getLastChild, getNextChild, getPreviousChild, hasChildren, insert, isChildOf |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RowNode()
public RowNode(com.klg.jclass.higrid.FormatNode node, com.klg.jclass.higrid.RowFormat format, com.klg.jclass.datasource.DataTableModel dataTableModel, long bookmark)
node
- The FormatNode to associate with this object.format
- The RowFormat to associate with this object.dataTableModel
- The DataTableModel to associate with this object.Method Detail |
public long getBookmark()
public com.klg.jclass.datasource.DataTableModel getDataTableModel()
protected void setDataTableModel(com.klg.jclass.datasource.DataTableModel dataTableModel)
dataTableModel
- The new DataTableModel for this object.public com.klg.jclass.higrid.FormatNode getFormatNode()
protected void setFormatNode(com.klg.jclass.higrid.FormatNode node)
node
- The new format node.public com.klg.jclass.higrid.RowFormat getRowFormat()
protected void setRowFormat(com.klg.jclass.higrid.RowFormat format)
format
- The new row format.public byte getState()
protected void setState(byte state)
state
- The state of the row.public boolean isSelected()
protected void setSelected(boolean selected)
selected
- The selected state of the row.protected boolean draw(Graphics gc, com.klg.jclass.higrid.HiGrid grid)
gc
- The graphics context to draw into.grid
- The instance of HiGrid this row belongs to.public int getHeight()
protected void setHeight(int height)
height
- The new height.public int getWidth()
protected void setWidth(int width)
public String toString()
toString
in class DataSourceTreeNode
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |