You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/05/18 20:37:20 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html BaseInputTag.java

dgraham     2003/05/18 11:37:20

  Modified:    src/share/org/apache/struts/taglib/html BaseInputTag.java
  Log:
  Formatting changes only.
  
  Revision  Changes    Path
  1.3       +26 -56    jakarta-struts/src/share/org/apache/struts/taglib/html/BaseInputTag.java
  
  Index: BaseInputTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseInputTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BaseInputTag.java	23 Sep 2002 05:13:43 -0000	1.2
  +++ BaseInputTag.java	18 May 2003 18:37:20 -0000	1.3
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -59,79 +59,65 @@
    *
    */
   
  -
   package org.apache.struts.taglib.html;
   
  -
   import javax.servlet.jsp.JspException;
   import org.apache.struts.util.MessageResources;
   
  -
   /**
    * Abstract base class for the various input tags.
    *
    * @author Craig R. McClanahan
    * @version $Revision$ $Date$
    */
  -
   public abstract class BaseInputTag extends BaseHandlerTag {
   
  -
       // ----------------------------------------------------- Instance Variables
   
  -
       /**
        * The number of character columns for this field, or negative
        * for no limit.
        */
       protected String cols = null;
   
  -
       /**
        * The maximum number of characters allowed, or negative for no limit.
        */
       protected String maxlength = null;
   
  -
       /**
        * The message resources for this package.
        */
       protected static MessageResources messages =
  -     MessageResources.getMessageResources(Constants.Package + ".LocalStrings");
  -
  +        MessageResources.getMessageResources(Constants.Package + ".LocalStrings");
   
       /**
        * The name of the field (and associated property) being processed.
        */
       protected String property = null;
   
  -
       /**
        * The number of rows for this field, or negative for no limit.
        */
       protected String rows = null;
   
  -
       /**
        * The value for this field, or <code>null</code> to retrieve the
        * corresponding property from our associated bean.
        */
       protected String value = null;
   
  -
       // ------------------------------------------------------------- Properties
   
  -
       /**
        * Return the number of columns for this field.
        */
       public String getCols() {
   
  -	return (this.cols);
  +        return (this.cols);
   
       }
   
  -
       /**
        * Set the number of columns for this field.
        *
  @@ -139,21 +125,19 @@
        */
       public void setCols(String cols) {
   
  -	this.cols = cols;
  +        this.cols = cols;
   
       }
   
  -
       /**
        * Return the maximum length allowed.
        */
       public String getMaxlength() {
   
  -	return (this.maxlength);
  +        return (this.maxlength);
   
       }
   
  -
       /**
        * Set the maximum length allowed.
        *
  @@ -161,21 +145,19 @@
        */
       public void setMaxlength(String maxlength) {
   
  -	this.maxlength = maxlength;
  +        this.maxlength = maxlength;
   
       }
   
  -
       /**
        * Return the property name.
        */
       public String getProperty() {
   
  -	return (this.property);
  +        return (this.property);
   
       }
   
  -
       /**
        * Set the property name.
        *
  @@ -183,21 +165,19 @@
        */
       public void setProperty(String property) {
   
  -	this.property = property;
  +        this.property = property;
   
       }
   
  -
       /**
        * Return the number of rows for this field.
        */
       public String getRows() {
   
  -	return (this.rows);
  +        return (this.rows);
   
       }
   
  -
       /**
        * Set the number of rows for this field.
        *
  @@ -205,21 +185,19 @@
        */
       public void setRows(String rows) {
   
  -	this.rows = rows;
  +        this.rows = rows;
   
       }
   
  -
       /**
        * Return the size of this field (synonym for <code>getCols()</code>).
        */
       public String getSize() {
   
  -	return (getCols());
  +        return (getCols());
   
       }
   
  -
       /**
        * Set the size of this field (synonym for <code>setCols()</code>).
        *
  @@ -227,21 +205,19 @@
        */
       public void setSize(String size) {
   
  -	setCols(size);
  +        setCols(size);
   
       }
   
  -
       /**
        * Return the field value (if any).
        */
       public String getValue() {
   
  -	return (this.value);
  +        return (this.value);
   
       }
   
  -
       /**
        * Set the field value (if any).
        *
  @@ -250,14 +226,12 @@
        */
       public void setValue(String value) {
   
  -	this.value = value;
  +        this.value = value;
   
       }
   
  -
       // --------------------------------------------------------- Public Methods
   
  -
       /**
        * Process the start of this tag.  The default implementation does nothing.
        *
  @@ -265,12 +239,10 @@
        */
       public int doStartTag() throws JspException {
   
  -	return (EVAL_BODY_TAG);
  +        return (EVAL_BODY_TAG);
   
       }
   
  -
  -
       /**
        * Process the end of this tag.  The default implementation does nothing.
        *
  @@ -278,24 +250,22 @@
        */
       public int doEndTag() throws JspException {
   
  -	return (EVAL_PAGE);
  +        return (EVAL_PAGE);
   
       }
   
  -
       /**
        * Release any acquired resources.
        */
       public void release() {
   
  -	super.release();
  -	cols = null;
  -	maxlength = null;
  -	property = null;
  -	rows = null;
  -	value = null;
  +        super.release();
  +        cols = null;
  +        maxlength = null;
  +        property = null;
  +        rows = null;
  +        value = null;
   
       }
  -
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org