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.ModelPresenter
A templated widget that will be used to display a row in a table ofAssignmentRow
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.
-
-
Field Summary
Fields Modifier and Type Field 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 (seesetModel(AssignmentRow)
) to all fields annotated withBound
.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
-
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 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)
-
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:
setParentWidget
in interfaceAssignmentListItemWidgetView
-
setTextBoxModelValue
public void setTextBoxModelValue(org.gwtbootstrap3.client.ui.TextBox textBox, String value)
- Specified by:
setTextBoxModelValue
in interfaceComboBoxView.ModelPresenter
-
setListBoxModelValue
public void setListBoxModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox, String value)
- Specified by:
setListBoxModelValue
in interfaceComboBoxView.ModelPresenter
-
getModelValue
public String getModelValue(org.gwtbootstrap3.client.ui.ValueListBox<String> listBox)
- Specified by:
getModelValue
in interfaceComboBoxView.ModelPresenter
-
init
@PostConstruct public void init()
- Specified by:
init
in interfaceAssignmentListItemWidgetView
-
getModel
public AssignmentRow getModel()
- Specified by:
getModel
in interfaceorg.jboss.errai.ui.client.widget.HasModel<AssignmentRow>
-
setModel
public void setModel(AssignmentRow model)
- Specified by:
setModel
in interfaceorg.jboss.errai.ui.client.widget.HasModel<AssignmentRow>
-
getVariableType
public Variable.VariableType getVariableType()
- Specified by:
getVariableType
in interfaceAssignmentListItemWidgetView
-
getDataType
public String getDataType()
- Specified by:
getDataType
in interfaceAssignmentListItemWidgetView
-
setDataType
public void setDataType(String dataType)
- Specified by:
setDataType
in interfaceAssignmentListItemWidgetView
-
getCustomDataType
public String getCustomDataType()
- Specified by:
getCustomDataType
in interfaceAssignmentListItemWidgetView
-
setCustomDataType
public void setCustomDataType(String customDataType)
- Specified by:
setCustomDataType
in interfaceAssignmentListItemWidgetView
-
getProcessVar
public String getProcessVar()
- Specified by:
getProcessVar
in interfaceAssignmentListItemWidgetView
-
setProcessVar
public void setProcessVar(String processVar)
- Specified by:
setProcessVar
in interfaceAssignmentListItemWidgetView
-
getConstant
public String getConstant()
- Specified by:
getConstant
in interfaceAssignmentListItemWidgetView
-
setConstant
public void setConstant(String constant)
- Specified by:
setConstant
in interfaceAssignmentListItemWidgetView
-
setDataTypes
public void setDataTypes(ListBoxValues dataTypeListBoxValues)
- Specified by:
setDataTypes
in interfaceAssignmentListItemWidgetView
-
setProcessVariables
public void setProcessVariables(ListBoxValues processVarListBoxValues)
- Specified by:
setProcessVariables
in interfaceAssignmentListItemWidgetView
-
setShowConstants
public void setShowConstants(boolean showConstants)
- Specified by:
setShowConstants
in interfaceAssignmentListItemWidgetView
-
setDisallowedNames
public void setDisallowedNames(Set<String> disallowedNames, String disallowedNameErrorMessage)
- Specified by:
setDisallowedNames
in interfaceAssignmentListItemWidgetView
-
setCustomAssignmentsProperties
public void setCustomAssignmentsProperties(Map<String,List<String>> customAssignmentsProperties)
- Specified by:
setCustomAssignmentsProperties
in interfaceAssignmentListItemWidgetView
-
setAllowDuplicateNames
public void setAllowDuplicateNames(boolean allowDuplicateNames, String duplicateNameErrorMessage)
- Specified by:
setAllowDuplicateNames
in interfaceAssignmentListItemWidgetView
-
isDuplicateName
public boolean isDuplicateName(String name)
- Specified by:
isDuplicateName
in interfaceAssignmentListItemWidgetView
-
handleDeleteButton
@EventHandler("deleteButton") public void handleDeleteButton(com.google.gwt.event.dom.client.ClickEvent e)
-
-