Class CaseCommentItemView
- java.lang.Object
-
- org.jbpm.workbench.cm.client.util.AbstractView<CaseCommentsPresenter>
-
- org.jbpm.workbench.cm.client.comments.CaseCommentItemView
-
- All Implemented Interfaces:
com.google.gwt.user.client.TakesValue<org.jbpm.workbench.cm.model.CaseCommentSummary>,org.jboss.errai.common.client.api.IsElement,org.uberfire.client.mvp.HasPresenter<CaseCommentsPresenter>,org.uberfire.client.mvp.UberElement<CaseCommentsPresenter>
@Dependent @Templated public class CaseCommentItemView extends AbstractView<CaseCommentsPresenter> implements com.google.gwt.user.client.TakesValue<org.jbpm.workbench.cm.model.CaseCommentSummary>, org.jboss.errai.common.client.api.IsElement
-
-
Field Summary
-
Fields inherited from class org.jbpm.workbench.cm.client.util.AbstractView
presenter
-
-
Constructor Summary
Constructors Constructor Description CaseCommentItemView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(CaseCommentsPresenter.CaseCommentAction action)voidaddUpdateCommentAction(CaseCommentsPresenter.CaseCommentAction action)voidclearErrorMessages()org.jboss.errai.common.client.dom.HTMLElementgetElement()org.jbpm.workbench.cm.model.CaseCommentSummarygetValue()voidonCancelEdtionClick(org.jboss.errai.common.client.dom.Event e)voidonCaseCommentEditEvent(CaseCommentEditEvent event)voidonUpdateCommentClick(org.jboss.errai.common.client.dom.Event e)voidsetCommentEditEvent(javax.enterprise.event.Event<CaseCommentEditEvent> commentEditEvent)voidsetEditMode(boolean editMode)voidsetIconType(String iconTypeClass)voidsetLastElementStyle()voidsetValue(org.jbpm.workbench.cm.model.CaseCommentSummary model)protected voidupdateActions(boolean editItem)booleanvalidateForm()-
Methods inherited from class org.jbpm.workbench.cm.client.util.AbstractView
init, tooltip
-
-
-
-
Method Detail
-
setCommentEditEvent
@Inject public void setCommentEditEvent(javax.enterprise.event.Event<CaseCommentEditEvent> commentEditEvent)
-
setIconType
public void setIconType(String iconTypeClass)
-
getElement
public org.jboss.errai.common.client.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceorg.jboss.errai.common.client.api.IsElement
-
addAction
public void addAction(CaseCommentsPresenter.CaseCommentAction action)
-
addUpdateCommentAction
public void addUpdateCommentAction(CaseCommentsPresenter.CaseCommentAction action)
-
setEditMode
public void setEditMode(boolean editMode)
-
clearErrorMessages
public void clearErrorMessages()
-
validateForm
public boolean validateForm()
-
onUpdateCommentClick
@EventHandler("update-comment") public void onUpdateCommentClick(@ForEvent("click") org.jboss.errai.common.client.dom.Event e)
-
onCancelEdtionClick
@EventHandler("cancel-edition") public void onCancelEdtionClick(@ForEvent("click") org.jboss.errai.common.client.dom.Event e)
-
getValue
public org.jbpm.workbench.cm.model.CaseCommentSummary getValue()
- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<org.jbpm.workbench.cm.model.CaseCommentSummary>
-
setValue
public void setValue(org.jbpm.workbench.cm.model.CaseCommentSummary model)
- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<org.jbpm.workbench.cm.model.CaseCommentSummary>
-
updateActions
protected void updateActions(boolean editItem)
-
onCaseCommentEditEvent
public void onCaseCommentEditEvent(@Observes CaseCommentEditEvent event)
-
setLastElementStyle
public void setLastElementStyle()
-
-