@Templated(value="ActivityDataIOEditorWidget.html#assignment") public class AssignmentListItemWidgetViewImpl extends com.google.gwt.user.client.ui.Composite implements AssignmentListItemWidgetView, ComboBoxView.ModelPresenter
AssignmentRow
s.
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, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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 AssignmentListItemWidgetView
public void setTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox, String value)
setTextBoxModelValue
in interface ComboBoxView.ModelPresenter
public void setListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, String value)
setListBoxModelValue
in interface ComboBoxView.ModelPresenter
public String getModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox)
getModelValue
in interface ComboBoxView.ModelPresenter
@PostConstruct public void init()
init
in interface AssignmentListItemWidgetView
public 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 AssignmentListItemWidgetView
public String getDataType()
getDataType
in interface AssignmentListItemWidgetView
public void setDataType(String dataType)
setDataType
in interface AssignmentListItemWidgetView
public String getCustomDataType()
getCustomDataType
in interface AssignmentListItemWidgetView
public void setCustomDataType(String customDataType)
setCustomDataType
in interface AssignmentListItemWidgetView
public String getProcessVar()
getProcessVar
in interface AssignmentListItemWidgetView
public void setProcessVar(String processVar)
setProcessVar
in interface AssignmentListItemWidgetView
public String getConstant()
getConstant
in interface AssignmentListItemWidgetView
public void setConstant(String constant)
setConstant
in interface AssignmentListItemWidgetView
public void setDataTypes(ListBoxValues dataTypeListBoxValues)
setDataTypes
in interface AssignmentListItemWidgetView
public void setProcessVariables(ListBoxValues processVarListBoxValues)
setProcessVariables
in interface AssignmentListItemWidgetView
public void setShowConstants(boolean showConstants)
setShowConstants
in interface AssignmentListItemWidgetView
public void setDisallowedNames(Set<String> disallowedNames, String disallowedNameErrorMessage)
setDisallowedNames
in interface AssignmentListItemWidgetView
public void setCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties)
setCustomAssignmentsProperties
in interface AssignmentListItemWidgetView
public void setAllowDuplicateNames(boolean allowDuplicateNames, String duplicateNameErrorMessage)
setAllowDuplicateNames
in interface AssignmentListItemWidgetView
public boolean isDuplicateName(String name)
isDuplicateName
in interface AssignmentListItemWidgetView
@EventHandler(value="deleteButton") public void handleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.