com.vaadin.terminal.gwt.client.ui.textfield
Class TextFieldConnector

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.AbstractConnector
      extended by com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
          extended by com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector
              extended by com.vaadin.terminal.gwt.client.ui.textfield.TextFieldConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ComponentConnector, Connector, Paintable, ServerConnector, ShortcutActionHandler.BeforeShortcutActionListener, Serializable
Direct Known Subclasses:
PasswordFieldConnector, TextAreaConnector

public class TextFieldConnector
extends AbstractFieldConnector
implements Paintable, ShortcutActionHandler.BeforeShortcutActionListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
styleNames
 
Constructor Summary
TextFieldConnector()
           
 
Method Summary
 AbstractTextFieldState getState()
          Returns the shared state object for this connector.
 VTextField getWidget()
          Returns the widget associated with this paintable.
 void onBeforeShortcutAction(com.google.gwt.user.client.Event e)
          This method is called by ShortcutActionHandler before firing the shortcut if the Paintable is currently focused (aka the target of the shortcut action).
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector
isModified, isReadOnly, isRequired, updateWidgetStyleNames
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, getLayoutManager, getTooltipInfo, hasEventListener, init, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateEnabledState
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector
addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getRpcImplementations, isEnabled, registerRpc, setChildren, setParent, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ComponentConnector
delegateCaptionHandling, getLayoutManager, getTooltipInfo, hasEventListener, isReadOnly, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector
addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, isEnabled, onUnregister, setChildren, setParent, updateEnabledState
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 

Constructor Detail

TextFieldConnector

public TextFieldConnector()
Method Detail

getState

public AbstractTextFieldState getState()
Description copied from class: AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.

Specified by:
getState in interface ComponentConnector
Specified by:
getState in interface Connector
Overrides:
getState in class AbstractFieldConnector
Returns:
the current shared state (never null)

updateFromUIDL

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

getWidget

public VTextField getWidget()
Description copied from class: AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.

Specified by:
getWidget in interface ComponentConnector
Overrides:
getWidget in class AbstractComponentConnector
Returns:
The widget associated with this paintable

onBeforeShortcutAction

public void onBeforeShortcutAction(com.google.gwt.user.client.Event e)
Description copied from interface: ShortcutActionHandler.BeforeShortcutActionListener
This method is called by ShortcutActionHandler before firing the shortcut if the Paintable is currently focused (aka the target of the shortcut action). Eg. a field can update its possibly changed value to the server before shortcut action is fired.

Specified by:
onBeforeShortcutAction in interface ShortcutActionHandler.BeforeShortcutActionListener
Parameters:
e - the event that triggered the shortcut action


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.