home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / awt / dividerview.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  3.0 KB  |  124 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.     @(#)DividerView.java  0.00 01-Jan-96
  15.  
  16.         A Divider that implements PaperView.
  17.  
  18.  
  19.     Authors:
  20.  
  21.         rphall   Rick Hall
  22.  
  23.  
  24.     Version Ident:
  25.  
  26.         $Header: /PjJavaClient/src/pj/awt/DividerView.java 2     1/22/96 10:17a Rphall $
  27.  
  28.  
  29.     History:
  30.  
  31.         0.00 01-Jan-96  rphall      Initial Creation
  32.         0.01 23-Feb-96 Ted S.       This class is obsolete, since Paper implements Paperview.
  33.                                     For now it just passes things along.  It should be deleted
  34.                                     when I have more time.
  35.  
  36. ---------------------------------------------------------------------------*/
  37.  
  38. package pj.awt;
  39.  
  40. import pj.awt.Page;
  41. import pj.awt.PaperView;
  42. import pj.awt.TabSpec;
  43.  
  44. /**
  45.  * A Divider that implements PaperView.
  46.  *
  47.  * @see PaperView
  48.  * @version 0.00 01-Jan-96
  49.  * @author  rphall
  50. */
  51. //public abstract class DividerView extends Divider implements PaperView
  52. public class DividerView extends Divider implements PaperView
  53.     {
  54.  
  55.     // --- Public constructors
  56.  
  57.     /**
  58.      * Construct a DividerView with a given tab specification.
  59.      * @param tab   A specification for the tab that should be
  60.      * associated with this page.
  61.     */
  62.     public DividerView(TabSpec tab)
  63.         {
  64.         super(tab);
  65.         System.out.println("Debug-DividerView:constructed");
  66.         }
  67.  
  68.     // --- Public operations
  69.  
  70.     /**
  71.      * @return The number of views in an implementation instance.
  72.     */
  73.     public int countViews() 
  74.         { 
  75.         return super.countViews(); 
  76.         }
  77.  
  78.     
  79.  
  80.     /**
  81.      * Make the first view the current view.
  82.     */
  83.     public void firstView() 
  84.         { 
  85.         super.firstView(); 
  86.         }
  87.  
  88.     /**
  89.      * Make the next view (after the current view) the current view.
  90.     */
  91.     public boolean nextView()
  92.         {
  93.         return super.nextView();
  94.         }
  95.  
  96.     /**
  97.      * Make the last view the current view.
  98.     */
  99.     public void lastView() 
  100.         { 
  101.         super.lastView();
  102.         }
  103.  
  104.     /**
  105.      * Make the previous view (before current view) the current view.
  106.     */
  107.     public boolean previousView()
  108.         {
  109.         return super.previousView();
  110.         }
  111.  
  112.     
  113.  
  114.     /**
  115.      * Make a specific view the current view.
  116.      * @param idx The index of the view to display.
  117.     */
  118.     public void view(int idx) 
  119.         { 
  120.         super.view(idx);
  121.         }
  122.  
  123.     } // DividerView
  124.