home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / awt / columnsingleview.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  2.4 KB  |  89 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.     @(#)ColumnSingleView.java  0.00 01-Jan-96
  15.  
  16. A column that only has one view, all though it may be made up of many stories
  17.  those stories are presented all on one screen. Two of the TJI Columns are
  18.  this way.   See HeadlineSection.
  19.  
  20.     Authors:
  21.                 
  22.         Ted      Ted Skolnick
  23.         
  24.  
  25.     Version Ident:
  26.  
  27.         $Header: /PjJavaClient/src/pj/awt/Column.java 3     2/11/96 4:39p Rphall $
  28.  
  29.     History:
  30.  
  31.         0.00 20-Mar-96  Ted Skolnick.      Initial Creation
  32.         
  33.         
  34.  
  35. ---------------------------------------------------------------------------*/
  36.  
  37. package pj.awt;
  38.  
  39. import pj.awt.Column;
  40. import pj.io.Paper;
  41.  
  42.  
  43.  
  44. /**
  45.  * A column that only has one view, all though it may be made up of many stories
  46.  *    those stories are presented all on one screen. Two of the TJI Columns are
  47.  *    this way.   See HeadlineSection.
  48.  *
  49.  * @version 0.00 19-Mar-96
  50.  * @author  Ted S.
  51. */
  52. public class ColumnSingleView extends Column
  53.     {
  54.  
  55.     // --- Public constructors
  56.  
  57.     /**
  58.      * Construct a Column as a standalone page.
  59.      * @param pagename  The name of the standalone page.
  60.      * @param section   The name of the observed section.
  61.      * @param p         The paper that contains the observed section.
  62.     */
  63.     public ColumnSingleView(String pagename, String section, Paper p)
  64.         {
  65.         super(pagename, section, p);        
  66.         }
  67.  
  68.     /**
  69.      * Construct a Column as a page component.
  70.      * @param section   The name of the observed section.
  71.      * @param paper     The paper that contains the observed section.
  72.     */
  73.     public ColumnSingleView(String section, Paper paper)
  74.         { 
  75.         super(section,paper); 
  76.         }
  77.  
  78.     // --- Public operations
  79.  
  80.     /**
  81.      * @return The number of views for this Column
  82.     */
  83.     public int countViews()
  84.         { 
  85.         return 1; 
  86.         }
  87.  
  88.     } // ColumnSingleView
  89.