public class FlipSwitch extends SWMMobileWidgetBase implements DragEventsHandler, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Boolean>, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<Boolean>>, com.google.gwt.user.client.ui.HasValue<Boolean>, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasBlurHandlers
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
myEnabled |
protected com.google.gwt.user.client.ui.HTML |
myHtml |
protected boolean |
myValue |
| Constructor and Description |
|---|
FlipSwitch()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragHandler(DragEventsHandler hanlder)
Add a drag handler to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Boolean> handler) |
com.google.gwt.editor.client.LeafValueEditor<Boolean> |
asEditor() |
String |
getOption1()
Gets the Name of the first option.
|
String |
getOption2()
Gets the Name of the second option.
|
Boolean |
getValue() |
boolean |
isEnabled() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onDragEnd(DragEvent e)
When the drag ends
|
void |
onDragMove(DragEvent e)
When the drag is ongoing.
|
void |
onDragStart(DragEvent e)
When the drag starts.
|
void |
onInitialLoad()
When the widget is initially loaded.
|
void |
onLoad() |
void |
onUnload() |
void |
setEnabled(boolean enabled)
Enables/disables the widget.
|
void |
setOption1(String option1)
Gets the Name of the first option.
|
void |
setOption2(String option2)
Sets the Name of the second option.
|
void |
setValue(Boolean value) |
void |
setValue(Boolean value,
boolean fireEvents) |
onTransitionEnd, setSecondaryStyleclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementprotected boolean myEnabled
protected boolean myValue
protected final com.google.gwt.user.client.ui.HTML myHtml
public void onInitialLoad()
SWMMobileWidgetBaseonInitialLoad in interface IsSWMMobileWidgetonInitialLoad in class SWMMobileWidgetBasepublic void onLoad()
onLoad in class SWMMobileWidgetBasepublic void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic void onDragStart(DragEvent e)
DragEventsHandleronDragStart in interface DragEventsHandlere - drag eventpublic void onDragMove(DragEvent e)
DragEventsHandleronDragMove in interface DragEventsHandlere - drag eventpublic void onDragEnd(DragEvent e)
DragEventsHandleronDragEnd in interface DragEventsHandlere - drag eventpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true if enabled.public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Boolean> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Boolean>public com.google.gwt.editor.client.LeafValueEditor<Boolean> asEditor()
asEditor in interface com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<Boolean>>public void setValue(Boolean value)
public void setValue(Boolean value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<Boolean>public Boolean getValue()
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragHandler(DragEventsHandler hanlder)
hanlder - a drag handler.public com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlerspublic com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlerspublic String getOption2()
public void setOption2(String option2)
option2 - the String of the second option.public String getOption1()
public void setOption1(String option1)
option1 - the String of the first option.Copyright © 2011–2015 SWM. All rights reserved.