|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
com.xpn.xwiki.wysiwyg.client.plugin.internal.StatefulPlugin
com.xpn.xwiki.wysiwyg.client.plugin.justify.JustifyPlugin
public class JustifyPlugin
XRichTextEditor plug-in for justifying text. It can be used to align text to the left, to the right, in
center or to make it expand to fill the entire line. It installs four toggle buttons on the tool bar and updates
their status depending on the current cursor position.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.xpn.xwiki.wysiwyg.client.util.DeferredUpdate |
|---|
DeferredUpdate.UpdateCommand |
| Field Summary |
|---|
| Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener |
|---|
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT |
| Constructor Summary | |
|---|---|
JustifyPlugin()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
void |
init(Wysiwyg wysiwyg,
XRichTextArea textArea,
Config config)
Initialize the plug-in. |
void |
onClick(com.google.gwt.user.client.ui.Widget sender)
|
void |
onJustifyCenter()
|
void |
onJustifyFull()
|
void |
onJustifyLeft()
|
void |
onJustifyRight()
|
void |
onUpdate()
Executes the most recent update. |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.internal.StatefulPlugin |
|---|
getUpdateIndex, incUpdateIndex, onCommand, onKeyDown, onKeyPress, onKeyUp |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin |
|---|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, getWysiwyg |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JustifyPlugin()
| Method Detail |
|---|
public void init(Wysiwyg wysiwyg,
XRichTextArea textArea,
Config config)
init in interface Plugininit in class AbstractPluginwysiwyg - The WYSIWYG application context.textArea - The text area of the editor.config - The configuration.AbstractPlugin.init(Wysiwyg, XRichTextArea, Config)public void destroy()
destroy in interface Plugindestroy in class AbstractPluginAbstractPlugin.destroy()public void onClick(com.google.gwt.user.client.ui.Widget sender)
onClick in interface com.google.gwt.user.client.ui.ClickListeneronClick in class StatefulPluginClickListener.onClick(Widget)public void onJustifyLeft()
public void onJustifyCenter()
public void onJustifyRight()
public void onJustifyFull()
public void onUpdate()
DeferredUpdate.onUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||