Class ResourceFolderNode

    • Method Detail

      • getExpandedIcon

        public javax.swing.Icon getExpandedIcon()
        Description copied from class: AbstractNavTreeNode
        Returns an alternate icon for when this node is expanded, if applicable. Default implementation simply returns getIcon()
        Overrides:
        getExpandedIcon in class FolderNode
      • getWorkspaceName

        public java.lang.String getWorkspaceName()
        Description copied from class: AbstractNavTreeNode
        Returns the name of the desired workspace for this node. Default behavior is to delegate to the parent. null mean's don't affect workspace selection.
        Overrides:
        getWorkspaceName in class AbstractNavTreeNode
      • getSortOrder

        public int getSortOrder()
        Description copied from class: AbstractNavTreeNode
        Returns the relative sort order for peers. Not all nav tree node parents will use this sort order, but the root node does. Nodes with equal sort orders will then be sorted by their titles. The default return value here is 0. The config menu node returns Integer.MIN_VALUE.
        Overrides:
        getSortOrder in class AbstractNavTreeNode
        Returns:
        relative sort order for peers
      • initPopupMenu

        protected void initPopupMenu​(javax.swing.JPopupMenu menu,
                                     javax.swing.tree.TreePath[] paths,
                                     java.util.List<AbstractNavTreeNode> selection,
                                     int modifiers)
        Description copied from class: AbstractNavTreeNode
        Default implementation calls setupEditActions(), and then addEditActions()
        Overrides:
        initPopupMenu in class AbstractNavTreeNode
      • doCopy

        public java.awt.datatransfer.Transferable doCopy​(java.util.List<? extends AbstractNavTreeNode> selectedChildren)
        Description copied from class: AbstractNavTreeNode
        Called when the copy action is performed.
        Overrides:
        doCopy in class AbstractNavTreeNode
        Returns:
        the current selection as a Transferable, or null if the copy failed. Will be added to the system clipboard.
      • doCut

        public java.awt.datatransfer.Transferable doCut​(java.util.List<? extends AbstractNavTreeNode> selectedChildren)
        Description copied from class: AbstractNavTreeNode
        Called when the cut action is performed.
        Overrides:
        doCut in class AbstractNavTreeNode
        Returns:
        the current selection as a Transferable, or null if the cut failed. Will be added to the system clipboard.
      • doPaste

        public boolean doPaste​(java.util.List<? extends AbstractNavTreeNode> selectedChildren,
                               java.awt.datatransfer.Transferable clipboardContents,
                               boolean isDrop)
        Description copied from class: AbstractNavTreeNode
        Called when the paste action is performed
        Overrides:
        doPaste in class AbstractNavTreeNode
        clipboardContents - The current contents of the clipboard to paste.
        isDrop - Indicates whether this paste originated from a drop action. If false, originated from a keyboard or menu paste shortcut.
        Returns:
        whether or not the paste successfully completed.
      • canPaste

        public boolean canPaste​(java.util.List<AbstractNavTreeNode> selectedChildren,
                                java.awt.datatransfer.Transferable clipboard)
        Description copied from class: AbstractNavTreeNode
        Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.
        Overrides:
        canPaste in class AbstractNavTreeNode