Class DataTreeDialog

    • Constructor Detail

      • DataTreeDialog

        public DataTreeDialog​(java.awt.Component parent,
                              java.lang.String title,
                              int type)
        Construct a new DataTreeDialog.
        Parameters:
        parent - dialog's parent
        title - title to use
        type - specify OPEN, SAVE, CHOOSE_FOLDER, CHOOSE_USER_FOLDER, or CREATE
        Throws:
        java.lang.IllegalArgumentException - if invalid type is specified
      • DataTreeDialog

        public DataTreeDialog​(java.awt.Component parent,
                              java.lang.String title,
                              int type,
                              DomainFileFilter filter)
        Construct a new DataTreeDialog.
        Parameters:
        parent - dialog's parent
        title - title to use
        type - specify OPEN, SAVE, CHOOSE_FOLDER, or CHOOSE_USER_FOLDER
        filter - filter used to control what is displayed in the data tree
        Throws:
        java.lang.IllegalArgumentException - if invalid type is specified
    • Method Detail

      • setTreeSelectionMode

        public void setTreeSelectionMode​(int mode)
      • addOkActionListener

        public void addOkActionListener​(java.awt.event.ActionListener l)
        Add action listener that is called when the OK button is hit.
        Parameters:
        l - listener to add
      • showComponent

        public void showComponent()
      • getNameText

        public java.lang.String getNameText()
        Get the name from the name field.
      • setNameText

        public void setNameText​(java.lang.String name)
      • setSelectedFolder

        public void setSelectedFolder​(DomainFolder folder)
      • getDomainFile

        public DomainFile getDomainFile()
        Get the selected domain file.
        Returns:
        null if there was no domain file selected
      • getDomainFolder

        public DomainFolder getDomainFolder()
        Get the selected folder.
        Returns:
        null if there was no domain folder selected
      • valueChanged

        public void valueChanged​(GTreeSelectionEvent e)
        TreeSelectionListener method that is called whenever the value of the selection changes.
        Specified by:
        valueChanged in interface GTreeSelectionListener
        Parameters:
        e - the event that characterizes the change.
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Action listener for the project combo box.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Parameters:
        e - event generated when a selection is made in the combo box
      • selectRootDataFolder

        public void selectRootDataFolder()
        Select the root folder in the tree.
      • selectDomainFile

        public void selectDomainFile​(DomainFile file)
        Select the node that corresponds to the given domain file.
      • buildMainPanel

        protected javax.swing.JPanel buildMainPanel()
        Define the Main panel for the dialog here.
        Returns:
        JPanel the completed Main Panel<\CODE>
      • okCallback

        protected void okCallback()
        Gets called when the user clicks on the OK Action for the dialog.
        Overrides:
        okCallback in class DialogComponentProvider
      • wasCancelled

        public boolean wasCancelled()
      • addTreeListeners

        protected void addTreeListeners()
      • findAndSelect

        public void findAndSelect​(java.lang.String s)
      • setSearchText

        public void setSearchText​(java.lang.String string)