org.xwiki.gwt.wysiwyg.client.plugin.image
Class ImageBehaviorAdjuster

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.image.ImageBehaviorAdjuster
All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler

public class ImageBehaviorAdjuster
extends Object
implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.dom.client.KeyPressHandler

Customizes the behavior of the editor according to the image constraints, e.g. disables all keys besides backspace and delete when an image is selected.

Version:
$Id: 180c9a11ace6d38f0e382236d3f2f687590fe452 $

Constructor Summary
ImageBehaviorAdjuster()
           
 
Method Summary
 void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
          
 void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
          
 void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
          
 void setTextArea(RichTextArea textArea)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBehaviorAdjuster

public ImageBehaviorAdjuster()
Method Detail

onKeyDown

public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)

Specified by:
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler
See Also:
KeyDownHandler.onKeyDown(KeyDownEvent)

onKeyPress

public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)

Specified by:
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
See Also:
KeyPressHandler.onKeyPress(KeyPressEvent)

onKeyUp

public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)

Specified by:
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandler
See Also:
KeyUpHandler.onKeyUp(KeyUpEvent)

setTextArea

public void setTextArea(RichTextArea textArea)
Parameters:
textArea - the textArea to set


Copyright © 2004–2014 XWiki. All rights reserved.