Class CommandGroup

    • Field Detail

      • title

        private java.lang.String title
      • commands

        private java.util.List<Command> commands
      • listenerList

        private javax.swing.event.EventListenerList listenerList
        Stores the listeners on this model.
    • Constructor Detail

      • CommandGroup

        public CommandGroup​(Command... commands)
      • CommandGroup

        public CommandGroup​(java.util.List<Command> commands)
      • CommandGroup

        public CommandGroup​(java.lang.String title,
                            Command... commands)
      • CommandGroup

        public CommandGroup​(java.lang.String title,
                            java.util.List<Command> commands)
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
      • setTitle

        public void setTitle​(java.lang.String title)
      • getCommands

        public java.util.List<Command> getCommands()
      • addCommand

        public void addCommand​(Command command)
      • removeCommand

        public void removeCommand​(Command command)
      • removeAllCommands

        public void removeAllCommands()
      • addCommandGroupListener

        public void addCommandGroupListener​(CommandGroup.CommandGroupListener l)
        Adds a CommandGroupListener to the model.
        Parameters:
        l - the listener to add
      • removeCommandGroupListener

        public void removeCommandGroupListener​(CommandGroup.CommandGroupListener l)
        Removes a CommandGroupListener from the model.
        Parameters:
        l - the listener to remove
      • fireCommandAdded

        private void fireCommandAdded​(Command command)
      • fireCommandRemoved

        private void fireCommandRemoved​(Command command)
      • fireAllCommandsRemoved

        private void fireAllCommandsRemoved​(java.util.List<Command> commands)