Class DataTree

All Implemented Interfaces:
BusyListener, ImageObserver, MenuContainer, Serializable, Accessible

public class DataTree extends GTree
Tree that shows the folders and domain files in a Project
See Also:
  • Method Details

    • isAddToPopup

      protected boolean isAddToPopup(DockingAction action)
      Description copied from class: GTree
      A method that subclasses can override to decide if the given action should appear in the popup menu. Most subclasses will not need to override this method. An example for overriding this method is one of the subclasses that have their own version of one of the built-in actions, such as Expand All. Some clients have a custom expand action. In that case, the client wants their action in the menu and not the built-in version.
      Overrides:
      isAddToPopup in class GTree
      Parameters:
      action - the action
      Returns:
      true to have the action appear in the popup; the default is true
    • clearSelection

      public void clearSelection()
    • getSelectionCount

      public int getSelectionCount()
    • getLastSelectedPathComponent

      public GTreeNode getLastSelectedPathComponent()
    • removeSelectionPath

      public void removeSelectionPath(TreePath path)
    • stopEditing

      public void stopEditing()
      Overrides:
      stopEditing in class GTree
    • getRealInternalFolderForNode

      public static DomainFolder getRealInternalFolderForNode(GTreeNode node)
      Method returns either a DomainFolder within the node's project or null. The following cases indicate how the return value is established based on the specified node:
      1. DomainFolderNode - the node's domain folder will be returned
      2. DomainFileNode (folder-link content type) - the referenced folder within the node's project will be returned under the following conditions, otherwise null will be returned:
        • The file corresponds to a folder-link, and
        • the folder-link ultimately refers to a domain folder within the same project (i.e., a URL-based link path is not used and link status is LinkHandler.LinkStatus.INTERNAL).
      3. DomainFileNode (normal file or file-link) - the node's parent folder will be returned.

      Folder-links which reference other internal folder-links will be followed until a folder can be identified or the link-chain is considered is LinkHandler.LinkStatus.BROKEN or LinkHandler.LinkStatus.EXTERNAL in which case null will be returned.

      A LinkedDomainFolder will always be resolved to its real folder which it corresponds to.

      Parameters:
      node - Data Tree Node to be evaluated for its real internal folder
      Returns:
      internal project folder which corresponds to the specified node.