Class CommandMenuContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandMenuContentModel
- All Implemented Interfaces:
BaseCommandMenuContentModel, ChangeAware, ContentModel
- Direct Known Subclasses:
BasicRibbonBandUI.BandCollapsePopupMenuContentModel, RibbonApplicationMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<CommandGroup> private Commandprivate ChangeListenerprivate CommandPanelContentModelprivate final WeakChangeSupportStores the listeners on this model. -
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) private voidbooleanisEmpty()voidvoidRemoves the specified change listener from tracking changes to the underlying source.voidremoveCommandGroup(CommandGroup commandGroupModel) voidsetHighlightedCommand(Command highlightedCommand)
-
Field Details
-
panelContentModel
-
commandGroups
-
highlightedCommand
-
weakChangeSupport
Stores the listeners on this model. -
commandGroupListener
-
panelContentChangeListener
-
-
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:
-
fireStateChanged
private void fireStateChanged()
-