|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeTableHeaderRenderer
TreeTableHeaderRenderer defines methods that renderers for expandable columns in a
TreeTableHeader
should implement.
Method Summary | |
---|---|
Component |
getTreeTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column,
boolean isLeaf,
boolean isExpanded,
TreeTableColumnModelAdapter adapter,
TreePath path,
TableCellRenderer cellRenderer,
int level)
Returns the component used for drawing the expandable column header. |
boolean |
handleEvent(MouseEvent e,
TreeTableHeader header)
Handles a mouse event on this component. |
Method Detail |
---|
Component getTreeTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column, boolean isLeaf, boolean isExpanded, TreeTableColumnModelAdapter adapter, TreePath path, TableCellRenderer cellRenderer, int level)
table
- the JTable that is asking the renderer to draw; can be nullvalue
- the value of the cell to be rendered. It is up to the specific renderer to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid valueisSelected
- true if the cell is to be rendered with the selection highlighted; otherwise falsehasFocus
- if true, render cell appropriately. For example, put a special border on the cell, if the cell can be edited, render in the color used to indicate editingrow
- the row index of the cell being drawn. When drawing the header, the value of row is -1column
- the column index of the cell being drawnisLeaf
- true if the tree node displayed is a leaf node, false otherwiseisExpanded
- true if the column is expanded, false otherwiseadapter
- the treetable column model adapter usedpath
- identifies the tree path to drawcellRenderer
- the renderer of the column being drawnlevel
- the group level at which the component will be shown
boolean handleEvent(MouseEvent e, TreeTableHeader header)
e
- the mouse event that triggered the methodheader
- the header source of the event
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |