Class TreeEditor

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface
Direct Known Subclasses:
ClipboardEditor, ConditionalNGEditor, EditErrorHandlingModuleAction.ErrorModuleEditor, ModuleEditor

public class TreeEditor extends TreeViewer
Base class for LogixNG editors
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initComponents

      public final void initComponents()
      Description copied from class: JmriJFrame
      By default, Swing components should be created an installed in this method, rather than in the ctor itself.
      Overrides:
      initComponents in class TreeViewer
    • openClipboard

      public static void openClipboard()
    • isPopupMenuLocked

      protected final boolean isPopupMenuLocked()
      When a pop-up action is selected that opens a dialog, the popup menu is locked until the dialog is closed.
      Returns:
      true if the popup menu is locked.
    • setPopupMenuLock

      protected final void setPopupMenuLock(boolean lock)
    • renameSocketPressed

      protected final void renameSocketPressed(FemaleSocket femaleSocket, TreePath path)
      Respond to the Add menu choice in the popup menu.
      Parameters:
      femaleSocket - the female socket
      path - the path to the item the user has clicked on
    • createAddFrame

      protected final void createAddFrame(FemaleSocket femaleSocket, TreePath path, SwingConfiguratorInterface swingConfiguratorInterface)
      Respond to the Add menu choice in the popup menu.
      Parameters:
      femaleSocket - the female socket
      swingConfiguratorInterface - the swing configurator used to configure the new class
      path - the path to the item the user has clicked on
    • checkAndAdjustSystemName

      Check the system name format. Add prefix and/or $ as neeeded.
    • editPressed

      protected final void editPressed(FemaleSocket femaleSocket, TreePath path)
      Respond to the Edit menu choice in the popup menu.
      Parameters:
      femaleSocket - the female socket
      path - the path to the item the user has clicked on
    • makeAddEditFrame

      protected final void makeAddEditFrame(boolean addOrEdit, FemaleSocket femaleSocket, JButton button, MutableObject<String> commentStr)
      Create or edit action/expression dialog.
      Parameters:
      addOrEdit - true if add, false if edit
      femaleSocket - the female socket to which we want to add something
      button - a button to add to the dialog
      commentStr - the new comment
    • editLocalVariables

      protected final void editLocalVariables(FemaleSocket femaleSocket, TreePath path)
      Respond to the Local Variables menu choice in the popup menu.
      Parameters:
      femaleSocket - the female socket
      path - the path to the item the user has clicked on
    • changeUsername

      protected final void changeUsername(FemaleSocket femaleSocket, TreePath path)
      Respond to the Change user name menu choice in the popup menu.
      Parameters:
      femaleSocket - the female socket
      path - the path to the item the user has clicked on
    • autoSystemName

      protected final void autoSystemName()
      Enable/disable fields for data entry when user selects to have system name automatically generated.
    • cancelRenameSocketPressed

      protected final void cancelRenameSocketPressed(ActionEvent e)
      Respond to the Cancel button in Rename socket window.

      Note: Also get there if the user closes the Rename socket window.

      Parameters:
      e - The event heard
    • cancelCreateItem

      protected final void cancelCreateItem(ActionEvent e)
      Respond to the Cancel button in Add ConditionalNG window.

      Note: Also get there if the user closes the Add ConditionalNG window.

      Parameters:
      e - The event heard
    • cancelEditPressed

      protected final void cancelEditPressed(ActionEvent e)
      Respond to the Cancel button in Add ConditionalNG window.

      Note: Also get there if the user closes the Add ConditionalNG window.

      Parameters:
      e - The event heard
    • executeEvaluate

      protected void executeEvaluate(SwingConfiguratorInterface swi, MaleSocket maleSocket)