Class SmallSwitchComponentView
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.editors.types.listview.common.SmallSwitchComponentView
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.jboss.errai.ui.client.local.api.elemental2.IsElement,SmallSwitchComponent.View,org.uberfire.client.mvp.HasPresenter<SmallSwitchComponent>,org.uberfire.client.mvp.UberElemental<SmallSwitchComponent>
@Dependent @Templated public class SmallSwitchComponentView extends Object implements SmallSwitchComponent.View
-
-
Constructor Summary
Constructors Constructor Description SmallSwitchComponentView(elemental2.dom.HTMLInputElement inputCheckbox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetValue()voidinit(SmallSwitchComponent presenter)voidonInputCheckBoxChange(com.google.gwt.event.dom.client.ChangeEvent e)voidsetOnValueChanged(Consumer<Boolean> onValueChanged)voidsetValue(boolean value)
-
-
-
Method Detail
-
init
public void init(SmallSwitchComponent presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<SmallSwitchComponent>
-
onInputCheckBoxChange
@EventHandler("input-checkbox") public void onInputCheckBoxChange(com.google.gwt.event.dom.client.ChangeEvent e)
-
getValue
public boolean getValue()
- Specified by:
getValuein interfaceSmallSwitchComponent.View
-
setValue
public void setValue(boolean value)
- Specified by:
setValuein interfaceSmallSwitchComponent.View
-
setOnValueChanged
public void setOnValueChanged(Consumer<Boolean> onValueChanged)
- Specified by:
setOnValueChangedin interfaceSmallSwitchComponent.View
-
-