home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / awt / pageview.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  3.0 KB  |  127 lines

  1. /*---------------------------------------------------------------------------
  2.  
  3.     Written by the Personal Journal developers of Dow Jones & Company, Inc.
  4.  
  5.     Dow Jones makes no representations or warranties about 
  6.     the suitability of this software, either express or 
  7.     implied, including but not limited to the implied warranties 
  8.     of merchantability, fitness for a particular purpose, 
  9.     or non-infringement.  Dow Jones will not be liable for 
  10.     any damages suffered by a user as a result of using, 
  11.     modifying or distributing this software or its derivatives.
  12.  
  13.  
  14.     @(#)PageView.java  0.00 01-Jan-96
  15.  
  16.         A Page that implements PaperView.
  17.  
  18.     Authors:
  19.  
  20.         rphall   Rick Hall
  21.  
  22.     Version Ident:
  23.  
  24.         $Header$
  25.  
  26.     History:
  27.  
  28.         0.00 01-Jan-96  rphall      Initial Creation
  29.         0.01  1-Mar-96  Ted S.      Obsoleted this class, because Page 
  30.                                        implements PaperView().  For now
  31.                                        this is just a pass through.  But, 
  32.                                        it should be removed.  So, don't use
  33.                                        it if you are writing new code.
  34.  
  35. ---------------------------------------------------------------------------*/
  36.  
  37. package pj.awt;
  38.  
  39. import pj.util.Nameable;
  40.  
  41. import java.awt.Panel;
  42.  
  43. /**
  44.  * A Page that implements PaperView.
  45.  *
  46.  * @version 0.00 01-Jan-96
  47.  * @author  rphall
  48. */
  49. //public abstract class PageView extends Page 
  50. public class PageView extends Page
  51.     {
  52.  
  53.     // --- Public constructors
  54.  
  55.     /**
  56.      * Construct a PageView with a given name.
  57.      * @param name  The name for a pageview
  58.     */
  59.     public PageView(String name)
  60.         { 
  61.         super(name); 
  62.         }
  63.  
  64.     /**
  65.      * Construct a PageView with a null name.
  66.     */
  67.     public PageView()
  68.         { 
  69.         this(null); 
  70.         }
  71.  
  72.     // --- Public operations
  73.  
  74.     /**
  75.      * @return The number of views in an implementation instance.
  76.     */
  77.     public int countViews() 
  78.         { 
  79.         System.out.println( "PageView :: countViews - calling Super " );
  80.         return super.countViews(); 
  81.         }
  82.  
  83.     /**
  84.      * Make the first view the current view.
  85.     */
  86.     public void firstView() 
  87.         {
  88.         super.firstView();
  89.         }
  90.  
  91.     /**
  92.      * Make the next view (after the current view) the current view.
  93.     */
  94.     public boolean nextView() 
  95.         {
  96.         return super.nextView();
  97.         }
  98.  
  99.     /**
  100.      * Make the last view the current view.
  101.     */
  102.     public void lastView() 
  103.         {
  104.         super.lastView();
  105.         }
  106.  
  107.     /**
  108.      * Make the previous view (before current view) the current view.
  109.     */
  110.     public boolean previousView() 
  111.         {
  112.         return super.previousView();
  113.         }
  114.  
  115.     
  116.      
  117.     /**
  118.      * Make a specific view the current view.
  119.      * @param idx The index of the view to display.
  120.     */
  121.     public void view(int idx) 
  122.         {
  123.         super.view( idx );
  124.         }
  125.  
  126.     } // PageView
  127.