|
||||||||||
| 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
org.esa.beam.framework.ui.product.ProductTree
public class ProductTree
A tree-view component for multiple Products. Clients can register one or more
ProductTreeListeners on this component.
ProductTreeListener,
Product,
Serialized Form| Nested Class Summary |
|---|
| 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 | |
|---|---|
ProductTree()
Constructs a new single selection ProductTree. |
|
ProductTree(boolean multipleSelect)
Constructs a new ProductTree with the given selection mode. |
|
| Method Summary | |
|---|---|
void |
addProductTreeListener(ProductTreeListener listener)
Adds a new product tree listener to this product tree component. |
JPopupMenu |
createPopup(Object context)
|
JPopupMenu |
createPopupMenu(Component component)
Creates the popup menu for the given component. |
JPopupMenu |
createPopupMenu(MouseEvent event)
Creates the popup menu for the given mouse event. |
void |
deregisterActiveProductNodes(ProductNode... nodes)
|
void |
deregisterOpenedProductNodes(ProductNode... nodes)
Deregisters "opened" product nodes, e.g. visible nodes, nodes currently edited, etc. |
void |
expand(Object toExpand)
|
CommandManager |
getCommandManager()
|
ProductTreeModel |
getModel()
|
void |
registerActiveProductNodes(ProductNode... nodes)
|
void |
registerOpenedProductNodes(ProductNode... nodes)
Registers "opened" product nodes, e.g. visible nodes, nodes currently edited, etc. |
void |
removeProductTreeListener(ProductTreeListener listener)
Removes a product tree listener from this product tree component. |
void |
select(Object toSelect)
Selects the specified object in this tree's model. |
void |
setCommandManager(CommandManager commandManager)
|
void |
setCommandUIFactory(CommandUIFactory commandUIFactory)
|
void |
setModel(TreeModel newModel)
Sets the TreeModel that will provide the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProductTree()
ProductTree.
public ProductTree(boolean multipleSelect)
ProductTree with the given selection mode.
multipleSelect - whether or not the tree is multiple selection capable| Method Detail |
|---|
public ProductTreeModel getModel()
getModel in class JTreepublic void setModel(TreeModel newModel)
TreeModel that will provide the data.
setModel in class JTreenewModel - the TreeModel that is to provide the data. Must be an
instance of ProductTreeModel.
description: The TreeModel that will provide the data.public void select(Object toSelect)
toSelect - the object whose representation in the tree will be selected.public void expand(Object toExpand)
public void registerOpenedProductNodes(ProductNode... nodes)
nodes - The products nodes which are in process.registerActiveProductNodes(org.esa.beam.framework.datamodel.ProductNode...)public void deregisterOpenedProductNodes(ProductNode... nodes)
nodes - The products nodes which are in process.deregisterActiveProductNodes(org.esa.beam.framework.datamodel.ProductNode...)public void registerActiveProductNodes(ProductNode... nodes)
public void deregisterActiveProductNodes(ProductNode... nodes)
public JPopupMenu createPopupMenu(Component component)
PopupMenuFactoryPopupMenuHandler
registered on the given component.
createPopupMenu in interface PopupMenuFactorycomponent - the source componentPopupMenuFactory,
PopupMenuHandlerpublic JPopupMenu createPopupMenu(MouseEvent event)
PopupMenuFactoryPopupMenuHandler
registered on the event fired component.
createPopupMenu in interface PopupMenuFactoryevent - the fired mouse eventPopupMenuFactory,
PopupMenuHandlerpublic void addProductTreeListener(ProductTreeListener listener)
listener - the listener to be added.public void removeProductTreeListener(ProductTreeListener listener)
listener - the listener to be removed.public void setCommandManager(CommandManager commandManager)
public CommandManager getCommandManager()
public void setCommandUIFactory(CommandUIFactory commandUIFactory)
public JPopupMenu createPopup(Object context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||