@Dependent public class ToggleSwitchEditor extends Object implements com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<Boolean>
Provides an editor for Boolean values using a toggle switch for the view.
It displays the editor errors using a bootstrap tooltip.
Modifier and Type | Class and Description |
---|---|
static interface |
ToggleSwitchEditor.View |
Modifier and Type | Field and Description |
---|---|
ToggleSwitchEditor.View |
view |
Constructor and Description |
---|
ToggleSwitchEditor(ToggleSwitchEditor.View view,
javax.enterprise.event.Event<ValueChangeEvent<Boolean>> valueChangeEvent) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
Boolean |
getValue() |
void |
init() |
void |
setEnabled(boolean isEnabled) |
void |
setValue(Boolean value) |
void |
showErrors(List<com.google.gwt.editor.client.EditorError> errors) |
public ToggleSwitchEditor.View view
@Inject public ToggleSwitchEditor(ToggleSwitchEditor.View view, javax.enterprise.event.Event<ValueChangeEvent<Boolean>> valueChangeEvent)
@PostConstruct public void init()
public void setEnabled(boolean isEnabled)
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
showErrors
in interface com.google.gwt.editor.client.HasEditorErrors<Boolean>
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
public void setValue(Boolean value)
setValue
in interface com.google.gwt.user.client.TakesValue<Boolean>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.