public class InputClauseColumnHeaderMetaData extends ValueAndDataTypeHeaderMetaData<Text,HasText> implements HasCellEditorControls, HasListSelectorControl
HasCellEditorControls.Editor<T>
HasListSelectorControl.ListSelectorDividerItem, HasListSelectorControl.ListSelectorHeaderItem, HasListSelectorControl.ListSelectorItem, HasListSelectorControl.ListSelectorTextItem
clearValueConsumer, hasTypeRef, hasValue, setTypeRefConsumer, setValueConsumer, translationService
cellEditorControls, editor
Constructor and Description |
---|
InputClauseColumnHeaderMetaData(HasText hasValue,
Supplier<HasTypeRef> hasTypeRef,
Consumer<HasText> clearValueConsumer,
BiConsumer<HasText,Text> setValueConsumer,
BiConsumer<HasTypeRef,QName> setTypeRefConsumer,
org.jboss.errai.ui.client.local.spi.TranslationService translationService,
CellEditorControlsView.Presenter cellEditorControls,
ValueAndDataTypePopoverView.Presenter editor,
ListSelectorView.Presenter listSelector,
BiFunction<Integer,Integer,List<HasListSelectorControl.ListSelectorItem>> listSelectorItemsSupplier,
Consumer<HasListSelectorControl.ListSelectorItem> listSelectorItemConsumer) |
Modifier and Type | Method and Description |
---|---|
String |
getColumnGroup() |
Optional<HasCellEditorControls.Editor> |
getEditor() |
List<HasListSelectorControl.ListSelectorItem> |
getItems(int uiRowIndex,
int uiColumnIndex) |
String |
getPopoverTitle()
Returns the
String for the ValueAndDataTypePopoverView title used to to edit properties. |
Text |
getValue() |
String |
getValueLabel()
Returns the
String for the _value_ label in the ValueAndDataTypePopoverView |
protected boolean |
isEmptyValue(Text value) |
String |
normaliseValue(String componentValue)
Returns a _normalised_ value that can be used to populate the domain model from the value entered by Users.
|
void |
onItemSelected(HasListSelectorControl.ListSelectorItem item) |
Text |
toModelValue(String componentValue)
Converts the value in the UI to the domain model value.
|
String |
toWidgetValue(Text modelValue)
Converts the value in the domain model to the UI value.
|
asDMNModelInstrumentedBase, getHasTypeRefs, getPresenter, getTitle, getTypeRef, render, setTypeRef, setValue
destroyResources, edit, setColumnGroup, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlaceHolder, getSupportedEditAction, renderPlaceHolder
public InputClauseColumnHeaderMetaData(HasText hasValue, Supplier<HasTypeRef> hasTypeRef, Consumer<HasText> clearValueConsumer, BiConsumer<HasText,Text> setValueConsumer, BiConsumer<HasTypeRef,QName> setTypeRefConsumer, org.jboss.errai.ui.client.local.spi.TranslationService translationService, CellEditorControlsView.Presenter cellEditorControls, ValueAndDataTypePopoverView.Presenter editor, ListSelectorView.Presenter listSelector, BiFunction<Integer,Integer,List<HasListSelectorControl.ListSelectorItem>> listSelectorItemsSupplier, Consumer<HasListSelectorControl.ListSelectorItem> listSelectorItemConsumer)
protected boolean isEmptyValue(Text value)
isEmptyValue
in class ValueAndDataTypeHeaderMetaData<Text,HasText>
public Text toModelValue(String componentValue)
HasValueAndTypeRef
toModelValue
in interface HasValueAndTypeRef<Text>
public String toWidgetValue(Text modelValue)
HasValueAndTypeRef
toWidgetValue
in interface HasValueAndTypeRef<Text>
public String getValueLabel()
HasValueAndTypeRef
String
for the _value_ label in the ValueAndDataTypePopoverView
getValueLabel
in interface HasValueAndTypeRef<Text>
public String normaliseValue(String componentValue)
HasValueAndTypeRef
normaliseValue
in interface HasValueAndTypeRef<Text>
public String getColumnGroup()
getColumnGroup
in interface org.uberfire.ext.wires.core.grids.client.model.GridColumn.HeaderMetaData
public String getPopoverTitle()
HasValueAndTypeRef
String
for the ValueAndDataTypePopoverView
title used to to edit properties.getPopoverTitle
in interface HasValueAndTypeRef<Text>
public Optional<HasCellEditorControls.Editor> getEditor()
getEditor
in interface HasCellEditorControls
public List<HasListSelectorControl.ListSelectorItem> getItems(int uiRowIndex, int uiColumnIndex)
getItems
in interface HasListSelectorControl
public void onItemSelected(HasListSelectorControl.ListSelectorItem item)
onItemSelected
in interface HasListSelectorControl
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.