1 16 package com.blandware.atleap.webapp.form.core; 17 18 import com.blandware.atleap.webapp.form.ContentImageForm; 19 import org.apache.struts.action.ActionMapping; 20 21 import javax.servlet.http.HttpServletRequest ; 22 23 33 public class ImageForm extends ContentImageForm { 34 35 protected String scaleWidth = "0"; 36 protected String scaleHeight = "0"; 37 protected boolean scale = false; 38 39 public String getScaleWidth() { 40 return scaleWidth; 41 } 42 43 47 public void setScaleWidth(String scaleWidth) { 48 this.scaleWidth = scaleWidth; 49 } 50 51 52 public String getScaleHeight() { 53 return scaleHeight; 54 } 55 56 60 public void setScaleHeight(String scaleHeight) { 61 this.scaleHeight = scaleHeight; 62 } 63 64 public boolean isScale() { 65 return scale; 66 } 67 68 public void setScale(boolean scale) { 69 this.scale = scale; 70 } 71 72 78 public void reset(ActionMapping mapping, HttpServletRequest request) { 79 this.scaleWidth = "0"; 80 this.scaleHeight = "0"; 81 this.scale = false; 82 } 83 84 } | Popular Tags |