Class AbstractTreeQuickMenuItemAction

    • Constructor Detail

      • AbstractTreeQuickMenuItemAction

        public AbstractTreeQuickMenuItemAction()
    • Method Detail

      • keyStrokeApplies

        public boolean keyStrokeApplies​(KeyStroke ks)
        Checks whether the keystroke matches.
        Specified by:
        keyStrokeApplies in interface TreeQuickAction
        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 TreeQuickAction
        Parameters:
        comment - the comment for the undo point
      • updateSelectedActor

        protected void updateSelectedActor​(Actor newActor)
        Updates the currently selected actor and refreshes the tree.
        Parameters:
        newActor - the new actor to set