Interface ValueAndDataTypePopoverView.Presenter
-
- All Superinterfaces:
CanBeClosedByKeyboard,HasCellEditorControls.Editor<HasValueAndTypeRef>,org.jboss.errai.common.client.api.IsElement,PopupEditorControls
- All Known Implementing Classes:
ValueAndDataTypePopoverImpl
- Enclosing interface:
- ValueAndDataTypePopoverView
public static interface ValueAndDataTypePopoverView.Presenter extends HasCellEditorControls.Editor<HasValueAndTypeRef>
Definition of the _presenter_ to edit a domain object implementingHasValueAndTypeRef
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetValueLabel()Returns theStringfor the _value_ label.StringnormaliseValue(String value)Returns a _normalised_ value that can be used to populate the domain model from the value entered by Users.voidsetTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)Sets the domain object typeRef.voidsetValue(String value)Sets the domain object value.-
Methods inherited from interface org.kie.workbench.common.dmn.client.editors.types.CanBeClosedByKeyboard
setOnClosedByKeyboardCallback
-
Methods inherited from interface org.kie.workbench.common.dmn.client.widgets.grid.controls.HasCellEditorControls.Editor
bind
-
Methods inherited from interface org.kie.workbench.common.dmn.client.widgets.grid.controls.PopupEditorControls
getPopoverTitle, hide, show
-
-
-
-
Method Detail
-
setValue
void setValue(String value)
Sets 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}.- Parameters:
value- The non-null value.
-
setTypeRef
void setTypeRef(org.kie.workbench.common.dmn.api.property.dmn.QName typeRef)
Sets the domain object typeRef.- Parameters:
typeRef- The non-null typeRef.
-
getValueLabel
String getValueLabel()
Returns theStringfor the _value_ label.- Returns:
- The non-null label.
-
-