|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An OutlineRenderer is used by an OutlineMaker to specialize tree behavior for the heterogeneous nodes in outlines. They specialize how to
TreeCellRenderer)
Outliner,
OutlineMaker,
OutlineNode| Method Summary | |
void |
addPopupMenuItems(PopupMenu menu,
OutlineNode node,
TreePath treePath,
JTree jTree)
add to popup menu any commands specific to objects handled by this generator. |
void |
addPopupMenuTitle(PopupMenu menu,
OutlineNode node,
TreePath treePath,
JTree jTree)
add to popup menu a title identifying object of outlineNode |
OutlineMaker |
getOutlineMaker()
return the outline maker of which this renderer is part |
List |
makeChildOutlineNodes(OutlineNode parent)
Make List of outlineNodes, one for each child. |
OutlineNode |
makeNoteOutlineNode(String note)
Creates an outline tree node for a note such as errors or messages |
OutlineNode |
makeOutlineNode(Object object)
Creates an outline tree node with no label. |
OutlineNode |
makeOutlineNode(Object label,
Object object)
Creates an outline tree node with itself as renderer. |
void |
notifyInserted(OutlineModel model,
OutlineNode child,
int index)
notify after node with this renderer is after successfully inserted into node's parent |
void |
notifyRemoving(OutlineModel model,
OutlineNode child)
notify before node with this renderer is removed from node's parent |
| Methods inherited from interface javax.swing.tree.TreeCellRenderer |
getTreeCellRendererComponent |
| Method Detail |
public OutlineNode makeOutlineNode(Object label,
Object object)
Outliner.makeOutlineNode.label - Object to use for rendering label, or null if no label.object - Object for the tree node.public OutlineNode makeOutlineNode(Object object)
makeOutlineNode(Object, Object)
public void notifyInserted(OutlineModel model,
OutlineNode child,
int index)
public void notifyRemoving(OutlineModel model,
OutlineNode child)
public OutlineNode makeNoteOutlineNode(String note)
public List makeChildOutlineNodes(OutlineNode parent)
List of outlineNodes, one for each child.
Different renderers may list different children.
May call
getOutlineMaker()().Outliner.makeOutlineNode(java.lang.Object)(child)
or
...Outliner.makeOutlineNode(java.lang.Object)(label, child)
Parent node should not be modified directly; resulting list of nodes
will be safely added by AWT thread.
public void addPopupMenuTitle(PopupMenu menu,
OutlineNode node,
TreePath treePath,
JTree jTree)
public void addPopupMenuItems(PopupMenu menu,
OutlineNode node,
TreePath treePath,
JTree jTree)
OutlineCommandpublic OutlineMaker getOutlineMaker()
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||