Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: MODIFIED: util ...

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: MODIFIED: util ...

Author dlr
Full name Daniel Rall
Date 2001-07-18 15:10:38 PDT
Message User: dlr
  Date: 01/07/18 15:10:38

  Modified: java/org/joist/util ListElement.java
  Log:
  Cleaned up.
  
  Revision Changes Path
  1.5 +50 -55 joist/java/org/joist​/util/ListElement.ja​va
  
  http://joist.tigris.​org/source/browse/jo​ist/java/org/joist/u​til/ListElement.java​.diff?r1=1.4&r2=​1.5
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ListElement.java
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/joist/java/org/jo​ist/util/ListElement​.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- ListElement.java 2000/07/05 21:29:29 1.4
  +++ ListElement.java 2001/07/18 22:10:38 1.5
  @@ -46,24 +46,18 @@
   
   package org.joist.util;
   
  -import java.util.*;
  -import javax.servlet.http.*;
  -
  -import org.webmacro.util.*;
  -import org.webmacro.servlet.*;
  -
   /**
     * Hold name, value, and selected/not for the purpose of building HTML list
     * oriented constructs within a webmacro template.
     *
  - * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.4 $
  + * @author <a href="mailto:davidp@​dataweb-systems.com"​>David C. Pellegrini</a>
  + * @author <a href="mailto:dlr@col​lab.net">Daniel Rall</a>
  + * @version $Id: ListElement.java,v 1.5 2001/07/18 22:10:38 dlr Exp $
     *
     * Copyright (c) 1999 dataweb systems, inc.
  - * Copyright (c) 1999, 2000 Collab.Net, Inc.
  + * Copyright (c) 1999-2001 CollabNet, Inc.
     */
  -
  -public class ListElement extends Object
  +public class ListElement
   {
       private String name;
       private String value;
  @@ -71,80 +65,81 @@
   
       public ListElement() {}
   
  - public ListElement(String theName) {name(theName);}
  -
  - public ListElement(String theName, String theValue) {name(theName); value(theValue);}
  + public ListElement(String theName)
  + {
  + name(theName);
  + }
   
  - public ListElement(String theName, String theValue, boolean selectedFlag) {name(theName); value(theValue); isSelected(selectedFlag);}
  + public ListElement(String theName, String theValue)
  + {
  + name(theName);
  + value(theValue);
  + }
   
  + public ListElement(String theName, String theValue, boolean selectedFlag)
  + {
  + name(theName);
  + value(theValue);
  + isSelected(selectedFlag);
  + }
   
       /**
  - * Sets the name
  + * Sets the name associated with this element.
        *
  - * @param String the name
  - * @param theName A variable of type String
  + * @param theName The elemnt name.
        */
  - public void
  - name (String theName)
  + public void name(String theName)
       {
       name = theName;
       }
   
       /**
  - * Gets the name
  + * Gets the name associated with this element.
        *
  - * @return the name
  + * @return The element name.
        */
  - public String
  - name ()
  + public String name()
       {
       return name;
       }
   
       /**
  - * Sets the value
  + * Sets the value associated with this element.
        *
  - * @param String the value
  - * @param theName A variable of type String
  + * @param theValue The element value.
        */
  - public void
  - value (String theName)
  + public void value(String theValue)
       {
  - value = theName;
  + value = theValue;
       }
   
       /**
  - * Gets the value
  + * Gets the value associated with this element.
        *
  - * @return the value
  + * @return The value.
        */
  - public String
  - value ()
  + public String value()
       {
       return value;
       }
   
       /**
  - * Sets the selected/not selected flag
  + * Sets the selected flag.
        *
  - * @param selectedFlag indicates whether this element is selected
  + * @param selectedFlag Indicates whether this element is selected.
        */
  - public void
  - isSelected (boolean selectedFlag)
  + public void isSelected(boolean selectedFlag)
       {
       isSelected = selectedFlag;
       }
   
       /**
  - * Gets the selected/not selected flag
  + * Returns the selected flag.
        *
  - * @return indicator whether this element is selected
  + * @return Indicator whether this element is selected
        */
  - public boolean
  - isSelected ()
  + public boolean isSelected()
       {
       return isSelected;
       }
  -
   }
  -
  
  
  

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@jois​t.tigris.org
For additional commands, e-mail: cvs-help at joist dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: MODIFIED: util ... dlr Daniel Rall 2001-07-18 15:10:38 PDT
Messages per page: