|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
org.xwiki.gwt.wysiwyg.client.plugin.table.feature.AbstractTableFeature
org.xwiki.gwt.wysiwyg.client.plugin.table.feature.InsertTable
public class InsertTable
Feature allowing to insert a table in the editor. It is disabled when the caret is positioned in a table.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
Feature name. |
| Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable |
|---|
cache, domUtils |
| Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable |
|---|
rta |
| Constructor Summary | |
|---|---|
InsertTable(TablePlugin plugin)
Initialize the feature. |
|
| Method Summary | |
|---|---|
Element |
createTable(Document doc,
TableConfig config)
Create a table from TableConfig configuration. |
boolean |
execute(java.lang.String parameter)
|
Wizard |
getWizard()
Get table wizard pop-up. |
void |
insertTable(TableConfig config)
Insert a HTML table in the editor. |
boolean |
isEnabled()
|
void |
onCancel(Wizard sender)
|
void |
onFinish(Wizard sender,
java.lang.Object result)
|
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.table.feature.AbstractTableFeature |
|---|
destroy, getCommand, getName, getPlugin |
| Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable |
|---|
getParameter, hasValidSelection, isExecuted |
| Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable |
|---|
isSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xwiki.gwt.user.client.ui.rta.cmd.Executable |
|---|
getParameter, isExecuted, isSupported |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public InsertTable(TablePlugin plugin)
plugin - table plug-in.| Method Detail |
|---|
public Wizard getWizard()
public Element createTable(Document doc,
TableConfig config)
We create the table using innerHTML instead of creating each DOM node in order to improve the speed. In most of the browsers setting the innerHTML is faster than creating the DOM nodes and appending them.
doc - currently edited document.config - table configuration (row number, etc).
public void insertTable(TableConfig config)
config - creation parameters.public boolean execute(java.lang.String parameter)
execute in interface ExecutableExecutable.execute(String)public boolean isEnabled()
isEnabled in interface ExecutableisEnabled in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutableAbstractSelectionExecutable.isEnabled()public void onCancel(Wizard sender)
onCancel in interface WizardListenerWizardListener.onCancel(Wizard)
public void onFinish(Wizard sender,
java.lang.Object result)
onFinish in interface WizardListenerWizardListener.onFinish(Wizard, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||