org.xwiki.gwt.wysiwyg.client.plugin.table.feature
Class AbstractTableFeature

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 org.xwiki.gwt.wysiwyg.client.plugin.table.feature.AbstractTableFeature
All Implemented Interfaces:
Executable, TableFeature
Direct Known Subclasses:
DeleteCol, DeleteRow, DeleteTable, InsertColAfter, InsertColBefore, InsertRowAfter, InsertRowBefore, InsertTable

public abstract class AbstractTableFeature
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
implements TableFeature

This class partly implements the Executable and TableFeature interfaces. Table features must extend this class.

Version:
$Id: c371498e5e96d1f9695d986278124d98c0998c53 $

Field Summary
 
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
AbstractTableFeature(String name, Command command, String title, TablePlugin plugin)
          Default constructor.
 
Method Summary
 void destroy()
          Remove feature button from the interface.
 Command getCommand()
          Get feature command.
 String getName()
          Get feature name.
 TablePlugin getPlugin()
          Get table plugin.
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
getParameter, hasValidSelection, isEnabled, 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
execute, getParameter, isEnabled, isExecuted, isSupported
 

Constructor Detail

AbstractTableFeature

public AbstractTableFeature(String name,
                            Command command,
                            String title,
                            TablePlugin plugin)
Default constructor.

Parameters:
name - feature name.
command - feature command.
title - feature button title.
plugin - table plug-in.
Method Detail

getName

public String getName()
Get feature name.

Specified by:
getName in interface TableFeature
Returns:
feature name (examples: inserttable, insertrowbefore).
See Also:
TableFeature.getName()

getCommand

public Command getCommand()
Get feature command.

Specified by:
getCommand in interface TableFeature
Returns:
feature command.
See Also:
TableFeature.getCommand()

getPlugin

public TablePlugin getPlugin()
Get table plugin.

Specified by:
getPlugin in interface TableFeature
Returns:
table plugin.
See Also:
TableFeature.getPlugin()

destroy

public void destroy()
Remove feature button from the interface.

Specified by:
destroy in interface TableFeature
See Also:
TableFeature.destroy()


Copyright © 2004–2014 XWiki. All rights reserved.