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

📄 admindatetimeformatsetform.java

📁 一个jsp写的bbs
💻 JAVA
字号:
package com.laoer.bbscs.web.form;

import javax.servlet.http.*;

import org.apache.commons.lang.*;
import org.apache.struts.action.*;
import com.laoer.bbscs.comm.*;

public class AdminDateTimeFormatSetForm
    extends ActionForm {

  private String action;
  private String birthDateTimeFormat;
  private int dateShowType;
  private int defaultTimeZone;
  private String forumDateTimeFormat;
  private String otherDateTimeFormat;
  private String postDateTimeFormat;
  private String regDateTimeFormat;
  private String timeFormat;

  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public void setTimeFormat(String timeFormat) {
    this.timeFormat = timeFormat;
  }

  public void setRegDateTimeFormat(String regDateTimeFormat) {
    this.regDateTimeFormat = regDateTimeFormat;
  }

  public void setPostDateTimeFormat(String postDateTimeFormat) {
    this.postDateTimeFormat = postDateTimeFormat;
  }

  public void setOtherDateTimeFormat(String otherDateTimeFormat) {
    this.otherDateTimeFormat = otherDateTimeFormat;
  }

  public void setForumDateTimeFormat(String forumDateTimeFormat) {
    this.forumDateTimeFormat = forumDateTimeFormat;
  }

  public void setDefaultTimeZone(int defaultTimeZone) {
    this.defaultTimeZone = defaultTimeZone;
  }

  public void setDateShowType(int dateShowType) {
    this.dateShowType = dateShowType;
  }

  public void setBirthDateTimeFormat(String birthDateTimeFormat) {
    this.birthDateTimeFormat = birthDateTimeFormat;
  }

  public String getBirthDateTimeFormat() {
    return birthDateTimeFormat;
  }

  public int getDateShowType() {
    return dateShowType;
  }

  public int getDefaultTimeZone() {
    return defaultTimeZone;
  }

  public String getForumDateTimeFormat() {
    return forumDateTimeFormat;
  }

  public String getOtherDateTimeFormat() {
    return otherDateTimeFormat;
  }

  public String getPostDateTimeFormat() {
    return postDateTimeFormat;
  }

  public String getRegDateTimeFormat() {
    return regDateTimeFormat;
  }

  public String getTimeFormat() {
    return timeFormat;
  }

  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    if (StringUtils.isBlank(this.action)) {
      this.action = "index";
    }
    httpServletRequest.setAttribute("dateShowTypeValues",
                                    BBSCSUtil.getDateShowTypeValues(httpServletRequest.getLocale()));
    httpServletRequest.setAttribute("timeZoneValues", Constant.TIMEZONE);
    /*
         if (this.action.equalsIgnoreCase("save")) {
      this.timeFormat = StringUtils.defaultIfEmpty(this.timeFormat, "HH:mm");
     this.forumDateTimeFormat = StringUtils.defaultIfEmpty(this.forumDateTimeFormat, "MM-dd HH:mm");
      this.postDateTimeFormat = StringUtils.defaultIfEmpty(this.postDateTimeFormat,
          "yyyy-MM-dd HH:mm:ss");
      this.otherDateTimeFormat = StringUtils.defaultIfEmpty(this.otherDateTimeFormat,
          "yyyy-MM-dd HH:mm:ss");
      this.regDateTimeFormat = StringUtils.defaultIfEmpty(this.regDateTimeFormat, "yyyy-MM-dd");
     this.birthDateTimeFormat = StringUtils.defaultIfEmpty(this.birthDateTimeFormat, "yyyy-MM-dd");
         }*/
    return null;
  }

  public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
  }
}

⌨️ 快捷键说明

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