Class 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 of PropertySheet 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  
      • Fields inherited from class org.openide.nodes.AbstractNode

        displayFormat, systemActions
      • Fields inherited from class org.openide.nodes.Node

        EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_LEAF, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION
    • 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
      • Methods inherited from class java.beans.FeatureDescriptor

        attributeNames, getName, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COMMON_WIDGET_PROPERTIES_SHEET_NAME

        public static final java.lang.String COMMON_WIDGET_PROPERTIES_SHEET_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • MergingNode

        public MergingNode​(org.openide.nodes.Node[] original)
    • Method Detail

      • getHelpCtx

        public org.openide.util.HelpCtx getHelpCtx()
        First non-default help if there is any.
        Specified by:
        getHelpCtx in interface org.openide.util.HelpCtx.Provider
        Overrides:
        getHelpCtx in class org.openide.nodes.AbstractNode
      • cloneNode

        public org.openide.nodes.Node cloneNode()
        Overrides:
        cloneNode in class org.openide.nodes.AbstractNode
      • createSheet

        protected org.openide.nodes.Sheet createSheet()
        Overrides:
        createSheet in class org.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 class java.beans.FeatureDescriptor
      • getShortDescription

        public java.lang.String getShortDescription()
        Overrides:
        getShortDescription in class java.beans.FeatureDescriptor