Class ActionsPanel

    • Constructor Detail

      • ActionsPanel

        public ActionsPanel​(Controller controller)
    • Method Detail

      • setAnnotationComponent

        public void setAnnotationComponent​(AnnotationComponent annotation)
        Sets the current annotation component. The current annotation component is used to build the associated action list and of which all action edits act on.
        Specified by:
        setAnnotationComponent in interface AnnotationProperties
        Parameters:
        annotation - current action, should not be null.
      • actionPerformed

        public void actionPerformed​(ActionEvent e)
        Handlers for add, edit and delete commands.
        Specified by:
        actionPerformed in interface ActionListener
        Parameters:
        e - awt action event
      • valueChanged

        public void valueChanged​(ListSelectionEvent e)
        Changes events that occur when a user selects an annotation's action in the list actionList.
        Specified by:
        valueChanged in interface ListSelectionListener
        Parameters:
        e - awt list event.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Overrides:
        setEnabled in class JComponent
      • clearActionList

        public void clearActionList()
        Clear the action list of all action items.
      • addActionToList

        public void addActionToList​(Action action)
        Add an action to the list.
        Parameters:
        action - action object to add.