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 interfaceListener for tracking command activation events.static interfaceListener for tracking command preview events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<CommandGroup> private List<CommandGroup> private RadianceIcon.Factoryprivate EventListenerListprivate Commandprivate final WeakChangeSupportStores the listeners on this model. -
Constructor Summary
ConstructorsConstructorDescriptionRibbonGalleryContentModel(RadianceIcon.Factory iconFactory, List<CommandGroup> commands) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivatePreview(BaseCommand<?> command) voidAdds the specified change listener to track changes to the underlying source.voidAdds aRibbonGalleryContentModel.GalleryCommandActionto the model.voidaddCommandGroup(CommandGroup commandGroupModel) voidAdds aRibbonGalleryContentModel.GalleryCommandActionPreviewto the model.voidaddExtraPopupCommandGroup(CommandGroup commandGroupModel) voidcancelPreview(BaseCommand<?> command) private voidfireCommandPreviewActivated(BaseCommand<?> command) private voidfireCommandPreviewCanceled(BaseCommand<?> command) private voidfireCommandSelected(BaseCommand<?> command) private voidgetCommandGroupByTitle(String commandGroupTitle) voidRemoves the specified change listener from tracking changes to the underlying source.voidRemoves aRibbonGalleryContentModel.GalleryCommandActionfrom the model.voidremoveCommandGroup(CommandGroup commandGroupModel) voidRemoves aRibbonGalleryContentModel.GalleryCommandActionPreviewfrom the model.voidremoveExtraPopupCommandGroup(CommandGroup commandGroupModel) voidsetSelectedCommand(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.GalleryCommandActionPreviewto the model.- Parameters:
l- the listener to add
-
removeCommandPreviewListener
Removes aRibbonGalleryContentModel.GalleryCommandActionPreviewfrom the model.- Parameters:
l- the listener to remove
-
addCommandActivationListener
Adds aRibbonGalleryContentModel.GalleryCommandActionto the model.- Parameters:
l- the listener to add
-
removeCommandActivationListener
Removes aRibbonGalleryContentModel.GalleryCommandActionfrom the model.- Parameters:
l- the listener to remove
-
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() -
setSelectedCommand
-
getSelectedCommand
-
activatePreview
-
cancelPreview
-
fireCommandPreviewActivated
-
fireCommandPreviewCanceled
-
fireCommandSelected
-