editform.java
来自「采用tapestry的简单OA系统」· Java 代码 · 共 29 行
JAVA
29 行
package com.ejsun.entapps.presentation.pages.simpleoa;
import org.apache.tapestry.IRequestCycle;
import com.ejsun.entapps.service.simpleoa.WorkflowService;
import com.opensymphony.workflow.loader.ActionDescriptor;
/**
* @author Quake Wang
* @since 2004-5-11
* @version $Revision: 1.4 $
*
**/
public abstract class EditForm extends AbstractFormPage {
public abstract WorkflowService getWorkflowService();
public abstract ActionDescriptor getActionDescriptor();
public abstract String getCommentContent();
public ActionDescriptor[] getActionDescriptors() {
return getWorkflowService().getAvailableActions(getForm());
}
public void completeAction(IRequestCycle cycle) {
getWorkflowService().completeAction(getForm(), getActionDescriptor().getId(), getCommentContent());
cycle.activate("ToDo");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?