Class CommandPanelContentModel

    • Field Detail

      • commandGroups

        private java.util.List<CommandGroup> commandGroups
      • isSingleSelectionMode

        private boolean isSingleSelectionMode
        Indicates the selection mode for the toggle commands in the panel.
      • weakChangeSupport

        private final WeakChangeSupport weakChangeSupport
        Stores the listeners on this model.
      • commandGroupPropertyChangeListener

        private java.beans.PropertyChangeListener commandGroupPropertyChangeListener
      • commandPropertyChangeListener

        private java.beans.PropertyChangeListener commandPropertyChangeListener
      • selectedCommand

        private Command selectedCommand
    • Constructor Detail

      • CommandPanelContentModel

        public CommandPanelContentModel​(java.util.List<CommandGroup> commands)
    • Method Detail

      • addCommandGroup

        public void addCommandGroup​(CommandGroup commandGroupModel)
      • removeCommandGroup

        public void removeCommandGroup​(CommandGroup commandGroupModel)
      • removeAllCommandGroups

        public void removeAllCommandGroups()
      • getCommandGroups

        public java.util.List<CommandGroup> getCommandGroups()
      • getCommandCount

        public int getCommandCount()
      • setSingleSelectionMode

        public void setSingleSelectionMode​(boolean isSingleSelectionMode)
        Sets the selection mode for this model. If true is passed as the parameter, all toggle commands in this model are set to belong to the same toggle group.
        Parameters:
        isSingleSelectionMode - If true, all toggle commands in this model are set to belong to the same toggle group.
      • getSelectedCommand

        public Command getSelectedCommand()
      • isSingleSelectionMode

        public boolean isSingleSelectionMode()
      • syncSelectedCommand

        private boolean syncSelectedCommand()
      • fireStateChanged

        private void fireStateChanged()