org.efaps.ui.wicket.behaviors.dojo
Class EditorBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.efaps.ui.wicket.behaviors.dojo.AbstractDojoBehavior
          extended by org.efaps.ui.wicket.behaviors.dojo.EditorBehavior
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class EditorBehavior
extends AbstractDojoBehavior

Class renders a dojo editor.This widget provides basic WYSIWYG editing features, based on the browser's underlying rich text editing capability, accompanied by a toolbar (dijit.Toolbar). A plugin model is available to extend the editor's capabilities as well as the the options available in the toolbar. Content generation may vary across browsers, and clipboard operations may have different results, to name a few limitations. Note: this widget should not be used with the HTML <TEXTAREA> tag. The default menu from dojo is: UNDO,REDO,SEPERATOR,CUT,COPY,PASTE,SEPERATOR,BOLD,ITALIC,UNDERLINE, STRIKETROUGH,SEPERATOR,ORDEREDLIST,UNORDERLIST,INDENT,OUTENT, SEPERATOR,JUSTIFYLEFT,JUSTIFYRIGHT,JUSTIFYCENTER,JUSTIFYFULL

Version:
$Id: EditorBehavior.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
The eFaps Team
See Also:
Serialized Form

Nested Class Summary
static class EditorBehavior.MenuCommands
          Enum for the different MenuCommands of a dojo Editor.
 
Constructor Summary
EditorBehavior(java.util.List<EditorBehavior.MenuCommands> _cmds)
          Constructor.
 
Method Summary
 void onComponentTag(org.apache.wicket.Component _component, org.apache.wicket.markup.ComponentTag _tag)
          The tag of the related component must be set, so that a dojo BorderContainer will be rendered.
 
Methods inherited from class org.efaps.ui.wicket.behaviors.dojo.AbstractDojoBehavior
beforeRender, renderHead
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorBehavior

public EditorBehavior(java.util.List<EditorBehavior.MenuCommands> _cmds)
Constructor.

Parameters:
_cmds - List of cmds to be used in this editor, null if default from dojo should be used
Method Detail

onComponentTag

public void onComponentTag(org.apache.wicket.Component _component,
                           org.apache.wicket.markup.ComponentTag _tag)
The tag of the related component must be set, so that a dojo BorderContainer will be rendered.

Specified by:
onComponentTag in interface org.apache.wicket.behavior.IBehavior
Overrides:
onComponentTag in class org.apache.wicket.behavior.AbstractBehavior
Parameters:
_component - component this Behavior belongs to
_tag - Tag to write to


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.