⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modelform.java

📁 一个非常好的FRAMWRK!是一个外国组织做的!不!
💻 JAVA
字号:
/**
 * Copyright 2003-2005 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */

package com.jdon.model;

import com.jdon.strutsutil.ViewForm;


/**
 *  包含前台界面对Model的操作定义
 *  用户使用本框架,所有的前台显示Form都要继承本ModelForm,
 *  例如Struts中所有Form必须继承ActionForm一样。
 *
 *  目前ViewForm是Struts的ActionForm,如前台更换成其它框架,
 *  需要重新ViewForm
 *
 *
 * @author banq
 */
public abstract class ModelForm extends ViewForm {

  public final static String VIEW_STR = "view";
  public final static String CREATE_STR = "create";
  public final static String EDIT_STR = "edit";
  public final static String UPDATE_STR = "update";
  public final static String DELETE_STR = "delete";
  public final static String ADD_STR = "add";
  public final static String REMOVE_STR = "remove";


  private String action; //针对该Model的动作,调用指定
                         //JdonActionType是为防止action名称被占用

  public void setAction(String action) {
    this.action = action;
  }
  public String getAction() {
    return action;
  }
  public String getJdonActionType() {
    return action;
  }
  public void setJdonActionType(String jdonActionType) {
    this.action = jdonActionType;
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -