com.xpn.xwiki.wysiwyg.client.plugin.table.feature
Class InsertRowAfter

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
      extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
          extended by com.xpn.xwiki.wysiwyg.client.plugin.table.feature.AbstractTableFeature
              extended by com.xpn.xwiki.wysiwyg.client.plugin.table.feature.InsertRowAfter
All Implemented Interfaces:
TableFeature, Executable

public class InsertRowAfter
extends AbstractTableFeature

Feature allowing to insert a row bellow the currently edited row. After the insertion the caret is positioned in the cell bellow the originally edited cell. It is disabled when the caret is positioned outside of a row. A row is a set of cells aligned horizontally in a table.

Version:
$Id: InsertRowAfter.java 26263 2010-01-20 17:34:36Z mflorea $

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
InsertRowAfter(TablePlugin plugin)
          Initialize the feature.
 
Method Summary
 boolean execute(java.lang.String parameter)
          
 boolean isEnabled()
          
 
Methods inherited from class com.xpn.xwiki.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

NAME

public static final java.lang.String NAME
Feature name.

See Also:
Constant Field Values
Constructor Detail

InsertRowAfter

public InsertRowAfter(TablePlugin plugin)
Initialize the feature. Table features needs to be aware of the plug-in (here the ClickListener) since they hold their own PushButton.

Parameters:
plugin - table plug-in.
Method Detail

execute

public boolean execute(java.lang.String parameter)

See Also:
Executable.execute(String)

isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface Executable
Overrides:
isEnabled in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
See Also:
AbstractSelectionExecutable.isEnabled()


Copyright © 2004-2010 XWiki. All Rights Reserved.