dsto.dfc.swt.commands
Class CommandMenuButtonProvider

java.lang.Object
  extended by dsto.dfc.swt.commands.AbstractCommandItemProvider
      extended by dsto.dfc.swt.commands.CommandMenuButtonProvider
All Implemented Interfaces:
CommandMenuItemProvider, PropertyChangeListener, EventListener, org.eclipse.swt.widgets.Listener
Direct Known Subclasses:
CommandMenuCheckboxProvider

public class CommandMenuButtonProvider
extends AbstractCommandItemProvider
implements CommandMenuItemProvider

Command UI provider that generates a MenuItem for the command.

Version:
$Revision$
Author:
mpp

Field Summary
 
Fields inherited from class dsto.dfc.swt.commands.AbstractCommandItemProvider
command, commandView, item, parent
 
Constructor Summary
CommandMenuButtonProvider(CommandView commandView, Command command, org.eclipse.swt.widgets.Menu menu, int index)
           
 
Method Summary
protected  org.eclipse.swt.widgets.Item createItem(org.eclipse.swt.widgets.Widget menu, int index)
          Create the item for this provider.
 void dispose()
          Dispose the provider and all items created.
 int getItemStart()
          The index of the first item the provider created.
protected  void updateAccelerator()
           
protected  void updateAccelerator(org.eclipse.swt.widgets.MenuItem newItem)
           
protected  void updateDisplayName()
           
protected  void updateEnabled()
           
protected  void updateIcon()
           
protected  void updateProperty(String name)
           
 
Methods inherited from class dsto.dfc.swt.commands.AbstractCommandItemProvider
getItemCount, handleEvent, propertyChange, updateDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dsto.dfc.swt.commands.CommandMenuItemProvider
getItemCount
 

Constructor Detail

CommandMenuButtonProvider

public CommandMenuButtonProvider(CommandView commandView,
                                 Command command,
                                 org.eclipse.swt.widgets.Menu menu,
                                 int index)
Method Detail

dispose

public void dispose()
Description copied from interface: CommandMenuItemProvider
Dispose the provider and all items created.

Specified by:
dispose in interface CommandMenuItemProvider
Overrides:
dispose in class AbstractCommandItemProvider

createItem

protected org.eclipse.swt.widgets.Item createItem(org.eclipse.swt.widgets.Widget menu,
                                                  int index)
Description copied from class: AbstractCommandItemProvider
Create the item for this provider.

Specified by:
createItem in class AbstractCommandItemProvider

getItemStart

public int getItemStart()
Description copied from interface: CommandMenuItemProvider
The index of the first item the provider created.

Specified by:
getItemStart in interface CommandMenuItemProvider

updateDisplayName

protected void updateDisplayName()
Overrides:
updateDisplayName in class AbstractCommandItemProvider

updateIcon

protected void updateIcon()
Overrides:
updateIcon in class AbstractCommandItemProvider

updateEnabled

protected void updateEnabled()
Overrides:
updateEnabled in class AbstractCommandItemProvider

updateAccelerator

protected void updateAccelerator()
Overrides:
updateAccelerator in class AbstractCommandItemProvider

updateAccelerator

protected void updateAccelerator(org.eclipse.swt.widgets.MenuItem newItem)

updateProperty

protected void updateProperty(String name)
Overrides:
updateProperty in class AbstractCommandItemProvider


Copyright © 2008 Commonwealth of Australia