org.xwiki.gwt.wysiwyg.client.plugin.list.exec
Class ListExecutable

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.DefaultExecutable
          extended by org.xwiki.gwt.wysiwyg.client.plugin.list.exec.ListExecutable
All Implemented Interfaces:
Executable

public class ListExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.DefaultExecutable

List executable to insert a list (ordered or unordered). This will overwrite the default list insertion executable to detect inserted list when using valid html for nested lists (by default, browsers fail to detect it properly).

Version:
$Id: 1e86082ba2ca67344f8c26e5590c3e41225dca5a $

Field Summary
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.DefaultExecutable
command
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
rta
 
Constructor Summary
ListExecutable(RichTextArea rta, boolean ordered)
          Create a list executable to handle lists as specified by the parameter.
 
Method Summary
 boolean isExecuted()
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.DefaultExecutable
execute, getParameter, isEnabled, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListExecutable

public ListExecutable(RichTextArea rta,
                      boolean ordered)
Create a list executable to handle lists as specified by the parameter.

Parameters:
rta - the execution target
ordered - specified whether this executable handles ordered or unordered lists.
Method Detail

isExecuted

public boolean isExecuted()

Overwrite the default function to handle situations of valid HTML lists which are not detected correctly by the browsers.

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


Copyright © 2004-2013 XWiki. All Rights Reserved.