portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/browser BrowserIterator.java DatabaseBrowserIterator.java
Date Mon, 15 Apr 2002 20:16:17 GMT
taylor      02/04/15 13:16:16

  Modified:    src/java/org/apache/jetspeed/portal/portlets/browser
                        BrowserIterator.java DatabaseBrowserIterator.java
  Log:
  added to new methods getBottom and getWindowSize
  
  Revision  Changes    Path
  1.4       +11 -1     jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/browser/BrowserIterator.java
  
  Index: BrowserIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/browser/BrowserIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BrowserIterator.java	10 Apr 2002 02:58:00 -0000	1.3
  +++ BrowserIterator.java	15 Apr 2002 20:16:16 -0000	1.4
  @@ -62,7 +62,7 @@
    * Browser Iterator Interface
    *
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  - * @version $Id: BrowserIterator.java,v 1.3 2002/04/10 02:58:00 taylor Exp $
  + * @version $Id: BrowserIterator.java,v 1.4 2002/04/15 20:16:16 taylor Exp $
    *
   */
   public interface BrowserIterator extends Iterator, Comparator
  @@ -73,6 +73,16 @@
        *
        */
       public int getTop();
  +    /**
  +     * This method returns the window size.
  +     *
  +     */
  +    public int getWindowSize();
  +    /**
  +     * This method returns the last index of the row in the window displayed.
  +     *
  +     */
  +    public int getBottom();
   
       /**
        * This method points the cursor to the index provided.
  
  
  
  1.4       +19 -1     jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/browser/DatabaseBrowserIterator.java
  
  Index: DatabaseBrowserIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/browser/DatabaseBrowserIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DatabaseBrowserIterator.java	10 Apr 2002 02:58:00 -0000	1.3
  +++ DatabaseBrowserIterator.java	15 Apr 2002 20:16:16 -0000	1.4
  @@ -67,7 +67,7 @@
    * of rows being displayed to the user from the Vector storing all the ResultSet.
    *
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  - * @version $Id: DatabaseBrowserIterator.java,v 1.3 2002/04/10 02:58:00 taylor Exp $
  + * @version $Id: DatabaseBrowserIterator.java,v 1.4 2002/04/15 20:16:16 taylor Exp $
    *
   */
   public class DatabaseBrowserIterator implements BrowserIterator
  @@ -161,6 +161,24 @@
           top = start;
           index = top;
           setBottom();
  +    }
  +
  +    /**
  +     * This method returns the last index of the row in the window displayed.
  +     *
  +     */
  +    public int getBottom()
  +    {
  +        return bottom;
  +    }
  +
  +    /**
  +     * This method returns the window size.
  +     *
  +     */
  +    public int getWindowSize()
  +    {
  +        return windowSize;
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message