|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
org.cytoscape.util.swing.JTreeTable
public final class JTreeTable
This example shows how to create a simple JTreeTable component, by using a JTree as a renderer (and editor) for the cells in a particular column in the JTable.
Module: swing-util-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>swing-util-api</artifactId>
</dependency>| Nested Class Summary | |
|---|---|
class |
JTreeTable.TreeTableCellEditor
TreeTableCellEditor implementation. |
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.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 | |
|---|---|
JTreeTable(TreeTableModel treeTableModel)
Creates a new JTreeTable object. |
|
| Method Summary | |
|---|---|
int |
getEditingRow()
Returns the row being edited. |
String |
getToolTipText(MouseEvent event)
The code in this method is copy and pasted from source code to the same method in javax.swing.JTable, except for one value change on one line. |
JTree |
getTree()
Returns the tree that is being shared between the model. |
void |
setRowHeight(int rowHeight)
Overridden to pass the new rowHeight to the tree. |
void |
updateUI()
Overridden to message super and forward the method to the tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JTreeTable(TreeTableModel treeTableModel)
treeTableModel - The tree table model.| Method Detail |
|---|
public String getToolTipText(MouseEvent event)
getToolTipText in class JTableevent - the mouse event we're reacting topublic void updateUI()
updateUI in class JTablepublic int getEditingRow()
getEditingRow in class JTablepublic void setRowHeight(int rowHeight)
setRowHeight in class JTablerowHeight - the new height of the rowpublic JTree getTree()
JTree that is being shared between the model.
|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||