Class JarTreeDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class JarTreeDialog extends JDialog
This is a JDialog that displays and controls a checkbox jar tree.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Field Details

    • rootFile

      protected File rootFile
    • jarModel

      protected JarTreeModel jarModel
    • jarTree

      protected JTree jarTree
    • checkManager

      protected CheckTreeManager checkManager
    • selectionPaths

      protected TreePath[] selectionPaths
    • undoSupport

      protected UndoableEditSupport undoSupport
    • undoManager

      protected UndoManager undoManager
    • okButton

      protected JButton okButton
    • undoButton

      protected JButton undoButton
    • redoButton

      protected JButton redoButton
    • languagesButton

      protected JButton languagesButton
    • ignoreEvents

      protected boolean ignoreEvents
    • prevRow

      protected int prevRow
    • jarIcon

      protected Icon jarIcon
    • jarFileIcon

      protected Icon jarFileIcon
    • jarFolderIcon

      protected Icon jarFolderIcon
    • fileIcon

      protected Icon fileIcon
  • Constructor Details

    • JarTreeDialog

      public JarTreeDialog(Frame owner, File root)
      Constructor.
      Parameters:
      owner - the owner frame
      root - the root directory
  • Method Details

    • getSelectionRelativePaths

      public String[] getSelectionRelativePaths()
      Gets the selected paths as relative path strings.
      Returns:
      an array of string paths relative to the root directory
    • setSelectionRelativePaths

      public void setSelectionRelativePaths(String[] paths)
      Sets the selected relative path strings.
      Parameters:
      paths - an array of string paths relative to the root directory
    • getSelectionPaths

      public TreePath[] getSelectionPaths()
      Gets the selected paths as TreePaths that start with the root.
      Returns:
      an array of selected TreePaths
    • setSelectionPaths

      public void setSelectionPaths(TreePath[] treePaths)
      Sets the selected TreePaths.
      Parameters:
      treePaths - an array of TreePaths that start with the root
    • refresh

      protected void refresh()
      Refreshes the buttonbar.
    • createGUI

      protected void createGUI()
      Creates the GUI.
    • selectLanguageAction

      protected void selectLanguageAction()