@Templated(value="ActivityDataIOEditorWidget.html#assignment") public class AssignmentListItemWidgetViewImpl extends com.google.gwt.user.client.ui.Composite implements AssignmentListItemWidgetView, ComboBoxView.ModelPresenter
AssignmentRows.
The Name field of AssignmentRow is Bound, but other fields are not bound because they use a combination of ListBox and TextBox to implement a drop-down combo to hold the values.
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.errai.databinding.client.api.DataBinder<AssignmentRow> |
assignment
Errai's data binding module will automatically bind the provided instance
of the model (see
setModel(AssignmentRow)) to all fields annotated
with Bound. |
protected org.gwtbootstrap3.client.ui.TextBox |
constant |
protected org.gwtbootstrap3.client.ui.TextBox |
customDataType |
protected org.gwtbootstrap3.client.ui.ValueListBox<String> |
dataType |
protected ComboBox |
dataTypeComboBox |
protected org.gwtbootstrap3.client.ui.Button |
deleteButton |
protected DataIOEditorNameTextBox |
name |
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> |
notification |
protected org.gwtbootstrap3.client.ui.ValueListBox<String> |
processVar |
protected ListBoxValues |
processVarListBoxValues |
CONSTANT_PROMPT, CUSTOM_PROMPT, ENTER_CONSTANT_PROMPT, ENTER_TYPE_PROMPT| Constructor and Description |
|---|
AssignmentListItemWidgetViewImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConstant() |
String |
getCustomDataType() |
String |
getDataType() |
AssignmentRow |
getModel() |
String |
getModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox) |
String |
getProcessVar() |
Variable.VariableType |
getVariableType() |
void |
handleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e) |
void |
init() |
boolean |
isDuplicateName(String name) |
void |
setAllowDuplicateNames(boolean allowDuplicateNames,
String duplicateNameErrorMessage) |
void |
setConstant(String constant) |
void |
setCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties) |
void |
setCustomDataType(String customDataType) |
void |
setDataType(String dataType) |
void |
setDataTypes(ListBoxValues dataTypeListBoxValues) |
void |
setDisallowedNames(Set<String> disallowedNames,
String disallowedNameErrorMessage) |
void |
setListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox,
String value) |
void |
setModel(AssignmentRow model) |
void |
setParentWidget(ActivityDataIOEditorWidget parentWidget) |
void |
setProcessVar(String processVar) |
void |
setProcessVariables(ListBoxValues processVarListBoxValues) |
void |
setShowConstants(boolean showConstants) |
void |
setTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox,
String value) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@Inject @AutoBound protected org.jboss.errai.databinding.client.api.DataBinder<AssignmentRow> assignment
setModel(AssignmentRow)) to all fields annotated
with Bound. If not specified otherwise, the bindings occur based on
matching field names (e.g. assignment.name will automatically be kept in
sync with the data-field "name")@Inject @Bound @DataField protected DataIOEditorNameTextBox name
protected ListBoxValues processVarListBoxValues
@DataField protected org.gwtbootstrap3.client.ui.ValueListBox<String> dataType
@Inject @DataField protected org.gwtbootstrap3.client.ui.TextBox customDataType
@DataField protected org.gwtbootstrap3.client.ui.ValueListBox<String> processVar
@Inject protected ComboBox dataTypeComboBox
@Inject protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification
@Inject @DataField protected org.gwtbootstrap3.client.ui.TextBox constant
@Inject @DataField protected org.gwtbootstrap3.client.ui.Button deleteButton
public void setParentWidget(ActivityDataIOEditorWidget parentWidget)
setParentWidget in interface AssignmentListItemWidgetViewpublic void setTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox,
String value)
setTextBoxModelValue in interface ComboBoxView.ModelPresenterpublic void setListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, String value)
setListBoxModelValue in interface ComboBoxView.ModelPresenterpublic String getModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox)
getModelValue in interface ComboBoxView.ModelPresenter@PostConstruct public void init()
init in interface AssignmentListItemWidgetViewpublic AssignmentRow getModel()
getModel in interface org.jboss.errai.ui.client.widget.HasModel<AssignmentRow>public void setModel(AssignmentRow model)
setModel in interface org.jboss.errai.ui.client.widget.HasModel<AssignmentRow>public Variable.VariableType getVariableType()
getVariableType in interface AssignmentListItemWidgetViewpublic String getDataType()
getDataType in interface AssignmentListItemWidgetViewpublic void setDataType(String dataType)
setDataType in interface AssignmentListItemWidgetViewpublic String getCustomDataType()
getCustomDataType in interface AssignmentListItemWidgetViewpublic void setCustomDataType(String customDataType)
setCustomDataType in interface AssignmentListItemWidgetViewpublic String getProcessVar()
getProcessVar in interface AssignmentListItemWidgetViewpublic void setProcessVar(String processVar)
setProcessVar in interface AssignmentListItemWidgetViewpublic String getConstant()
getConstant in interface AssignmentListItemWidgetViewpublic void setConstant(String constant)
setConstant in interface AssignmentListItemWidgetViewpublic void setDataTypes(ListBoxValues dataTypeListBoxValues)
setDataTypes in interface AssignmentListItemWidgetViewpublic void setProcessVariables(ListBoxValues processVarListBoxValues)
setProcessVariables in interface AssignmentListItemWidgetViewpublic void setShowConstants(boolean showConstants)
setShowConstants in interface AssignmentListItemWidgetViewpublic void setDisallowedNames(Set<String> disallowedNames, String disallowedNameErrorMessage)
setDisallowedNames in interface AssignmentListItemWidgetViewpublic void setCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties)
setCustomAssignmentsProperties in interface AssignmentListItemWidgetViewpublic void setAllowDuplicateNames(boolean allowDuplicateNames,
String duplicateNameErrorMessage)
setAllowDuplicateNames in interface AssignmentListItemWidgetViewpublic boolean isDuplicateName(String name)
isDuplicateName in interface AssignmentListItemWidgetView@EventHandler(value="deleteButton") public void handleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.