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.MouseUpHandlerpublic void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandlerpublic boolean onBeforeCommand(CommandManager sender, Command command, String param)
onBeforeCommand in interface CommandListenerpublic void onCommand(CommandManager sender, Command command, String param)
onCommand in interface CommandListenerpublic int getMacroCount()
public Element getMacro(int index)
index - the index of the selected macro to returnpublic MacroDisplayer getDisplayer()
Copyright © 2004–2016 XWiki. All rights reserved.