@Templated @Dependent public class ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView
ValueAndDataTypePopoverView.PresenterclosedByKeyboardCallback, closedByKeyboardEventListener, isVisible, jQueryPopover, popover, popoverContentElement, popoverElement| Constructor and Description |
|---|
ValueAndDataTypePopoverViewImpl() |
ValueAndDataTypePopoverViewImpl(org.jboss.errai.common.client.dom.Input valueEditor,
DataTypePickerWidget typeRefEditor,
org.jboss.errai.common.client.dom.Div popoverElement,
org.jboss.errai.common.client.dom.Div popoverContentElement,
org.jboss.errai.common.client.dom.Span valueLabel,
org.jboss.errai.common.client.dom.Span dataTypeLabel,
org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> jQueryPopover,
org.jboss.errai.ui.client.local.spi.TranslationService translationService) |
| Modifier and Type | Method and Description |
|---|---|
QName |
getCurrentTypeRef() |
String |
getCurrentValue() |
protected org.jboss.errai.common.client.dom.EventListener |
getKeyDownEventListener() |
void |
hide() |
void |
hide(boolean applyChanges) |
void |
init(ValueAndDataTypePopoverView.Presenter presenter) |
void |
initSelectedTypeRef(QName typeRef)
Initialises the UI _typeRef_ editor content.
|
void |
initValue(String value)
Initialises the UI _value_ editor content.
|
protected void |
onShownFocus() |
void |
onValueEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
void |
reset()
Reset the the Popover to it's _initial_ state when first shown.
|
void |
setDMNModel(DMNModelInstrumentedBase dmnModel)
Initialises the UI for the domain object.
|
protected void |
setKeyDownListeners() |
void |
show(Optional<String> popoverTitle) |
clearKeyDownListeners, getClosedByKeyboardCallback, isEnterKeyPressed, isEscapeKeyPressed, isVisible, keyDownEventListener, onClosedByKeyboard, setOnClosedByKeyboardCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOnClosedByKeyboardCallbackpublic ValueAndDataTypePopoverViewImpl()
@Inject
public ValueAndDataTypePopoverViewImpl(org.jboss.errai.common.client.dom.Input valueEditor,
DataTypePickerWidget typeRefEditor,
org.jboss.errai.common.client.dom.Div popoverElement,
org.jboss.errai.common.client.dom.Div popoverContentElement,
org.jboss.errai.common.client.dom.Span valueLabel,
org.jboss.errai.common.client.dom.Span dataTypeLabel,
org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> jQueryPopover,
org.jboss.errai.ui.client.local.spi.TranslationService translationService)
public void init(ValueAndDataTypePopoverView.Presenter presenter)
init in interface org.uberfire.client.mvp.HasPresenter<ValueAndDataTypePopoverView.Presenter>public String getCurrentValue()
public QName getCurrentTypeRef()
protected void setKeyDownListeners()
setKeyDownListeners in class AbstractPopoverViewImplprotected org.jboss.errai.common.client.dom.EventListener getKeyDownEventListener()
getKeyDownEventListener in class AbstractPopoverViewImplpublic void setDMNModel(DMNModelInstrumentedBase dmnModel)
ValueAndDataTypePopoverViewsetDMNModel in interface ValueAndDataTypePopoverViewdmnModel - The DMN domain object.public void initValue(String value)
ValueAndDataTypePopoverViewString from the
domain object. HasValueAndTypeRef.toWidgetValue(V).initValue in interface ValueAndDataTypePopoverViewvalue - The value to set in the UI.public void initSelectedTypeRef(QName typeRef)
ValueAndDataTypePopoverViewinitSelectedTypeRef in interface ValueAndDataTypePopoverViewtypeRef - The typeRef to set in the UI.public void show(Optional<String> popoverTitle)
show in interface PopoverViewshow in class AbstractPopoverViewImplprotected void onShownFocus()
onShownFocus in class AbstractPopoverViewImplpublic void hide()
hide in interface PopoverViewhide in class AbstractPopoverViewImplpublic void hide(boolean applyChanges)
public void reset()
PopoverViewreset in interface PopoverView@EventHandler(value="valueEditor") public void onValueEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.