com.vaadin.terminal.gwt.client.ui
Class AbstractFieldConnector

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
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ComponentConnector, Connector, ServerConnector, Serializable
Direct Known Subclasses:
AbstractDateFieldConnector, CheckBoxConnector, ComboBoxConnector, OptionGroupBaseConnector, ProgressIndicatorConnector, RichTextAreaConnector, SliderConnector, TextFieldConnector

public abstract class AbstractFieldConnector
extends AbstractComponentConnector

See Also:
Serialized Form

Constructor Summary
AbstractFieldConnector()
           
 
Method Summary
 AbstractFieldState getState()
          Returns the shared state object for this connector.
protected  String getStyleNames(String primaryStyleName)
          Generates the style name for the widget based on the given primary style name and the shared state.
 boolean isModified()
           
 boolean isReadOnly()
          Checks if the connector is read only.
 boolean isRequired()
          Checks whether the required indicator should be shown for the field.
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, getLayoutManager, getParent, getWidget, hasEventListener, isEnabled, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setParent, setState, setWidgetEnabled
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector
addStateChangeHandler, doInit, ensureHandlerManager, fireEvent, getConnection, getConnectorId, getRpcImplementations, init, isConnectorEnabled, registerRpc, 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.ServerConnector
addStateChangeHandler, doInit, fireEvent, getConnection, getRpcImplementations
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 

Constructor Detail

AbstractFieldConnector

public AbstractFieldConnector()
Method Detail

getState

public AbstractFieldState getState()
Description copied from class: AbstractComponentConnector
Returns the shared state object for this connector. If overriding this method to return a more specific type, also #createState() must be overridden.

Specified by:
getState in interface ComponentConnector
Specified by:
getState in interface Connector
Overrides:
getState in class AbstractComponentConnector
Returns:
current shared state (not null)

isReadOnly

public boolean isReadOnly()
Description copied from interface: ComponentConnector
Checks if the connector is read only.

Specified by:
isReadOnly in interface ComponentConnector
Overrides:
isReadOnly in class AbstractComponentConnector
Returns:
true

isModified

public boolean isModified()

isRequired

public boolean isRequired()
Checks whether the required indicator should be shown for the field. Required indicators are hidden if the field or its data source is read-only.

Returns:
true if required indicator should be shown

getStyleNames

protected String getStyleNames(String primaryStyleName)
Description copied from class: AbstractComponentConnector
Generates the style name for the widget based on the given primary style name and the shared state.

This method can be overridden to provide additional style names for the component

Overrides:
getStyleNames in class AbstractComponentConnector
Parameters:
primaryStyleName - The primary style name to use when generating the final style names
Returns:
The style names, settable using UIObject.setStyleName(String)


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