Class CommandMenuContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandMenuContentModel
- All Implemented Interfaces:
BaseCommandMenuContentModel, ChangeAware, ContentModel
- Direct Known Subclasses:
RibbonApplicationMenu
-
Constructor Summary
ConstructorsConstructorDescriptionCommandMenuContentModel(List<CommandGroup> commands) CommandMenuContentModel(CommandGroup commands) CommandMenuContentModel(CommandGroup... commandGroups) CommandMenuContentModel(CommandPanelContentModel panelContentModel, List<CommandGroup> commands) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified change listener to track changes to the underlying source.voidaddCommandGroup(CommandGroup commandGroupModel) booleanisEmpty()voidvoidRemoves the specified change listener from tracking changes to the underlying source.voidremoveCommandGroup(CommandGroup commandGroupModel) voidsetHighlightedCommand(Command highlightedCommand)
-
Constructor Details
-
CommandMenuContentModel
-
CommandMenuContentModel
-
CommandMenuContentModel
-
CommandMenuContentModel
public CommandMenuContentModel(CommandPanelContentModel panelContentModel, List<CommandGroup> commands)
-
-
Method Details
-
getPanelContentModel
-
addCommandGroup
-
removeCommandGroup
-
removeAllCommandGroups
public void removeAllCommandGroups() -
getHighlightedCommand
-
setHighlightedCommand
-
getCommandGroups
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceBaseCommandMenuContentModel
-
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:
-