|
||||||||||
| 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.ui.BundleTree
public class BundleTree
Class BundleTree 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.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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
CMD_EXPORT_TO_PLUGIN
action command |
| 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 | |
|---|---|
BundleTree(IdvUIManager uiManager,
int bundleType)
Create the tree with the given bundle type |
|
| Method Summary | |
|---|---|
void |
addCategory(DefaultMutableTreeNode parentNode)
Create a new category under the given node |
void |
deleteBundle(SavedBundle bundle)
Delete the given bundle |
void |
deleteCategory(String category)
Delete the given bundle category |
void |
deleteSelected()
Delete the selected item in the tree |
void |
doClose()
close |
protected void |
doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
Handle the DND drop |
void |
doExport()
Export the selected bundles |
void |
doExport(SavedBundle bundle)
Export the bundle |
void |
doExportToPlugin()
Export the selected bundles to the plugin creator |
void |
doExportToPlugin(SavedBundle bundle)
Export the bundle |
void |
doImport(DefaultMutableTreeNode parentNode)
Create a new category under the given node |
void |
doOpen(SavedBundle bundle)
Open the bundle |
void |
doRename(SavedBundle bundle)
Rename the bundle |
SavedBundle |
findSelectedBundle()
Find and return the selected bundle. |
protected void |
loadBundles()
Load in the bundles into the tree |
protected boolean |
okToDrag(DefaultMutableTreeNode sourceNode)
Ok to drag the node |
protected boolean |
okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
Ok to drop the node |
void |
show()
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 |
| Field Detail |
|---|
public static final String CMD_EXPORT_TO_PLUGIN
| Constructor Detail |
|---|
public BundleTree(IdvUIManager uiManager,
int bundleType)
uiManager - The UI managerbundleType - The type of the bundles we are showing| Method Detail |
|---|
public void doOpen(SavedBundle bundle)
bundle - the bundlepublic void doRename(SavedBundle bundle)
bundle - the bundlepublic void doExport(SavedBundle bundle)
bundle - the bundlepublic void doExportToPlugin(SavedBundle bundle)
bundle - the bundlepublic void doClose()
public void doExportToPlugin()
public void doExport()
public void show()
show in class Componentprotected boolean okToDrag(DefaultMutableTreeNode sourceNode)
okToDrag in class DndTreesourceNode - The node to drag
protected boolean okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
okToDrop in class DndTreesourceNode - The dragged nodedestNode - Where to drop
protected void doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
doDrop in class DndTreesourceNode - The dragged nodedestNode - Where to droppublic void deleteSelected()
public SavedBundle findSelectedBundle()
protected void loadBundles()
public void deleteBundle(SavedBundle bundle)
bundle - The bundle to deletepublic void addCategory(DefaultMutableTreeNode parentNode)
parentNode - The parent tree nodepublic void doImport(DefaultMutableTreeNode parentNode)
parentNode - The parent tree nodepublic void deleteCategory(String category)
category - The category to delete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||