ContentModelpublic class RibbonGalleryContentModel extends java.lang.Object implements ContentModel
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
RibbonGalleryContentModel.GalleryCommandAction |
Listener for tracking command activation events.
|
static interface |
RibbonGalleryContentModel.GalleryCommandActionPreview |
Listener for tracking command preview events.
|
| Constructor | Description |
|---|---|
RibbonGalleryContentModel(org.pushingpixels.neon.icon.ResizableIcon.Factory iconFactory,
java.util.List<CommandGroup> commands) |
public RibbonGalleryContentModel(org.pushingpixels.neon.icon.ResizableIcon.Factory iconFactory,
java.util.List<CommandGroup> commands)
public org.pushingpixels.neon.icon.ResizableIcon.Factory getIconFactory()
public java.util.List<CommandGroup> getCommandGroups()
public CommandGroup getCommandGroupByTitle(java.lang.String commandGroupTitle)
public void addCommandGroup(CommandGroup commandGroupModel)
public void removeCommandGroup(CommandGroup commandGroupModel)
public void addExtraPopupCommandGroup(CommandGroup commandGroupModel)
public void removeExtraPopupCommandGroup(CommandGroup commandGroupModel)
public java.util.List<CommandGroup> getExtraPopupCommandGroups()
public void addCommandPreviewListener(RibbonGalleryContentModel.GalleryCommandActionPreview l)
RibbonGalleryContentModel.GalleryCommandActionPreview to the model.l - the listener to addpublic void removeCommandPreviewListener(RibbonGalleryContentModel.GalleryCommandActionPreview l)
RibbonGalleryContentModel.GalleryCommandActionPreview from the model.l - the listener to removepublic void addCommandActivationListener(RibbonGalleryContentModel.GalleryCommandAction l)
RibbonGalleryContentModel.GalleryCommandAction to the model.l - the listener to addpublic void removeCommandActivationListener(RibbonGalleryContentModel.GalleryCommandAction l)
RibbonGalleryContentModel.GalleryCommandAction from the model.l - the listener to removepublic void addChangeListener(javax.swing.event.ChangeListener l)
l - Change listener to add.removeChangeListener(ChangeListener)public void removeChangeListener(javax.swing.event.ChangeListener l)
l - Change listener to remove.addChangeListener(ChangeListener)public void setSelectedCommand(Command command)
public Command getSelectedCommand()
public void activatePreview(Command command)
public void cancelPreview(Command command)