Class KieDropdownElementView.Item<T>
- java.lang.Object
-
- org.kie.workbench.common.screens.library.client.settings.util.dropdown.KieDropdownElementView.Item<T>
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.jboss.errai.ui.client.local.api.elemental2.IsElement,org.kie.workbench.common.widgets.client.widget.ListItemView<KieDropdownElement.ItemElement<T>>,org.uberfire.client.mvp.HasPresenter<KieDropdownElement.ItemElement<T>>,org.uberfire.client.mvp.UberElemental<KieDropdownElement.ItemElement<T>>
- Enclosing class:
- KieDropdownElementView
@Templated("KieDropdownElementView.html") public static class KieDropdownElementView.Item<T> extends Object implements org.kie.workbench.common.widgets.client.widget.ListItemView<KieDropdownElement.ItemElement<T>>, org.jboss.errai.ui.client.local.api.elemental2.IsElement
-
-
Constructor Summary
Constructors Constructor Description Item()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementgetElement()voidinit(KieDropdownElement.ItemElement<T> presenter)voidonActionClicked(elemental2.dom.MouseEvent e)voidonOptionClicked(elemental2.dom.MouseEvent e)voidsetLabel(String label)voidsetStatus(KieDropdownElement.Item.Status status)
-
-
-
Method Detail
-
onOptionClicked
@EventHandler("option-link") public void onOptionClicked(@ForEvent("click") elemental2.dom.MouseEvent e)
-
onActionClicked
@EventHandler("action-link") public void onActionClicked(@ForEvent("click") elemental2.dom.MouseEvent e)
-
init
public void init(KieDropdownElement.ItemElement<T> presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<T>
-
setLabel
public void setLabel(String label)
-
setStatus
public void setStatus(KieDropdownElement.Item.Status status)
-
getElement
public elemental2.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceorg.jboss.errai.common.client.api.elemental2.IsElement- Specified by:
getElementin interfaceorg.jboss.errai.ui.client.local.api.elemental2.IsElement
-
-