edu.northwestern.at.utils.swing
Class TreeDropTargetOnItem.MyRenderer
java.lang.Object
edu.northwestern.at.utils.swing.TreeDropTargetOnItem.MyRenderer
- All Implemented Interfaces:
- javax.swing.tree.TreeCellRenderer
- Enclosing class:
- TreeDropTargetOnItem
public class TreeDropTargetOnItem.MyRenderer
- extends java.lang.Object
- implements javax.swing.tree.TreeCellRenderer
The renderer interceptor.
We intercept the tree's cell renderer. All components returned
by the renderer are wrapped in our node component iterceptor.
Yes, it's a hack.
Method Summary |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
- Specified by:
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer