public class MacroSelector extends Object implements Updatable, com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.dom.client.KeyUpHandler, CommandListener
| Constructor and Description |
|---|
MacroSelector(MacroDisplayer displayer)
Creates a new macro selector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdate() |
void |
destroy()
Destroys this selector.
|
MacroDisplayer |
getDisplayer() |
Element |
getMacro(int index) |
int |
getMacroCount() |
boolean |
onBeforeCommand(CommandManager sender,
Command command,
String param) |
void |
onCommand(CommandManager sender,
Command command,
String param) |
void |
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) |
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event) |
void |
update() |
public MacroSelector(MacroDisplayer displayer)
displayer - the displayer to be used for selecting the macrospublic void destroy()
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerMouseUpHandler.onMouseUp(MouseUpEvent)public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandlerKeyUpHandler.onKeyUp(KeyUpEvent)public boolean onBeforeCommand(CommandManager sender, Command command, String param)
onBeforeCommand in interface CommandListenerCommandListener.onBeforeCommand(CommandManager, Command, String)public void onCommand(CommandManager sender, Command command, String param)
onCommand in interface CommandListenerCommandListener.onCommand(CommandManager, Command, String)public void update()
update in interface UpdatableUpdatable.update()public boolean canUpdate()
canUpdate in interface UpdatableUpdatable.canUpdate()public int getMacroCount()
public Element getMacro(int index)
index - the index of the selected macro to returnpublic MacroDisplayer getDisplayer()
Copyright © 2004–2015 XWiki. All rights reserved.