Class CommandMenuContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandMenuContentModel
- All Implemented Interfaces:
BaseCommandMenuContentModel
,ChangeAware
,ContentModel
- Direct Known Subclasses:
RibbonApplicationMenu
public class CommandMenuContentModel
extends Object
implements BaseCommandMenuContentModel, ChangeAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<CommandGroup> private Command
private ChangeListener
private CommandPanelContentModel
private final WeakChangeSupport
Stores 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 TypeMethodDescriptionvoid
Adds the specified change listener to track changes to the underlying source.void
addCommandGroup
(CommandGroup commandGroupModel) private void
boolean
isEmpty()
void
void
Removes the specified change listener from tracking changes to the underlying source.void
removeCommandGroup
(CommandGroup commandGroupModel) void
setHighlightedCommand
(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:
isEmpty
in interfaceBaseCommandMenuContentModel
-
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()
-