dsto.dfc.swt.commands
Interface CustomMenuCommand

All Superinterfaces:
Command, PropertyEventSource
All Known Implementing Classes:
BasicToggleCommand, CmdSetBeanProperty, CmdToggleDataBeanProperty, CmdToggleWindowStyle

public interface CustomMenuCommand
extends Command

Interface for commands that wish to provide a custom menu UI.

Version:
$Revision$

Method Summary
 CommandMenuItemProvider createMenuProvider(CommandView view, org.eclipse.swt.widgets.Menu menu, int index)
          Create a menu UI provider for the command.
 
Methods inherited from interface dsto.dfc.swt.commands.Command
addCommandListener, execute, getAccelerator, getDescription, getDisplayName, getGroupInView, getIcon, getLogString, getMnemonic, getName, isEnabled, isInteractive, removeCommandListener, setAccelerator, setContextMenuGroup, setDescription, setDisplayName, setEnabled, setIcon, setMainMenuGroup, setMnemonic, setToolbarGroup
 
Methods inherited from interface dsto.dfc.util.PropertyEventSource
addPropertyChangeListener, removePropertyChangeListener
 

Method Detail

createMenuProvider

CommandMenuItemProvider createMenuProvider(CommandView view,
                                           org.eclipse.swt.widgets.Menu menu,
                                           int index)
Create a menu UI provider for the command.

Parameters:
view - The command view.
menu - The host menu for the UI.
index - The index for the UI item(s).
Returns:
A CommandMenuItemProvider that provides the UI.


Copyright © 2008 Commonwealth of Australia