Class ValueAndDataTypePopoverViewImpl
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.widgets.grid.controls.popover.AbstractPopoverViewImpl
-
- org.kie.workbench.common.dmn.client.editors.types.ValueAndDataTypePopoverViewImpl
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.IsElement,org.jboss.errai.ui.client.local.api.IsElement,CanBeClosedByKeyboard,ValueAndDataTypePopoverView,PopoverView,org.uberfire.client.mvp.HasPresenter<ValueAndDataTypePopoverView.Presenter>,org.uberfire.client.mvp.UberElement<ValueAndDataTypePopoverView.Presenter>
@Templated @Dependent public class ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.workbench.common.dmn.client.editors.types.ValueAndDataTypePopoverView
ValueAndDataTypePopoverView.Presenter
-
-
Field Summary
-
Fields inherited from class org.kie.workbench.common.dmn.client.widgets.grid.controls.popover.AbstractPopoverViewImpl
closedByKeyboardCallback, closedByKeyboardEventListener, isVisible, jQueryPopover, popover, popoverContentElement, popoverElement
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.workbench.common.dmn.api.property.dmn.QNamegetCurrentTypeRef()StringgetCurrentValue()protected org.jboss.errai.common.client.dom.EventListenergetKeyDownEventListener()voidhide()voidhide(boolean applyChanges)voidinit(ValueAndDataTypePopoverView.Presenter presenter)voidinitSelectedTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)Initialises the UI _typeRef_ editor content.voidinitValue(String value)Initialises the UI _value_ editor content.protected voidonShownFocus()voidonValueEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)voidreset()Reset the the Popover to it's _initial_ state when first shown.voidsetDMNModel(org.kie.workbench.common.dmn.api.definition.model.DMNModelInstrumentedBase dmnModel)Initialises the UI for the domain object.protected voidsetKeyDownListeners()voidshow(Optional<String> popoverTitle)-
Methods inherited from class org.kie.workbench.common.dmn.client.widgets.grid.controls.popover.AbstractPopoverViewImpl
clearKeyDownListeners, getClosedByKeyboardCallback, isEnterKeyPressed, isEscapeKeyPressed, isVisible, keyDownEventListener, onClosedByKeyboard, setOnClosedByKeyboardCallback
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.dmn.client.editors.types.CanBeClosedByKeyboard
setOnClosedByKeyboardCallback
-
-
-
-
Constructor Detail
-
ValueAndDataTypePopoverViewImpl
public ValueAndDataTypePopoverViewImpl()
-
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)
-
-
Method Detail
-
init
public void init(ValueAndDataTypePopoverView.Presenter presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<ValueAndDataTypePopoverView.Presenter>
-
getCurrentValue
public String getCurrentValue()
-
getCurrentTypeRef
public org.kie.workbench.common.dmn.api.property.dmn.QName getCurrentTypeRef()
-
setKeyDownListeners
protected void setKeyDownListeners()
- Overrides:
setKeyDownListenersin classAbstractPopoverViewImpl
-
getKeyDownEventListener
protected org.jboss.errai.common.client.dom.EventListener getKeyDownEventListener()
- Overrides:
getKeyDownEventListenerin classAbstractPopoverViewImpl
-
setDMNModel
public void setDMNModel(org.kie.workbench.common.dmn.api.definition.model.DMNModelInstrumentedBase dmnModel)
Description copied from interface:ValueAndDataTypePopoverViewInitialises the UI for the domain object.- Specified by:
setDMNModelin interfaceValueAndDataTypePopoverView- Parameters:
dmnModel- The DMN domain object.
-
initValue
public void initValue(String value)
Description copied from interface:ValueAndDataTypePopoverViewInitialises the UI _value_ editor content. The value should be converted toStringfrom the domain object. {@see HasValueAndTypeRef#toWidgetValue}.- Specified by:
initValuein interfaceValueAndDataTypePopoverView- Parameters:
value- The value to set in the UI.
-
initSelectedTypeRef
public void initSelectedTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)
Description copied from interface:ValueAndDataTypePopoverViewInitialises the UI _typeRef_ editor content.- Specified by:
initSelectedTypeRefin interfaceValueAndDataTypePopoverView- Parameters:
typeRef- The typeRef to set in the UI.
-
show
public void show(Optional<String> popoverTitle)
- Specified by:
showin interfacePopoverView- Overrides:
showin classAbstractPopoverViewImpl
-
onShownFocus
protected void onShownFocus()
- Overrides:
onShownFocusin classAbstractPopoverViewImpl
-
hide
public void hide()
- Specified by:
hidein interfacePopoverView- Overrides:
hidein classAbstractPopoverViewImpl
-
hide
public void hide(boolean applyChanges)
-
reset
public void reset()
Description copied from interface:PopoverViewReset the the Popover to it's _initial_ state when first shown. No operation by default.- Specified by:
resetin interfacePopoverView
-
onValueEditorKeyDown
@EventHandler("valueEditor") public void onValueEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
-
-