Class ValueAndDataTypePopoverImpl
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.editors.types.ValueAndDataTypePopoverImpl
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.IsElement,CanBeClosedByKeyboard,ValueAndDataTypePopoverView.Presenter,HasCellEditorControls.Editor<HasValueAndTypeRef>,PopupEditorControls
@Dependent public class ValueAndDataTypePopoverImpl extends Object implements ValueAndDataTypePopoverView.Presenter
-
-
Constructor Summary
Constructors Constructor Description ValueAndDataTypePopoverImpl()ValueAndDataTypePopoverImpl(ValueAndDataTypePopoverView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(HasValueAndTypeRef bound, int uiRowIndex, int uiColumnIndex)org.jboss.errai.common.client.dom.HTMLElementgetElement()StringgetPopoverTitle()Returns theStringfor thePopupEditorControlstitle used to to edit properties.StringgetValueLabel()Returns theStringfor the _value_ label.voidhide()Hides thePopupEditorControls.StringnormaliseValue(String value)Returns a _normalised_ value that can be used to populate the domain model from the value entered by Users.voidonDataTypePageNavTabActiveEvent(DataTypePageTabActiveEvent event)voidsetOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback)voidsetTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)Sets the domain object typeRef.voidsetValue(String value)Sets the domain object value.voidshow()Shows thePopupEditorControls.
-
-
-
Constructor Detail
-
ValueAndDataTypePopoverImpl
public ValueAndDataTypePopoverImpl()
-
ValueAndDataTypePopoverImpl
@Inject public ValueAndDataTypePopoverImpl(ValueAndDataTypePopoverView view)
-
-
Method Detail
-
getElement
public org.jboss.errai.common.client.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceorg.jboss.errai.common.client.api.IsElement
-
getPopoverTitle
public String getPopoverTitle()
Description copied from interface:PopupEditorControlsReturns theStringfor thePopupEditorControlstitle used to to edit properties.- Specified by:
getPopoverTitlein interfacePopupEditorControls- Returns:
- null if no title is to be shown.
-
bind
public void bind(HasValueAndTypeRef bound, int uiRowIndex, int uiColumnIndex)
- Specified by:
bindin interfaceHasCellEditorControls.Editor<HasValueAndTypeRef>
-
setValue
public void setValue(String value)
Description copied from interface:ValueAndDataTypePopoverView.PresenterSets the domain object value. TheStringvalue from the UI that has been _normalised_. {@see ValueAndDataTypePopoverView.Presenter#normaliseValue}. The value should be converted to the domain object. {@see HasValueAndTypeRef#toModelValue}.- Specified by:
setValuein interfaceValueAndDataTypePopoverView.Presenter- Parameters:
value- The non-null value.
-
setTypeRef
public void setTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)
Description copied from interface:ValueAndDataTypePopoverView.PresenterSets the domain object typeRef.- Specified by:
setTypeRefin interfaceValueAndDataTypePopoverView.Presenter- Parameters:
typeRef- The non-null typeRef.
-
getValueLabel
public String getValueLabel()
Description copied from interface:ValueAndDataTypePopoverView.PresenterReturns theStringfor the _value_ label.- Specified by:
getValueLabelin interfaceValueAndDataTypePopoverView.Presenter- Returns:
- The non-null label.
-
normaliseValue
public String normaliseValue(String value)
Description copied from interface:ValueAndDataTypePopoverView.PresenterReturns a _normalised_ value that can be used to populate the domain model from the value entered by Users.- Specified by:
normaliseValuein interfaceValueAndDataTypePopoverView.Presenter- Parameters:
value- The value to be normalised.- Returns:
- A normalised value.
-
setOnClosedByKeyboardCallback
public void setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback)
- Specified by:
setOnClosedByKeyboardCallbackin interfaceCanBeClosedByKeyboard
-
show
public void show()
Description copied from interface:PopupEditorControlsShows thePopupEditorControls.- Specified by:
showin interfacePopupEditorControls
-
hide
public void hide()
Description copied from interface:PopupEditorControlsHides thePopupEditorControls.- Specified by:
hidein interfacePopupEditorControls
-
onDataTypePageNavTabActiveEvent
public void onDataTypePageNavTabActiveEvent(@Observes DataTypePageTabActiveEvent event)
-
-