Package org.esa.snap.rcp.nodes
Class PNode
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- org.openide.nodes.Node
-
- org.openide.nodes.AbstractNode
-
- org.esa.snap.rcp.nodes.PNode
-
- All Implemented Interfaces:
EventListener
,PreferenceChangeListener
,ProductNodeListener
,org.openide.awt.UndoRedo.Provider
,org.openide.util.HelpCtx.Provider
,org.openide.util.Lookup.Provider
public class PNode extends org.openide.nodes.AbstractNode implements PreferenceChangeListener
A node that represents aProduct
(=P). EveryPNode
holds a dedicated undo/redo context.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDestroy()
static org.openide.nodes.Node
create(ProductNode productNode)
void
destroy()
Action[]
getActions(boolean context)
Action
getPreferredAction()
Product
getProduct()
T
getProductNode()
org.openide.nodes.Node.PropertySet[]
getPropertySets()
org.openide.awt.UndoRedo
getUndoRedo()
boolean
isDirectChild(ProductNode productNode)
void
nodeAdded(ProductNodeEvent event)
void
nodeChanged(ProductNodeEvent event)
void
nodeDataChanged(ProductNodeEvent event)
void
nodeRemoved(ProductNodeEvent event)
void
preferenceChange(PreferenceChangeEvent evt)
-
Methods inherited from class org.openide.nodes.AbstractNode
canCopy, canCut, canRename, clipboardCopy, clipboardCut, cloneNode, createActions, createPasteTypes, createSheet, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet
-
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString
-
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.esa.snap.core.datamodel.ProductNodeListener
nodeDisposing
-
-
-
-
Constructor Detail
-
PNode
public PNode(Product product)
-
-
Method Detail
-
getProduct
public Product getProduct()
-
getUndoRedo
public org.openide.awt.UndoRedo getUndoRedo()
- Specified by:
getUndoRedo
in interfaceorg.openide.awt.UndoRedo.Provider
-
canDestroy
public boolean canDestroy()
- Overrides:
canDestroy
in classorg.openide.nodes.AbstractNode
-
destroy
public void destroy()
- Overrides:
destroy
in classorg.openide.nodes.Node
-
getActions
public Action[] getActions(boolean context)
-
getPreferredAction
public Action getPreferredAction()
- Overrides:
getPreferredAction
in classorg.openide.nodes.AbstractNode
-
preferenceChange
public void preferenceChange(PreferenceChangeEvent evt)
- Specified by:
preferenceChange
in interfacePreferenceChangeListener
-
getPropertySets
public org.openide.nodes.Node.PropertySet[] getPropertySets()
-
getProductNode
public T getProductNode()
-
nodeChanged
public void nodeChanged(ProductNodeEvent event)
-
nodeDataChanged
public void nodeDataChanged(ProductNodeEvent event)
-
nodeAdded
public void nodeAdded(ProductNodeEvent event)
-
nodeRemoved
public void nodeRemoved(ProductNodeEvent event)
-
create
public static org.openide.nodes.Node create(ProductNode productNode)
-
isDirectChild
public boolean isDirectChild(ProductNode productNode)
-
-