com.vaadin.addon.touchkit.gwt.client.vcom
Class SwitchConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.ui.AbstractComponentConnector
          extended by com.vaadin.client.ui.AbstractFieldConnector
              extended by com.vaadin.addon.touchkit.gwt.client.vcom.SwitchConnector
All Implemented Interfaces:
com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ComponentConnector, com.vaadin.client.ServerConnector, com.vaadin.shared.Connector, Serializable

public class SwitchConnector
extends com.vaadin.client.ui.AbstractFieldConnector
implements com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.BlurHandler

See Also:
Serialized Form

Constructor Summary
SwitchConnector()
           
 
Method Summary
protected  com.google.gwt.user.client.ui.Widget createWidget()
           
 com.vaadin.shared.ui.checkbox.CheckBoxState getState()
           
 VSwitch getWidget()
           
protected  void init()
           
 void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
           
 void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
           
 void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
           
 
Methods inherited from class com.vaadin.client.ui.AbstractFieldConnector
isModified, isReadOnly, isRequired, updateWidgetStyleNames
 
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, 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.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

SwitchConnector

public SwitchConnector()
Method Detail

init

protected void init()
Overrides:
init in class com.vaadin.client.ui.AbstractConnector

getState

public com.vaadin.shared.ui.checkbox.CheckBoxState getState()
Specified by:
getState in interface com.vaadin.client.ComponentConnector
Specified by:
getState in interface com.vaadin.client.ServerConnector
Overrides:
getState in class com.vaadin.client.ui.AbstractFieldConnector

createWidget

protected com.google.gwt.user.client.ui.Widget createWidget()
Overrides:
createWidget in class com.vaadin.client.ui.AbstractComponentConnector

getWidget

public VSwitch getWidget()
Specified by:
getWidget in interface com.vaadin.client.ComponentConnector
Overrides:
getWidget in class com.vaadin.client.ui.AbstractComponentConnector

onStateChanged

public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
Specified by:
onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
Overrides:
onStateChanged in class com.vaadin.client.ui.AbstractComponentConnector

onFocus

public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
Specified by:
onFocus in interface com.google.gwt.event.dom.client.FocusHandler

onBlur

public void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
Specified by:
onBlur in interface com.google.gwt.event.dom.client.BlurHandler


Copyright © 2014 Vaadin Ltd. All rights reserved.