home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / awt / divider.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  2.2 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.     @(#)Divider.java  0.00 01-Jan-96
  15.  
  16.         A tabbed page in a notebook.
  17.  
  18.     Authors:
  19.  
  20.         rphall   Rick Hall
  21.  
  22.     Version Ident:
  23.  
  24.         $Header: /PjJavaClient/src/pj/awt/Divider.java 2     1/22/96 9:09a Rphall $
  25.  
  26.     History:
  27.  
  28.         0.00 01-Jan-96  rphall      Initial Creation
  29.  
  30. ---------------------------------------------------------------------------*/
  31.  
  32. package pj.awt;
  33.  
  34. import pj.awt.Page;
  35. import pj.awt.TabSpec;
  36.  
  37. /**
  38.  * A Divider is tabbed page in a notebook. The Divider class provides only
  39.  * a specification for the tab that should be associated with this page.
  40.  * The notebook is responsible for implementation and visual presentation
  41.  * of the tab.
  42.  *
  43.  * @see     pj.awt.Notebook
  44.  * @see     pj.awt.TabSpec
  45.  * @version 0.00 01-Jan-96
  46.  * @author  rphall
  47. */
  48. public class Divider extends Page
  49.     {
  50.  
  51.  
  52.     // --- Instance variables
  53.  
  54.     private TabSpec tabspec;
  55.  
  56.     // --- Public constructors
  57.  
  58.     /**
  59.      * Construct a Divider with a given tab specification.
  60.      * @param tab   A specification for the tab that should be
  61.      * associated with this page.
  62.     */
  63.     public Divider(TabSpec tab)
  64.         {
  65.         super(tab.strPageName);
  66.         tabspec = tab;
  67.         }
  68.  
  69.     // --- Public operations
  70.  
  71.     /**
  72.      * @param tab   The tab specification for a divider.
  73.     */
  74.     public void setTabSpec(TabSpec tab)
  75.         { 
  76.         tabspec = tab; 
  77.         }
  78.  
  79.     /**
  80.      * @return The tab specification for a divider.
  81.     */
  82.     public TabSpec getTabSpec()
  83.         {
  84.         return tabspec; 
  85.         }
  86.  
  87.     
  88.     } // Divider
  89.