Package com.im.commons.ui.beans
Class MergingNode
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- org.openide.nodes.Node
-
- org.openide.nodes.AbstractNode
-
- com.im.commons.ui.beans.MergingNode
-
- All Implemented Interfaces:
org.openide.util.HelpCtx.Provider
,org.openide.util.Lookup.Provider
public class MergingNode extends org.openide.nodes.AbstractNode
A node used by PropertySheet to display properties of more nodes overriding default behavior ofPropertySheet
by adding properties if they are in any of original nodes. Cf. ProxyNode that only shows a property if all passed nodes have it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openide.nodes.Node
org.openide.nodes.Node.Cookie, org.openide.nodes.Node.Handle, org.openide.nodes.Node.IndexedProperty<T extends java.lang.Object,E extends java.lang.Object>, org.openide.nodes.Node.Property<T extends java.lang.Object>, org.openide.nodes.Node.PropertySet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMON_WIDGET_PROPERTIES_SHEET_NAME
-
Constructor Summary
Constructors Constructor Description MergingNode(org.openide.nodes.Node[] original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openide.nodes.Node
cloneNode()
protected org.openide.nodes.Sheet
createSheet()
java.lang.String
getDisplayName()
org.openide.util.HelpCtx
getHelpCtx()
First non-default help if there is any.java.util.Collection<org.openide.nodes.Node>
getNodes()
java.lang.String
getShortDescription()
-
Methods inherited from class org.openide.nodes.AbstractNode
canCopy, canCut, canDestroy, canRename, clipboardCopy, clipboardCut, createActions, createPasteTypes, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPreferredAction, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet
-
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, destroy, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getActions, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString
-
-
-
-
Field Detail
-
COMMON_WIDGET_PROPERTIES_SHEET_NAME
public static final java.lang.String COMMON_WIDGET_PROPERTIES_SHEET_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
First non-default help if there is any.- Specified by:
getHelpCtx
in interfaceorg.openide.util.HelpCtx.Provider
- Overrides:
getHelpCtx
in classorg.openide.nodes.AbstractNode
-
cloneNode
public org.openide.nodes.Node cloneNode()
- Overrides:
cloneNode
in classorg.openide.nodes.AbstractNode
-
createSheet
protected org.openide.nodes.Sheet createSheet()
- Overrides:
createSheet
in classorg.openide.nodes.AbstractNode
-
getNodes
public java.util.Collection<org.openide.nodes.Node> getNodes()
- Returns:
- original nodes view
- Since:
- 20.14.0
-
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName
in classjava.beans.FeatureDescriptor
-
getShortDescription
public java.lang.String getShortDescription()
- Overrides:
getShortDescription
in classjava.beans.FeatureDescriptor
-
-