org.xwiki.gwt.wysiwyg.client.plugin.macro
Class MacroMenuExtension

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroMenuExtension
All Implemented Interfaces:
MenuListener, Updatable

public class MacroMenuExtension
extends java.lang.Object
implements Updatable, MenuListener

Provides a user interface extension to allow users to manipulate macros using the top-level menu of the WYSIWYG editor.

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

Constructor Summary
MacroMenuExtension(MacroPlugin plugin)
          Creates a new menu extension for the given macro plug-in.
 
Method Summary
 boolean canUpdate()
          
 void destroy()
          Destroy this extension.
 org.xwiki.gwt.wysiwyg.client.plugin.internal.MenuItemUIExtension getExtension()
           
 void onMenuItemSelected(MenuItem menuItem)
          
 void update()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroMenuExtension

public MacroMenuExtension(MacroPlugin plugin)
Creates a new menu extension for the given macro plug-in.

Parameters:
plugin - a macro plug-in instance
Method Detail

destroy

public void destroy()
Destroy this extension.


getExtension

public org.xwiki.gwt.wysiwyg.client.plugin.internal.MenuItemUIExtension getExtension()
Returns:
the menu extension

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.