public class ToggleSwitchBase extends com.google.gwt.user.client.ui.Widget implements org.gwtbootstrap3.client.ui.base.HasSize<SizeType>, com.google.gwt.user.client.ui.HasValue<Boolean>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Boolean>, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasVisibility, org.gwtbootstrap3.client.ui.base.HasId, org.gwtbootstrap3.client.ui.base.HasResponsiveness, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<Boolean>>
| Constructor and Description |
|---|
ToggleSwitchBase() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getId() |
String |
getLabelText() |
ColorType |
getOffColor() |
String |
getOffText() |
ColorType |
getOnColor() |
String |
getOnText() |
SizeType |
getSize() |
Boolean |
getValue() |
boolean |
isAnimated() |
boolean |
isEnabled() |
void |
onChange(boolean value) |
protected void |
onLoad() |
protected void |
onUnload() |
void |
setAnimated(boolean animated) |
void |
setEnabled(boolean enabled) |
void |
setHiddenOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize) |
void |
setId(String id) |
void |
setLabelText(String labelText) |
void |
setOffColor(ColorType offColor) |
void |
setOffIcon(org.gwtbootstrap3.client.ui.constants.IconType iconType) |
void |
setOffText(String offText) |
void |
setOnColor(ColorType onColor) |
void |
setOnIcon(org.gwtbootstrap3.client.ui.constants.IconType iconType) |
void |
setOnText(String onText) |
void |
setSize(SizeType size) |
void |
setValue(Boolean value) |
void |
setValue(Boolean value,
boolean fireEvents) |
void |
setVisibleOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize) |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringprotected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetprotected void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic void setVisibleOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
setVisibleOn in interface org.gwtbootstrap3.client.ui.base.HasResponsivenesspublic void setHiddenOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
setHiddenOn in interface org.gwtbootstrap3.client.ui.base.HasResponsivenesspublic void setId(String id)
setId in interface org.gwtbootstrap3.client.ui.base.HasIdpublic String getId()
getId in interface org.gwtbootstrap3.client.ui.base.HasIdpublic boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic SizeType getSize()
getSize in interface org.gwtbootstrap3.client.ui.base.HasSize<SizeType>public void setSize(SizeType size)
setSize in interface org.gwtbootstrap3.client.ui.base.HasSize<SizeType>public ColorType getOnColor()
public void setOnColor(ColorType onColor)
public ColorType getOffColor()
public void setOffColor(ColorType offColor)
public boolean isAnimated()
public void setAnimated(boolean animated)
public String getOnText()
public void setOnText(String onText)
public void setOnIcon(org.gwtbootstrap3.client.ui.constants.IconType iconType)
public String getOffText()
public void setOffText(String offText)
public void setOffIcon(org.gwtbootstrap3.client.ui.constants.IconType iconType)
public String getLabelText()
public void setLabelText(String labelText)
public 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 Boolean getValue()
public void setValue(Boolean value)
public void setValue(Boolean value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<Boolean>public void onChange(boolean value)
Copyright © 2015. All rights reserved.