@Dependent public class ValueAndDataTypePopoverImpl extends Object implements ValueAndDataTypePopoverView.Presenter
| Constructor and Description |
|---|
ValueAndDataTypePopoverImpl() |
ValueAndDataTypePopoverImpl(ValueAndDataTypePopoverView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(HasValueAndTypeRef bound,
int uiRowIndex,
int uiColumnIndex) |
org.jboss.errai.common.client.dom.HTMLElement |
getElement() |
String |
getPopoverTitle()
Returns the
String for the PopupEditorControls title used to to edit properties. |
String |
getValueLabel()
Returns the
String for the _value_ label. |
void |
hide()
Hides the
PopupEditorControls. |
String |
normaliseValue(String value)
Returns a _normalised_ value that can be used to populate the domain model from the value entered by Users.
|
void |
onDataTypePageNavTabActiveEvent(DataTypePageTabActiveEvent event) |
void |
setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback) |
void |
setTypeRef(QName typeRef)
Sets the domain object typeRef.
|
void |
setValue(String value)
Sets the domain object value.
|
void |
show()
Shows the
PopupEditorControls. |
public ValueAndDataTypePopoverImpl()
@Inject public ValueAndDataTypePopoverImpl(ValueAndDataTypePopoverView view)
public org.jboss.errai.common.client.dom.HTMLElement getElement()
getElement in interface org.jboss.errai.common.client.api.IsElementpublic String getPopoverTitle()
PopupEditorControlsString for the PopupEditorControls title used to to edit properties.getPopoverTitle in interface PopupEditorControlspublic void bind(HasValueAndTypeRef bound, int uiRowIndex, int uiColumnIndex)
bind in interface HasCellEditorControls.Editor<HasValueAndTypeRef>public void setValue(String value)
ValueAndDataTypePopoverView.PresenterString value from the UI that has been _normalised_.
ValueAndDataTypePopoverView.Presenter.normaliseValue(java.lang.String). The value should be converted to the domain
object. HasValueAndTypeRef.toModelValue(java.lang.String).setValue in interface ValueAndDataTypePopoverView.Presentervalue - The non-null value.public void setTypeRef(QName typeRef)
ValueAndDataTypePopoverView.PresentersetTypeRef in interface ValueAndDataTypePopoverView.PresentertypeRef - The non-null typeRef.public String getValueLabel()
ValueAndDataTypePopoverView.PresenterString for the _value_ label.getValueLabel in interface ValueAndDataTypePopoverView.Presenterpublic String normaliseValue(String value)
ValueAndDataTypePopoverView.PresenternormaliseValue in interface ValueAndDataTypePopoverView.Presentervalue - The value to be normalised.public void setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback)
setOnClosedByKeyboardCallback in interface CanBeClosedByKeyboardpublic void show()
PopupEditorControlsPopupEditorControls.show in interface PopupEditorControlspublic void hide()
PopupEditorControlsPopupEditorControls.hide in interface PopupEditorControlspublic void onDataTypePageNavTabActiveEvent(@Observes
DataTypePageTabActiveEvent event)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.