|
||||||||||
| 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.JTree
ucar.unidata.ui.DndTree
ucar.unidata.idv.control.multi.DisplayTree
public class DisplayTree
Class DisplayTree Gives a tree gui for editing bundles
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.ui.DndTree |
|---|
DndTree.TreeTransferable |
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DropLocation, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| 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 | |
|---|---|
DisplayTree(MultiDisplayHolder displayControl)
Create the tree with the given bundle type |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Handle the action |
void |
close()
Close the window |
void |
deleteSelected()
Delete the selected item in the tree |
protected void |
doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode,
boolean isOn)
Handle the DND drop |
MultiDisplayHolder |
getDisplayControl()
Get the display control |
protected void |
loadComponents()
Load in the bundles into the tree |
protected boolean |
okToDrag(DefaultMutableTreeNode sourceNode)
Ok to drag the node |
protected boolean |
okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode,
boolean isOn)
Ok to drop the node |
protected void |
recurse(DisplayGroup displayGroup,
ucar.unidata.idv.control.multi.DisplayTree.MyTreeNode treeNode)
Create the tree recursively |
void |
show(Component src)
Show the window |
| Methods inherited from class ucar.unidata.ui.DndTree |
|---|
doDrop, dragDropEnd, dragEnter, dragEnter, dragExit, dragExit, dragGestureRecognized, dragOver, dragOver, drop, dropActionChanged, dropActionChanged, okToDrop, paint, selectCursor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayTree(MultiDisplayHolder displayControl)
displayControl - The display control| Method Detail |
|---|
public MultiDisplayHolder getDisplayControl()
public void close()
public void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - The actionpublic void show(Component src)
src - The component to show me nearprotected boolean okToDrag(DefaultMutableTreeNode sourceNode)
okToDrag in class DndTreesourceNode - The node to drag
protected boolean okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode,
boolean isOn)
okToDrop in class DndTreesourceNode - The dragged nodedestNode - Where to dropisOn - Is the drop right on a node
protected void doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode,
boolean isOn)
doDrop in class DndTreesourceNode - The dragged nodedestNode - Where to dropisOn - Is the drop right on a nodepublic void deleteSelected()
protected void recurse(DisplayGroup displayGroup,
ucar.unidata.idv.control.multi.DisplayTree.MyTreeNode treeNode)
displayGroup - The group to recurse ontreeNode - The corresponding tree nodeprotected void loadComponents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||