com.itmill.toolkit.terminal.gwt.client.ui
Class ITextField

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.FocusWidget
              extended by com.google.gwt.user.client.ui.TextBoxBase
                  extended by com.itmill.toolkit.terminal.gwt.client.ui.ITextField
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.FocusListener, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasName, com.google.gwt.user.client.ui.HasText, 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, Paintable, Field
Direct Known Subclasses:
IPasswordField, ITextArea

public class ITextField
extends com.google.gwt.user.client.ui.TextBoxBase
implements Paintable, Field, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.FocusListener

This class represents a basic text input field with one row.

Author:
IT Mill Ltd.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.TextBoxBase
com.google.gwt.user.client.ui.TextBoxBase.TextAlignConstant
 
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
static String CLASSNAME
          The input node CSS classname.
static String CLASSNAME_FOCUS
          This CSS classname is added to the input node on hover.
protected  ApplicationConnection client
           
protected  String id
           
 
Fields inherited from class com.google.gwt.user.client.ui.TextBoxBase
ALIGN_CENTER, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
  ITextField()
           
protected ITextField(com.google.gwt.user.client.Element node)
           
 
Method Summary
static void flushChangesFromFocusedTextField()
           
protected  int getMaxLength()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void onChange(com.google.gwt.user.client.ui.Widget sender)
           
 void onFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void setColumns(int columns)
           
 void setHeight(String height)
           
 void setWidth(String width)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.google.gwt.user.client.ui.TextBoxBase
addChangeListener, cancelKey, getCursorPos, getImpl, getName, getSelectedText, getSelectionLength, getText, isReadOnly, removeChangeListener, selectAll, setCursorPos, setKey, setName, setReadOnly, setSelectionRange, setText, setTextAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addClickListener, addFocusListener, addKeyboardListener, getFocusImpl, getTabIndex, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, setAccessKey, setElement, setEnabled, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, 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, 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

CLASSNAME

public static final String CLASSNAME
The input node CSS classname.

See Also:
Constant Field Values

CLASSNAME_FOCUS

public static final String CLASSNAME_FOCUS
This CSS classname is added to the input node on hover.

See Also:
Constant Field Values

id

protected String id

client

protected ApplicationConnection client
Constructor Detail

ITextField

public ITextField()

ITextField

protected ITextField(com.google.gwt.user.client.Element node)
Method Detail

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.TextBoxBase

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

getMaxLength

protected int getMaxLength()

onChange

public void onChange(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onChange in interface com.google.gwt.user.client.ui.ChangeListener

flushChangesFromFocusedTextField

public static void flushChangesFromFocusedTextField()

onFocus

public void onFocus(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onFocus in interface com.google.gwt.user.client.ui.FocusListener

onLostFocus

public void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onLostFocus in interface com.google.gwt.user.client.ui.FocusListener

setColumns

public void setColumns(int columns)

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.