home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / PluginOptionTab.java < prev    next >
Text File  |  1998-10-25  |  1KB  |  63 lines

  1. /*
  2.  * Copyright 1998 Symantec Corporation, All Rights Reserved.
  3.  */
  4.  
  5. package com.symantec.itools.vcafe.openapi.pluginapi;
  6.  
  7. import symantec.itools.vcafe.plugin.BasePluginOptionTab;
  8.  
  9. /**
  10.  * PluginOptionTab represents a tab (window). A tab can be added to the
  11.  * Visual Cafe Environment Options and Project Options dialog box.
  12.  *
  13.  * @author Symantec Internet Tools Division
  14.  * @version 1.0
  15.  * @since VCafe 3.0
  16.  */
  17. public class PluginOptionTab extends BasePluginOptionTab
  18. {
  19.     /**
  20.      * Construct an option tab with the given title
  21.      *
  22.      *    @param title    The title of the tab
  23.      */
  24.     public PluginOptionTab(String title)
  25.     {
  26.         super(title);
  27.     }
  28.  
  29.     /**
  30.      * Set the dirty flag. This will enable the 'Apply' button in the
  31.      * dialog box.
  32.      *
  33.      * @param    dirty flag on/off
  34.      */    
  35.     public void setModified(boolean flag)
  36.     {
  37.         super.setModified(flag);
  38.     }
  39.  
  40.     /**
  41.      * Set the help id for this tab. Pressing F1 on an active plug in window will
  42.      * invoke online help displaying the link specified by the given id.
  43.      *
  44.      * @param id     the help id to use for this view
  45.      */    
  46.     public void setHelpId(int id)
  47.     {
  48.         helpId = id;
  49.         super.setHelpId(id);
  50.     }
  51.  
  52.     /**
  53.      * Get the help id used by this tab. 
  54.      *
  55.      * @return      the help id being used by this view
  56.      */    
  57.     public int getHelpId()
  58.     {
  59.         return helpId;
  60.     }
  61.  
  62.     private int helpId = 0;
  63. }