public class Flip extends CheckboxBase<ButtonType> implements IToggleFace<ButtonType>
Modifier | Constructor and Description |
---|---|
|
Flip()
Creates a check box with no label.
|
protected |
Flip(com.google.gwt.dom.client.Element elem) |
|
Flip(com.google.gwt.safehtml.shared.SafeHtml label)
Creates a check box with the specified text label.
|
|
Flip(com.google.gwt.safehtml.shared.SafeHtml label,
com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
Creates a check box with the specified text label.
|
|
Flip(com.google.gwt.safehtml.shared.SafeHtml label,
com.google.gwt.i18n.client.HasDirection.Direction dir)
Creates a check box with the specified text label.
|
|
Flip(String label)
Creates a check box with the specified text label.
|
|
Flip(String label,
boolean asHTML)
Creates a check box with the specified text label.
|
|
Flip(String label,
com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
Creates a label with the specified text and a default direction estimator.
|
|
Flip(String label,
com.google.gwt.i18n.client.HasDirection.Direction dir)
Creates a check box with the specified text label.
|
Modifier and Type | Method and Description |
---|---|
ButtonColor |
getCheckedColor() |
ButtonType |
getFace() |
ButtonColor |
getUncheckedColor() |
void |
setCheckedColor(ButtonColor checked)
Specify the color to be applied when the flip is in the unchecked state.
|
void |
setEnabled(boolean enabled) |
void |
setFace(ButtonType flavor) |
void |
setUncheckedColor(ButtonColor unchecked)
Specify the color to be applied when the flip is in the checked state.
|
void |
setValue(Boolean value)
Checks or unchecks the check box.
|
addValueChangeHandler, asEditor, ensureDomEventHandlers, getContainer, getDirectionEstimator, getFormValue, getHTML, getInput, getLabel, getName, getRipple, getTabIndex, getText, getTextDirection, getToggle, getValue, getWordWrap, isChecked, isEnabled, isUpgraded, onEnsureDebugId, onLoad, onUnload, replaceInputElement, replaceInputElement, setAccessKey, setChecked, setDirectionEstimator, setDirectionEstimator, setFocus, setFormValue, setHTML, setHTML, setName, setRipple, setTabIndex, setText, setText, setValue, setWordWrap, upgrade
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public Flip()
public Flip(com.google.gwt.safehtml.shared.SafeHtml label)
label
- the check box's labelpublic Flip(com.google.gwt.safehtml.shared.SafeHtml label, com.google.gwt.i18n.client.HasDirection.Direction dir)
label
- the check box's labeldir
- the text's direction. Note that DEFAULT
means direction
should be inherited from the widget's parent element.public Flip(com.google.gwt.safehtml.shared.SafeHtml label, com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
label
- the check box's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment.public Flip(String label)
label
- the check box's labelpublic Flip(String label, com.google.gwt.i18n.client.HasDirection.Direction dir)
label
- the check box's labeldir
- the text's direction. Note that DEFAULT
means direction
should be inherited from the widget's parent element.public Flip(String label, com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
label
- the check box's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment.public Flip(String label, boolean asHTML)
label
- the check box's labelasHTML
- true
to treat the specified label as htmlprotected Flip(com.google.gwt.dom.client.Element elem)
elem
- the input elementpublic ButtonType getFace()
getFace
in interface IToggleFace<ButtonType>
public void setFace(ButtonType flavor)
setFace
in interface IToggleFace<ButtonType>
flavor
- the toggle face to be applied.public void setValue(Boolean value)
CheckboxBase
Note that this does not set the value property of the checkbox
input element wrapped by this widget. For access to that property, see
CheckboxBase.setFormValue(String)
setValue
in interface com.google.gwt.user.client.TakesValue<Boolean>
setValue
in interface com.google.gwt.user.client.ui.HasValue<Boolean>
setValue
in class CheckboxBase<ButtonType>
value
- true to check, false to uncheck; null value implies falsepublic void setEnabled(boolean enabled)
setEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
setEnabled
in class CheckboxBase<ButtonType>
public void setCheckedColor(ButtonColor checked)
checked
- the color option to be applied when the flip is checkedpublic ButtonColor getCheckedColor()
public void setUncheckedColor(ButtonColor unchecked)
unchecked
- the color option to be applied when the flip is uncheckedpublic ButtonColor getUncheckedColor()
Copyright © 2016 com.github.ilyes4j. All rights reserved.