@Templated @Dependent public class ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView
ValueAndDataTypePopoverView.Presenter
closedByKeyboardCallback, 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, setOnClosedByKeyboardCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setOnClosedByKeyboardCallback
public 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 AbstractPopoverViewImpl
protected org.jboss.errai.common.client.dom.EventListener getKeyDownEventListener()
getKeyDownEventListener
in class AbstractPopoverViewImpl
public void setDMNModel(DMNModelInstrumentedBase dmnModel)
ValueAndDataTypePopoverView
setDMNModel
in interface ValueAndDataTypePopoverView
dmnModel
- The DMN domain object.public void initValue(String value)
ValueAndDataTypePopoverView
String
from the
domain object. HasValueAndTypeRef.toWidgetValue(V)
.initValue
in interface ValueAndDataTypePopoverView
value
- The value to set in the UI.public void initSelectedTypeRef(QName typeRef)
ValueAndDataTypePopoverView
initSelectedTypeRef
in interface ValueAndDataTypePopoverView
typeRef
- The typeRef to set in the UI.public void show(Optional<String> popoverTitle)
show
in interface PopoverView
show
in class AbstractPopoverViewImpl
protected void onShownFocus()
onShownFocus
in class AbstractPopoverViewImpl
public void hide()
hide
in interface PopoverView
hide
in class AbstractPopoverViewImpl
public void hide(boolean applyChanges)
public void reset()
PopoverView
reset
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.