📄 adminadvform.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: AdminAdvForm.java
package com.laoer.bbscs.web.form;
import com.laoer.comm.util.Util;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
import org.apache.struts.validator.ValidatorForm;
public class AdminAdvForm extends ValidatorForm
{
private String action;
private int high;
private String imgSrc;
private short isFlash;
private String title;
private short type;
private String url;
private int width;
private long id;
public AdminAdvForm()
{
}
public String getAction()
{
return action;
}
public void setAction(String action)
{
this.action = action;
}
public int getHigh()
{
return high;
}
public void setHigh(int high)
{
this.high = high;
}
public String getImgSrc()
{
return imgSrc;
}
public void setImgSrc(String imgSrc)
{
this.imgSrc = imgSrc;
}
public short getIsFlash()
{
return isFlash;
}
public void setIsFlash(short isFlash)
{
this.isFlash = isFlash;
}
public String getTitle()
{
return title;
}
public void setTitle(String title)
{
this.title = title;
}
public short getType()
{
return type;
}
public void setType(short type)
{
this.type = type;
}
public String getUrl()
{
return url;
}
public void setUrl(String url)
{
this.url = url;
}
public int getWidth()
{
return width;
}
public void setWidth(int width)
{
this.width = width;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest)
{
ActionErrors errors = new ActionErrors();
if((action.equals("add") || action.equals("editdo")) && Util.nullOrBlank(imgSrc))
errors.add("error.nullerror", new ActionError("error.nullerror"));
return errors;
}
public void reset(ActionMapping actionmapping, HttpServletRequest httpservletrequest)
{
}
public long getId()
{
return id;
}
public void setId(long id)
{
this.id = id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -