Class RibbonGalleryContentModel
java.lang.Object
org.pushingpixels.radiance.component.api.ribbon.model.RibbonGalleryContentModel
- All Implemented Interfaces:
ChangeAware
,ContentModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Listener for tracking command activation events.static interface
Listener for tracking command preview events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<CommandGroup> private List
<CommandGroup> private RadianceIcon.Factory
private EventListenerList
private Command
private final WeakChangeSupport
Stores the listeners on this model. -
Constructor Summary
ConstructorsConstructorDescriptionRibbonGalleryContentModel
(RadianceIcon.Factory iconFactory, List<CommandGroup> commands) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activatePreview
(BaseCommand<?> command) void
Adds the specified change listener to track changes to the underlying source.void
Adds aRibbonGalleryContentModel.GalleryCommandAction
to the model.void
addCommandGroup
(CommandGroup commandGroupModel) void
Adds aRibbonGalleryContentModel.GalleryCommandActionPreview
to the model.void
addExtraPopupCommandGroup
(CommandGroup commandGroupModel) void
cancelPreview
(BaseCommand<?> command) private void
fireCommandPreviewActivated
(BaseCommand<?> command) private void
fireCommandPreviewCanceled
(BaseCommand<?> command) private void
fireCommandSelected
(BaseCommand<?> command) private void
getCommandGroupByTitle
(String commandGroupTitle) void
Removes the specified change listener from tracking changes to the underlying source.void
Removes aRibbonGalleryContentModel.GalleryCommandAction
from the model.void
removeCommandGroup
(CommandGroup commandGroupModel) void
Removes aRibbonGalleryContentModel.GalleryCommandActionPreview
from the model.void
removeExtraPopupCommandGroup
(CommandGroup commandGroupModel) void
setSelectedCommand
(Command command)
-
Field Details
-
commandGroups
-
extraPopupCommandGroups
-
selectedCommand
-
iconFactory
-
weakChangeSupport
Stores the listeners on this model. -
listenerList
-
commandGroupListener
-
-
Constructor Details
-
RibbonGalleryContentModel
-
-
Method Details
-
getIconFactory
-
getCommandGroups
-
getCommandGroupByTitle
-
addCommandGroup
-
removeCommandGroup
-
addExtraPopupCommandGroup
-
removeExtraPopupCommandGroup
-
getExtraPopupCommandGroups
-
addCommandPreviewListener
Adds aRibbonGalleryContentModel.GalleryCommandActionPreview
to the model.- Parameters:
l
- the listener to add
-
removeCommandPreviewListener
Removes aRibbonGalleryContentModel.GalleryCommandActionPreview
from the model.- Parameters:
l
- the listener to remove
-
addCommandActivationListener
Adds aRibbonGalleryContentModel.GalleryCommandAction
to the model.- Parameters:
l
- the listener to add
-
removeCommandActivationListener
Removes aRibbonGalleryContentModel.GalleryCommandAction
from the model.- Parameters:
l
- the listener to remove
-
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() -
setSelectedCommand
-
getSelectedCommand
-
activatePreview
-
cancelPreview
-
fireCommandPreviewActivated
-
fireCommandPreviewCanceled
-
fireCommandSelected
-