@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.IsElement
public String getPopoverTitle()
PopupEditorControls
String
for the PopupEditorControls
title used to to edit properties.getPopoverTitle
in interface PopupEditorControls
public void bind(HasValueAndTypeRef bound, int uiRowIndex, int uiColumnIndex)
bind
in interface HasCellEditorControls.Editor<HasValueAndTypeRef>
public void setValue(String value)
ValueAndDataTypePopoverView.Presenter
String
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.Presenter
value
- The non-null value.public void setTypeRef(QName typeRef)
ValueAndDataTypePopoverView.Presenter
setTypeRef
in interface ValueAndDataTypePopoverView.Presenter
typeRef
- The non-null typeRef.public String getValueLabel()
ValueAndDataTypePopoverView.Presenter
String
for the _value_ label.getValueLabel
in interface ValueAndDataTypePopoverView.Presenter
public String normaliseValue(String value)
ValueAndDataTypePopoverView.Presenter
normaliseValue
in interface ValueAndDataTypePopoverView.Presenter
value
- The value to be normalised.public void setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback)
setOnClosedByKeyboardCallback
in interface CanBeClosedByKeyboard
public void show()
PopupEditorControls
PopupEditorControls
.show
in interface PopupEditorControls
public void hide()
PopupEditorControls
PopupEditorControls
.hide
in interface PopupEditorControls
public void onDataTypePageNavTabActiveEvent(@Observes DataTypePageTabActiveEvent event)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.