|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JTree
|
+--org.sape.carbon.services.swing.treetable.JTreeTable.TreeTableCellRenderer
A TreeCellRenderer that displays a JTree.
| Field Summary | |
protected int |
visibleRow
Last table/tree row asked to renderer. |
| 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 | |
JTreeTable.TreeTableCellRenderer(TreeModel model)
|
|
| Method Summary | |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
TreeCellRenderer method. |
void |
paint(Graphics g)
Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0. |
void |
setBounds(int x,
int y,
int w,
int h)
This is overridden to set the height to match that of the JTable. |
void |
setRowHeight(int rowHeight)
Sets the row height of the tree, and forwards the row height to the table. |
void |
updateUI()
updateUI is overridden to set the colors of the Tree's renderer to match that of the table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int visibleRow
| Constructor Detail |
public JTreeTable.TreeTableCellRenderer(TreeModel model)
| Method Detail |
public void updateUI()
updateUI in class JTreepublic void setRowHeight(int rowHeight)
setRowHeight in class JTree
public void setBounds(int x,
int y,
int w,
int h)
setBounds in class Componentpublic void paint(Graphics g)
paint in class JComponent
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface TableCellRenderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||