com.xpn.xwiki.wysiwyg.client.ui
Class XRichTextArea

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.xpn.xwiki.wysiwyg.client.ui.XRichTextArea
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.FocusListener, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasName, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.KeyboardListener, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesChangeEvents, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesKeyboardEvents, com.google.gwt.user.client.ui.SourcesMouseEvents

public class XRichTextArea
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasName, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.SourcesMouseEvents, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesChangeEvents, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.FocusListener, com.google.gwt.user.client.ui.KeyboardListener, com.google.gwt.user.client.ui.MouseListener


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  com.google.gwt.user.client.ui.ChangeListenerCollection changeListeners
           
protected  com.google.gwt.user.client.ui.ClickListenerCollection clickListeners
           
protected  CommandManager cm
           
protected  com.google.gwt.user.client.ui.FocusListenerCollection focusListeners
           
protected  History history
           
protected  com.google.gwt.user.client.ui.KeyboardListenerCollection keyboardListeners
           
protected  com.google.gwt.user.client.ui.MouseListenerCollection mouseListeners
           
protected  WrappedRichTextArea rta
           
protected  com.google.gwt.user.client.ui.Hidden value
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Constructor Summary
XRichTextArea()
           
XRichTextArea(CommandManager cm)
          Custom constructor allowing us to inject a mock command manager.
 
Method Summary
 void addChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
          
 void addClickListener(com.google.gwt.user.client.ui.ClickListener listener)
          
 void addFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
          
 void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
          
 void addMouseListener(com.google.gwt.user.client.ui.MouseListener listener)
          
 void addShortcutKey(XShortcutKey shortcutKey)
           
 com.google.gwt.user.client.ui.RichTextArea.BasicFormatter getBasicFormatter()
           
 CommandManager getCommandManager()
           
 com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter getExtendedFormatter()
           
 java.lang.String getHTML()
          
 com.google.gwt.dom.client.IFrameElement getIFrameElement()
           
 java.lang.String getName()
          
 java.lang.String getStyleSheetURL()
           
 int getTabIndex()
          
 java.lang.String getText()
          
 boolean isEnabled()
           
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          
 void onFocus(com.google.gwt.user.client.ui.Widget sender)
          
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
          
 void onMouseDown(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          
 void onMouseEnter(com.google.gwt.user.client.ui.Widget sender)
          
 void onMouseLeave(com.google.gwt.user.client.ui.Widget sender)
          
 void onMouseMove(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          
 void onMouseUp(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          
 void removeChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
          
 void removeClickListener(com.google.gwt.user.client.ui.ClickListener listener)
          
 void removeFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
          
 void removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
          
 void removeMouseListener(com.google.gwt.user.client.ui.MouseListener listener)
          
 void removeShortcutKey(XShortcutKey shortcutKey)
           
 void setAccessKey(char key)
          
 void setEnabled(boolean enabled)
           
 void setFocus(boolean focused)
          
 void setHeight(java.lang.String height)
          
 void setHTML(java.lang.String html)
          
 void setName(java.lang.String name)
          
 void setStyleSheetURL(java.lang.String styleSheetURL)
           
 void setTabIndex(int index)
          
 void setText(java.lang.String text)
          
 void setWidth(java.lang.String width)
          
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rta

protected final WrappedRichTextArea rta

value

protected final com.google.gwt.user.client.ui.Hidden value

cm

protected CommandManager cm

history

protected History history

clickListeners

protected final com.google.gwt.user.client.ui.ClickListenerCollection clickListeners

focusListeners

protected final com.google.gwt.user.client.ui.FocusListenerCollection focusListeners

keyboardListeners

protected final com.google.gwt.user.client.ui.KeyboardListenerCollection keyboardListeners

mouseListeners

protected final com.google.gwt.user.client.ui.MouseListenerCollection mouseListeners

changeListeners

protected final com.google.gwt.user.client.ui.ChangeListenerCollection changeListeners
Constructor Detail

XRichTextArea

public XRichTextArea()

XRichTextArea

public XRichTextArea(CommandManager cm)
Custom constructor allowing us to inject a mock command manager. It was mainly added to be used in unit tests.

Parameters:
cm - Custom command manager
Method Detail

getHTML

public java.lang.String getHTML()

Specified by:
getHTML in interface com.google.gwt.user.client.ui.HasHTML
See Also:
RichTextArea.getHTML()

setHTML

public void setHTML(java.lang.String html)

Specified by:
setHTML in interface com.google.gwt.user.client.ui.HasHTML
See Also:
RichTextArea.setHTML(String)

getText

public java.lang.String getText()

Specified by:
getText in interface com.google.gwt.user.client.ui.HasText
See Also:
RichTextArea.getText()

setText

public void setText(java.lang.String text)

Specified by:
setText in interface com.google.gwt.user.client.ui.HasText
See Also:
RichTextArea.setText(String)

addMouseListener

public void addMouseListener(com.google.gwt.user.client.ui.MouseListener listener)

Specified by:
addMouseListener in interface com.google.gwt.user.client.ui.SourcesMouseEvents
See Also:
RichTextArea.addMouseListener(MouseListener)

removeMouseListener

public void removeMouseListener(com.google.gwt.user.client.ui.MouseListener listener)

Specified by:
removeMouseListener in interface com.google.gwt.user.client.ui.SourcesMouseEvents
See Also:
RichTextArea.removeMouseListener(MouseListener)

addClickListener

public void addClickListener(com.google.gwt.user.client.ui.ClickListener listener)

Specified by:
addClickListener in interface com.google.gwt.user.client.ui.SourcesClickEvents
See Also:
FocusWidget.addClickListener(ClickListener)

removeClickListener

public void removeClickListener(com.google.gwt.user.client.ui.ClickListener listener)

Specified by:
removeClickListener in interface com.google.gwt.user.client.ui.SourcesClickEvents
See Also:
FocusWidget.removeClickListener(ClickListener)

addFocusListener

public void addFocusListener(com.google.gwt.user.client.ui.FocusListener listener)

Specified by:
addFocusListener in interface com.google.gwt.user.client.ui.SourcesFocusEvents
See Also:
FocusWidget.addFocusListener(FocusListener)

removeFocusListener

public void removeFocusListener(com.google.gwt.user.client.ui.FocusListener listener)

Specified by:
removeFocusListener in interface com.google.gwt.user.client.ui.SourcesFocusEvents
See Also:
FocusWidget.removeFocusListener(FocusListener)

getTabIndex

public int getTabIndex()

Specified by:
getTabIndex in interface com.google.gwt.user.client.ui.HasFocus
See Also:
FocusWidget.getTabIndex()

setAccessKey

public void setAccessKey(char key)

Specified by:
setAccessKey in interface com.google.gwt.user.client.ui.HasFocus
See Also:
FocusWidget.setAccessKey(char)

setFocus

public void setFocus(boolean focused)

Specified by:
setFocus in interface com.google.gwt.user.client.ui.HasFocus
See Also:
RichTextArea.setFocus(boolean)

setTabIndex

public void setTabIndex(int index)

Specified by:
setTabIndex in interface com.google.gwt.user.client.ui.HasFocus
See Also:
FocusWidget.setTabIndex(int)

addKeyboardListener

public void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)

Specified by:
addKeyboardListener in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
See Also:
FocusWidget.addKeyboardListener(KeyboardListener)

removeKeyboardListener

public void removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)

Specified by:
removeKeyboardListener in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
See Also:
FocusWidget.removeKeyboardListener(KeyboardListener)

isEnabled

public boolean isEnabled()
See Also:
FocusWidget.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
See Also:
FocusWidget.setEnabled(boolean)

getBasicFormatter

public com.google.gwt.user.client.ui.RichTextArea.BasicFormatter getBasicFormatter()
See Also:
RichTextArea.getBasicFormatter()

getExtendedFormatter

public com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter getExtendedFormatter()
See Also:
RichTextArea.getExtendedFormatter()

getCommandManager

public CommandManager getCommandManager()
Returns:
the CommandManager associated with this instance.

addShortcutKey

public void addShortcutKey(XShortcutKey shortcutKey)
See Also:
WrappedRichTextArea.addShortcutKey(XShortcutKey)

removeShortcutKey

public void removeShortcutKey(XShortcutKey shortcutKey)
See Also:
WrappedRichTextArea.removeShortcutKey(XShortcutKey)

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener
See Also:
ClickListener.onClick(Widget)

onFocus

public void onFocus(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onFocus in interface com.google.gwt.user.client.ui.FocusListener
See Also:
FocusListener.onFocus(Widget)

onLostFocus

public void onLostFocus(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onLostFocus in interface com.google.gwt.user.client.ui.FocusListener
See Also:
FocusListener.onLostFocus(Widget)

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifiers)

Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyDown(Widget, char, int)

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifiers)

Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyPress(Widget, char, int)

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifiers)

Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyUp(Widget, char, int)

onMouseDown

public void onMouseDown(com.google.gwt.user.client.ui.Widget sender,
                        int x,
                        int y)

Specified by:
onMouseDown in interface com.google.gwt.user.client.ui.MouseListener
See Also:
MouseListener.onMouseDown(Widget, int, int)

onMouseEnter

public void onMouseEnter(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onMouseEnter in interface com.google.gwt.user.client.ui.MouseListener
See Also:
MouseListener.onMouseEnter(Widget)

onMouseLeave

public void onMouseLeave(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onMouseLeave in interface com.google.gwt.user.client.ui.MouseListener
See Also:
MouseListener.onMouseLeave(Widget)

onMouseMove

public void onMouseMove(com.google.gwt.user.client.ui.Widget sender,
                        int x,
                        int y)

Specified by:
onMouseMove in interface com.google.gwt.user.client.ui.MouseListener
See Also:
MouseListener.onMouseMove(Widget, int, int)

onMouseUp

public void onMouseUp(com.google.gwt.user.client.ui.Widget sender,
                      int x,
                      int y)

Specified by:
onMouseUp in interface com.google.gwt.user.client.ui.MouseListener
See Also:
MouseListener.onMouseUp(Widget, int, int)

getName

public java.lang.String getName()

Specified by:
getName in interface com.google.gwt.user.client.ui.HasName
See Also:
HasName.getName()

setName

public void setName(java.lang.String name)

Specified by:
setName in interface com.google.gwt.user.client.ui.HasName
See Also:
HasName.setName(String)

setWidth

public void setWidth(java.lang.String width)

Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject
See Also:
UIObject.setWidth(String)

setHeight

public void setHeight(java.lang.String height)

Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject
See Also:
UIObject.setHeight(String)

addChangeListener

public void addChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)

Specified by:
addChangeListener in interface com.google.gwt.user.client.ui.SourcesChangeEvents
See Also:
SourcesChangeEvents.addChangeListener(ChangeListener)

removeChangeListener

public void removeChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)

Specified by:
removeChangeListener in interface com.google.gwt.user.client.ui.SourcesChangeEvents
See Also:
SourcesChangeEvents.removeChangeListener(ChangeListener)

getIFrameElement

public com.google.gwt.dom.client.IFrameElement getIFrameElement()

getStyleSheetURL

public java.lang.String getStyleSheetURL()

setStyleSheetURL

public void setStyleSheetURL(java.lang.String styleSheetURL)


Copyright © 2004-2008 XWiki. All Rights Reserved.