org.xwiki.gwt.wysiwyg.client.plugin.macro.input
Class TextInput

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 org.xwiki.gwt.wysiwyg.client.plugin.macro.input.AbstractInput
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.input.TextInput
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasFocus, HasValue

public class TextInput
extends AbstractInput

A concrete input control used to collect text from the user.

Version:
$Id$

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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TextInput(com.google.gwt.user.client.ui.TextBoxBase textBox)
          Creates a new text input that wraps a text box.
 
Method Summary
 String getValue()
          
 void setFocus(boolean focused)
          Gives or takes the focus to/from this object.
 void setValue(String value)
          Sets this object's value.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextInput

public TextInput(com.google.gwt.user.client.ui.TextBoxBase textBox)
Creates a new text input that wraps a text box.

Parameters:
textBox - the text box used to collect test from the user
Method Detail

setFocus

public void setFocus(boolean focused)
Gives or takes the focus to/from this object. Only one object can have focus at a time.

Parameters:
focused - true to give the focus to this object, false to take it
See Also:
HasFocus.setFocus(boolean)

getValue

public String getValue()

Returns:
this object's value
See Also:
HasValue.setValue(String)

setValue

public void setValue(String value)
Sets this object's value.

Parameters:
value - a String representing a new value for this object
See Also:
HasValue.getValue()


Copyright © 2004-2012 XWiki. All Rights Reserved.