Class CommandPanelContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandPanelContentModel
- All Implemented Interfaces:
ChangeAware, ContentModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeListenerprivate List<CommandGroup> private BaseCommand.CommandActionPreviewprivate PropertyChangeListenerprivate booleanIndicates the selection mode for the toggle commands in the panel.private Commandprivate final WeakChangeSupportStores the listeners on this model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified change listener to track changes to the underlying source.voidaddCommandGroup(CommandGroup commandGroupModel) findFirstMatch(CommandGroup.CommandFilter commandFilter) private voidintbooleanvoidvoidRemoves the specified change listener from tracking changes to the underlying source.voidremoveCommandGroup(CommandGroup commandGroupModel) voidsetCommandPreviewListener(BaseCommand.CommandActionPreview commandPreviewListener) voidsetSingleSelectionMode(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. Iftrueis 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:ChangeAwareAdds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to add.- See Also:
-
removeChangeListener
Description copied from interface:ChangeAwareRemoves the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to remove.- See Also:
-
fireStateChanged
private void fireStateChanged()
-