|
|||||||||
| Home >> All >> jgift >> ui >> [ treetable overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jgift.ui.treetable
Class TreeTable

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
jgift.ui.treetable.TreeTable
- All Implemented Interfaces:
- javax.accessibility.Accessible, javax.swing.event.CellEditorListener, java.util.EventListener, java.awt.image.ImageObserver, javax.swing.event.ListSelectionListener, java.awt.MenuContainer, javax.swing.Scrollable, java.io.Serializable, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener
- public class TreeTable
- extends javax.swing.JTable
TreeTable is a JTable that uses a JTree to render its cells. This code borrows heavily from the JTreeTable example found on the
| Nested Class Summary | |
(package private) class |
TreeTable.ListTreeSelectionModel
Selection model that updates its tree paths when the ListSelection model that it maintains is changed. |
(package private) class |
TreeTable.TreeTableCellEditor
Cell editor implementation that returns the JTree as the editor component. |
(package private) class |
TreeTable.TreeTableCellRenderer
Renders table cells as a tree. |
| Nested classes inherited from class javax.swing.JTable |
javax.swing.JTable.AccessibleJTable |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private TreeTable.TreeTableCellRenderer |
tree
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TreeTable(TreeTableModel model)
Creates a new instance of TreeTable. |
|
| Method Summary | |
int |
getEditingRow()
Get the index of the row that contains the cell currently being edited. |
javax.swing.JTree |
getTree()
Get the tree that is being used to render the cells. |
void |
setRootVisible(boolean visible)
Set whether the root node of the underlying tree will be visible or not. |
void |
setRowHeight(int rowHeight)
Set the height, in pixels, of all cells. |
void |
setShowsRootHandles(boolean handles)
Set whether the underlying tree displays node handles. |
void |
updateUI()
Called by the UIManager when the L&F has changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
tree
private TreeTable.TreeTableCellRenderer tree
| Constructor Detail |
TreeTable
public TreeTable(TreeTableModel model)
- Creates a new instance of TreeTable.
| Method Detail |
setRootVisible
public void setRootVisible(boolean visible)
- Set whether the root node of the underlying tree will be visible or not.
setShowsRootHandles
public void setShowsRootHandles(boolean handles)
- Set whether the underlying tree displays node handles.
updateUI
public void updateUI()
- Called by the UIManager when the L&F has changed. Overridden to update
the UI of the tree.
getEditingRow
public int getEditingRow()
- Get the index of the row that contains the cell currently being edited.
setRowHeight
public void setRowHeight(int rowHeight)
- Set the height, in pixels, of all cells. Overridden to set the row height
of the tree.
getTree
public javax.swing.JTree getTree()
- Get the tree that is being used to render the cells.
|
|||||||||
| Home >> All >> jgift >> ui >> [ treetable overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC