Class AbstractTreePopupMenuItemAction

    • Constructor Detail

      • AbstractTreePopupMenuItemAction

        public AbstractTreePopupMenuItemAction()
    • Method Detail

      • keyStrokeApplies

        public boolean keyStrokeApplies​(KeyStroke ks)
        Checks whether the keystroke matches.
        Specified by:
        keyStrokeApplies in interface TreePopupAction
        Parameters:
        ks - the keystroke to match
        Returns:
        true if a match
      • getParentFrame

        protected Frame getParentFrame()
        Tries to determine the frame this panel is part of.
        Returns:
        the parent frame if one exists or null if not
      • getParentDialog

        protected Dialog getParentDialog()
        Tries to determine the dialog this panel is part of.
        Returns:
        the parent dialog if one exists or null if not
      • addUndoPoint

        public void addUndoPoint​(String comment)
        Adds an undo point with the given comment.
        Specified by:
        addUndoPoint in interface TreePopupAction
        Parameters:
        comment - the comment for the undo point