Class CommandPanelContentModel

java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandPanelContentModel
All Implemented Interfaces:
ChangeAware, ContentModel

public class CommandPanelContentModel extends Object implements ContentModel, ChangeAware
  • Field Details

  • Constructor Details

    • CommandPanelContentModel

      public CommandPanelContentModel(List<CommandGroup> commands)
  • Method Details

    • addCommandGroup

      public void addCommandGroup(CommandGroup commandGroupModel)
    • removeCommandGroup

      public void removeCommandGroup(CommandGroup commandGroupModel)
    • removeAllCommandGroups

      public void removeAllCommandGroups()
    • getCommandGroups

      public List<CommandGroup> getCommandGroups()
    • getCommandCount

      public int getCommandCount()
    • findFirstMatch

      public Command findFirstMatch(CommandGroup.CommandFilter commandFilter)
    • 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()
    • setCommandPreviewListener

      public void setCommandPreviewListener(BaseCommand.CommandActionPreview commandPreviewListener)
    • getCommandPreviewListener

      public BaseCommand.CommandActionPreview getCommandPreviewListener()
    • syncSelectedCommand

      private boolean syncSelectedCommand()
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Description copied from interface: ChangeAware
      Adds the specified change listener to track changes to the underlying source.
      Specified by:
      addChangeListener in interface ChangeAware
      Parameters:
      l - Change listener to add.
      See Also:
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Description copied from interface: ChangeAware
      Removes the specified change listener from tracking changes to the underlying source.
      Specified by:
      removeChangeListener in interface ChangeAware
      Parameters:
      l - Change listener to remove.
      See Also:
    • fireStateChanged

      private void fireStateChanged()