Package org.jbpm.designer.client.popup
Class AssignmentListItemWidgetViewImpl
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.jbpm.designer.client.popup.AssignmentListItemWidgetViewImpl
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,org.jboss.errai.ui.client.widget.HasModel<AssignmentRow>,AssignmentListItemWidgetView,ComboBoxView.ModelPresenter
@Templated("ActivityDataIOEditorWidget.html#assignment") public class AssignmentListItemWidgetViewImpl extends com.google.gwt.user.client.ui.Composite implements AssignmentListItemWidgetView, ComboBoxView.ModelPresenterA templated widget that will be used to display a row in a table ofAssignmentRows.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.errai.databinding.client.api.DataBinder<AssignmentRow>assignmentErrai's data binding module will automatically bind the provided instance of the model (seesetModel(AssignmentRow)) to all fields annotated withBound.protected org.gwtbootstrap3.client.ui.TextBoxconstantprotected org.gwtbootstrap3.client.ui.TextBoxcustomDataTypeprotected org.gwtbootstrap3.client.ui.ValueListBox<String>dataTypeprotected ComboBoxdataTypeComboBoxprotected org.gwtbootstrap3.client.ui.ButtondeleteButtonprotected DataIOEditorNameTextBoxnameprotected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>notificationprotected org.gwtbootstrap3.client.ui.ValueListBox<String>processVarprotected ListBoxValuesprocessVarListBoxValues-
Fields inherited from interface org.jbpm.designer.client.popup.AssignmentListItemWidgetView
CONSTANT_PROMPT, CUSTOM_PROMPT, ENTER_CONSTANT_PROMPT, ENTER_TYPE_PROMPT
-
-
Constructor Summary
Constructors Constructor Description AssignmentListItemWidgetViewImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConstant()StringgetCustomDataType()StringgetDataType()AssignmentRowgetModel()StringgetModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox)StringgetProcessVar()Variable.VariableTypegetVariableType()voidhandleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e)voidinit()booleanisDuplicateName(String name)voidsetAllowDuplicateNames(boolean allowDuplicateNames, String duplicateNameErrorMessage)voidsetConstant(String constant)voidsetCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties)voidsetCustomDataType(String customDataType)voidsetDataType(String dataType)voidsetDataTypes(ListBoxValues dataTypeListBoxValues)voidsetDisallowedNames(Set<String> disallowedNames, String disallowedNameErrorMessage)voidsetListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, String value)voidsetModel(AssignmentRow model)voidsetParentWidget(ActivityDataIOEditorWidget parentWidget)voidsetProcessVar(String processVar)voidsetProcessVariables(ListBoxValues processVarListBoxValues)voidsetShowConstants(boolean showConstants)voidsetTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox, String value)-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
-
-
-
Field Detail
-
assignment
@Inject @AutoBound protected org.jboss.errai.databinding.client.api.DataBinder<AssignmentRow> assignment
Errai's data binding module will automatically bind the provided instance of the model (seesetModel(AssignmentRow)) to all fields annotated withBound. 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")
-
name
@Inject @Bound @DataField protected DataIOEditorNameTextBox name
-
processVarListBoxValues
protected ListBoxValues processVarListBoxValues
-
dataType
@DataField protected org.gwtbootstrap3.client.ui.ValueListBox<String> dataType
-
customDataType
@Inject @DataField protected org.gwtbootstrap3.client.ui.TextBox customDataType
-
processVar
@DataField protected org.gwtbootstrap3.client.ui.ValueListBox<String> processVar
-
dataTypeComboBox
@Inject protected ComboBox dataTypeComboBox
-
notification
@Inject protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification
-
constant
@Inject @DataField protected org.gwtbootstrap3.client.ui.TextBox constant
-
deleteButton
@Inject @DataField protected org.gwtbootstrap3.client.ui.Button deleteButton
-
-
Method Detail
-
setParentWidget
public void setParentWidget(ActivityDataIOEditorWidget parentWidget)
- Specified by:
setParentWidgetin interfaceAssignmentListItemWidgetView
-
setTextBoxModelValue
public void setTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox, String value)- Specified by:
setTextBoxModelValuein interfaceComboBoxView.ModelPresenter
-
setListBoxModelValue
public void setListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, String value)
- Specified by:
setListBoxModelValuein interfaceComboBoxView.ModelPresenter
-
getModelValue
public String getModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox)
- Specified by:
getModelValuein interfaceComboBoxView.ModelPresenter
-
init
@PostConstruct public void init()
- Specified by:
initin interfaceAssignmentListItemWidgetView
-
getModel
public AssignmentRow getModel()
- Specified by:
getModelin interfaceorg.jboss.errai.ui.client.widget.HasModel<AssignmentRow>
-
setModel
public void setModel(AssignmentRow model)
- Specified by:
setModelin interfaceorg.jboss.errai.ui.client.widget.HasModel<AssignmentRow>
-
getVariableType
public Variable.VariableType getVariableType()
- Specified by:
getVariableTypein interfaceAssignmentListItemWidgetView
-
getDataType
public String getDataType()
- Specified by:
getDataTypein interfaceAssignmentListItemWidgetView
-
setDataType
public void setDataType(String dataType)
- Specified by:
setDataTypein interfaceAssignmentListItemWidgetView
-
getCustomDataType
public String getCustomDataType()
- Specified by:
getCustomDataTypein interfaceAssignmentListItemWidgetView
-
setCustomDataType
public void setCustomDataType(String customDataType)
- Specified by:
setCustomDataTypein interfaceAssignmentListItemWidgetView
-
getProcessVar
public String getProcessVar()
- Specified by:
getProcessVarin interfaceAssignmentListItemWidgetView
-
setProcessVar
public void setProcessVar(String processVar)
- Specified by:
setProcessVarin interfaceAssignmentListItemWidgetView
-
getConstant
public String getConstant()
- Specified by:
getConstantin interfaceAssignmentListItemWidgetView
-
setConstant
public void setConstant(String constant)
- Specified by:
setConstantin interfaceAssignmentListItemWidgetView
-
setDataTypes
public void setDataTypes(ListBoxValues dataTypeListBoxValues)
- Specified by:
setDataTypesin interfaceAssignmentListItemWidgetView
-
setProcessVariables
public void setProcessVariables(ListBoxValues processVarListBoxValues)
- Specified by:
setProcessVariablesin interfaceAssignmentListItemWidgetView
-
setShowConstants
public void setShowConstants(boolean showConstants)
- Specified by:
setShowConstantsin interfaceAssignmentListItemWidgetView
-
setDisallowedNames
public void setDisallowedNames(Set<String> disallowedNames, String disallowedNameErrorMessage)
- Specified by:
setDisallowedNamesin interfaceAssignmentListItemWidgetView
-
setCustomAssignmentsProperties
public void setCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties)
- Specified by:
setCustomAssignmentsPropertiesin interfaceAssignmentListItemWidgetView
-
setAllowDuplicateNames
public void setAllowDuplicateNames(boolean allowDuplicateNames, String duplicateNameErrorMessage)- Specified by:
setAllowDuplicateNamesin interfaceAssignmentListItemWidgetView
-
isDuplicateName
public boolean isDuplicateName(String name)
- Specified by:
isDuplicateNamein interfaceAssignmentListItemWidgetView
-
handleDeleteButton
@EventHandler("deleteButton") public void handleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e)
-
-