Class CommandPanelContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandPanelContentModel
- All Implemented Interfaces:
ChangeAware
,ContentModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeListener
private List
<CommandGroup> private BaseCommand.CommandActionPreview
private PropertyChangeListener
private boolean
Indicates the selection mode for the toggle commands in the panel.private Command
private final WeakChangeSupport
Stores the listeners on this model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified change listener to track changes to the underlying source.void
addCommandGroup
(CommandGroup commandGroupModel) findFirstMatch
(CommandGroup.CommandFilter commandFilter) private void
int
boolean
void
void
Removes the specified change listener from tracking changes to the underlying source.void
removeCommandGroup
(CommandGroup commandGroupModel) void
setCommandPreviewListener
(BaseCommand.CommandActionPreview commandPreviewListener) void
setSingleSelectionMode
(boolean isSingleSelectionMode) Sets the selection mode for this model.private boolean
-
Field Details
-
commandGroups
-
isSingleSelectionMode
private boolean isSingleSelectionModeIndicates the selection mode for the toggle commands in the panel. -
commandPreviewListener
-
weakChangeSupport
Stores the listeners on this model. -
commandGroupListener
-
commandGroupPropertyChangeListener
-
commandPropertyChangeListener
-
selectedCommand
-
-
Constructor Details
-
CommandPanelContentModel
-
-
Method Details
-
addCommandGroup
-
removeCommandGroup
-
removeAllCommandGroups
public void removeAllCommandGroups() -
getCommandGroups
-
getCommandCount
public int getCommandCount() -
findFirstMatch
-
setSingleSelectionMode
public void setSingleSelectionMode(boolean isSingleSelectionMode) Sets the selection mode for this model. Iftrue
is passed as the parameter, all toggle commands in this model are set to belong to the same toggle group.- Parameters:
isSingleSelectionMode
- Iftrue
, all toggle commands in this model are set to belong to the same toggle group.
-
getSelectedCommand
-
isSingleSelectionMode
public boolean isSingleSelectionMode() -
setCommandPreviewListener
-
getCommandPreviewListener
-
syncSelectedCommand
private boolean syncSelectedCommand() -
addChangeListener
Description copied from interface:ChangeAware
Adds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListener
in interfaceChangeAware
- Parameters:
l
- Change listener to add.- See Also:
-
removeChangeListener
Description copied from interface:ChangeAware
Removes the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListener
in interfaceChangeAware
- Parameters:
l
- Change listener to remove.- See Also:
-
fireStateChanged
private void fireStateChanged()
-