dsto.dfc.swt.commands
Class CommandMenuCheckboxProvider

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

public class CommandMenuCheckboxProvider
extends CommandMenuButtonProvider

Command UI provider that generates a checkbox 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
CommandMenuCheckboxProvider(CommandView commandView, Command command, String valueProperty, org.eclipse.swt.widgets.Menu menu, int menuIndex)
           
 
Method Summary
protected  org.eclipse.swt.widgets.Item createItem(org.eclipse.swt.widgets.Widget menu, int index)
          Create the item for this provider.
protected  void updateProperty(String name)
           
 
Methods inherited from class dsto.dfc.swt.commands.CommandMenuButtonProvider
dispose, getItemStart, updateAccelerator, updateAccelerator, updateDisplayName, updateEnabled, updateIcon
 
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

CommandMenuCheckboxProvider

public CommandMenuCheckboxProvider(CommandView commandView,
                                   Command command,
                                   String valueProperty,
                                   org.eclipse.swt.widgets.Menu menu,
                                   int menuIndex)
Method Detail

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.

Overrides:
createItem in class CommandMenuButtonProvider

updateProperty

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


Copyright © 2008 Commonwealth of Australia