org.xwiki.gwt.wysiwyg.client.plugin.image
Class ImageMenuExtension

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractUIExtension
      extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.MenuItemUIExtension
          extended by org.xwiki.gwt.wysiwyg.client.plugin.image.ImageMenuExtension
All Implemented Interfaces:
MenuListener, Updatable, UIExtension

public class ImageMenuExtension
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.MenuItemUIExtension
implements Updatable, MenuListener

Provides user interface for manipulating images through the WYSIWYG top-level menu.

Version:
$Id: ImageMenuExtension.java 26786 2010-02-07 16:46:17Z mflorea $

Constructor Summary
ImageMenuExtension(ImagePlugin plugin)
          Builds the menu extension using the passed plugin.
 
Method Summary
 boolean canUpdate()
          
 void destroy()
          Cleans up this menu extension on destroy.
 void onMenuItemSelected(MenuItem menuItem)
          
 void update()
          
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.MenuItemUIExtension
isEnabled, setEnabled
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractUIExtension
addFeature, clearFeatures, getFeatures, getRole, getUIObject, removeFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMenuExtension

public ImageMenuExtension(ImagePlugin plugin)
Builds the menu extension using the passed plugin.

Parameters:
plugin - the plugin to use for the creation of this menu extension.
Method Detail

destroy

public void destroy()
Cleans up this menu extension on destroy.


onMenuItemSelected

public void onMenuItemSelected(MenuItem menuItem)

Specified by:
onMenuItemSelected in interface MenuListener
See Also:
MenuListener.onMenuItemSelected(MenuItem)

update

public void update()

Specified by:
update in interface Updatable
See Also:
Updatable.update()

canUpdate

public boolean canUpdate()

Specified by:
canUpdate in interface Updatable
See Also:
Updatable.canUpdate()


Copyright © 2004-2010 XWiki. All Rights Reserved.