Class RibbonGalleryContentModel
- java.lang.Object
-
- org.pushingpixels.flamingo.api.ribbon.model.RibbonGalleryContentModel
-
- All Implemented Interfaces:
ChangeAware,ContentModel
public class RibbonGalleryContentModel extends java.lang.Object implements ContentModel, ChangeAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRibbonGalleryContentModel.GalleryCommandActionListener for tracking command activation events.static interfaceRibbonGalleryContentModel.GalleryCommandActionPreviewListener for tracking command preview events.
-
Constructor Summary
Constructors Constructor Description RibbonGalleryContentModel(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory, java.util.List<CommandGroup> commands)
-
Method Summary
-
-
-
Constructor Detail
-
RibbonGalleryContentModel
public RibbonGalleryContentModel(org.pushingpixels.neon.api.icon.ResizableIcon.Factory iconFactory, java.util.List<CommandGroup> commands)
-
-
Method Detail
-
getIconFactory
public org.pushingpixels.neon.api.icon.ResizableIcon.Factory getIconFactory()
-
getCommandGroups
public java.util.List<CommandGroup> getCommandGroups()
-
getCommandGroupByTitle
public CommandGroup getCommandGroupByTitle(java.lang.String commandGroupTitle)
-
addCommandGroup
public void addCommandGroup(CommandGroup commandGroupModel)
-
removeCommandGroup
public void removeCommandGroup(CommandGroup commandGroupModel)
-
addExtraPopupCommandGroup
public void addExtraPopupCommandGroup(CommandGroup commandGroupModel)
-
removeExtraPopupCommandGroup
public void removeExtraPopupCommandGroup(CommandGroup commandGroupModel)
-
getExtraPopupCommandGroups
public java.util.List<CommandGroup> getExtraPopupCommandGroups()
-
addCommandPreviewListener
public void addCommandPreviewListener(RibbonGalleryContentModel.GalleryCommandActionPreview l)
Adds aRibbonGalleryContentModel.GalleryCommandActionPreviewto the model.- Parameters:
l- the listener to add
-
removeCommandPreviewListener
public void removeCommandPreviewListener(RibbonGalleryContentModel.GalleryCommandActionPreview l)
Removes aRibbonGalleryContentModel.GalleryCommandActionPreviewfrom the model.- Parameters:
l- the listener to remove
-
addCommandActivationListener
public void addCommandActivationListener(RibbonGalleryContentModel.GalleryCommandAction l)
Adds aRibbonGalleryContentModel.GalleryCommandActionto the model.- Parameters:
l- the listener to add
-
removeCommandActivationListener
public void removeCommandActivationListener(RibbonGalleryContentModel.GalleryCommandAction l)
Removes aRibbonGalleryContentModel.GalleryCommandActionfrom the model.- Parameters:
l- the listener to remove
-
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener l)
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:
ChangeAware.removeChangeListener(ChangeListener)
-
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
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:
ChangeAware.removeChangeListener(ChangeListener)
-
setSelectedCommand
public void setSelectedCommand(Command command)
-
getSelectedCommand
public Command getSelectedCommand()
-
activatePreview
public void activatePreview(Command command)
-
cancelPreview
public void cancelPreview(Command command)
-
-