home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / main.bin / ComponentInfo.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-08-05  |  4.0 KB  |  167 lines

  1. package symantec.descfileconverter;
  2.  
  3. import java.io.File;
  4. import java.util.Hashtable;
  5. import java.util.Vector;
  6.  
  7. class ComponentInfo {
  8.    private Vector vAwtevent;
  9.    private String sBaseclass;
  10.    private String sClass;
  11.    private Hashtable hConnection;
  12.    private CProperty defproperty;
  13.    private String sFlags;
  14.    private String sFolder;
  15.    private CIconsuite iconsuite;
  16.    private Vector vProperty;
  17.    private CSmallicon smallicon;
  18.    private String sToolbar;
  19.    private CWinhelp winhelp;
  20.  
  21.    void setAwtevent(String var1) {
  22.       if (this.vAwtevent == null) {
  23.          this.vAwtevent = new Vector();
  24.       }
  25.  
  26.       this.vAwtevent.addElement(var1);
  27.    }
  28.  
  29.    String getAwtevent() {
  30.       if (this.vAwtevent == null) {
  31.          return null;
  32.       } else {
  33.          String var1 = (String)this.vAwtevent.firstElement();
  34.          if (this.vAwtevent.size() > 1) {
  35.             for(int var2 = 1; var2 < this.vAwtevent.size(); ++var2) {
  36.                var1 = var1 + ", " + (String)this.vAwtevent.elementAt(var2);
  37.             }
  38.          }
  39.  
  40.          return var1;
  41.       }
  42.    }
  43.  
  44.    void setBaseclass(String var1) {
  45.       this.sBaseclass = new String(var1);
  46.    }
  47.  
  48.    String getBaseclass() {
  49.       return this.sBaseclass;
  50.    }
  51.  
  52.    void setComponentClass(String var1) {
  53.       this.sClass = new String(var1);
  54.    }
  55.  
  56.    String getComponentClass() {
  57.       return this.sClass;
  58.    }
  59.  
  60.    void setConnection(CConnection var1) {
  61.       if (this.hConnection == null) {
  62.          this.hConnection = new Hashtable();
  63.       }
  64.  
  65.       if (!this.hConnection.containsKey(var1.method)) {
  66.          this.hConnection.put(var1.method, new Vector());
  67.          ((Vector)this.hConnection.get(var1.method)).addElement(var1);
  68.       } else {
  69.          ((Vector)this.hConnection.get(var1.method)).addElement(var1);
  70.       }
  71.    }
  72.  
  73.    Hashtable getConnections() {
  74.       return this.hConnection;
  75.    }
  76.  
  77.    void setDefproperty(CProperty var1) {
  78.       this.defproperty = var1;
  79.    }
  80.  
  81.    CProperty getDefproperty() {
  82.       return this.defproperty;
  83.    }
  84.  
  85.    void setFlags(String var1) {
  86.       this.sFlags = new String(var1);
  87.    }
  88.  
  89.    String getFlags() {
  90.       return this.sFlags;
  91.    }
  92.  
  93.    void setFolder(String var1) {
  94.       this.sFolder = new String(var1);
  95.    }
  96.  
  97.    String getFolder() {
  98.       return this.sFolder;
  99.    }
  100.  
  101.    void setIconsuite(CIconsuite var1) {
  102.       this.iconsuite = var1;
  103.    }
  104.  
  105.    CIconsuite getIconsuite() {
  106.       return this.iconsuite;
  107.    }
  108.  
  109.    void setProperty(CProperty var1) {
  110.       if (this.vProperty == null) {
  111.          this.vProperty = new Vector();
  112.       }
  113.  
  114.       this.vProperty.addElement(var1);
  115.    }
  116.  
  117.    Vector getProperty() {
  118.       return this.vProperty;
  119.    }
  120.  
  121.    void setSmallicon(CSmallicon var1) {
  122.       this.smallicon = var1;
  123.    }
  124.  
  125.    CSmallicon getSmallicon() {
  126.       return this.smallicon;
  127.    }
  128.  
  129.    void setToolbar(String var1) {
  130.       this.sToolbar = new String(var1);
  131.    }
  132.  
  133.    String getToolbar() {
  134.       return this.sToolbar;
  135.    }
  136.  
  137.    void setWinhelp(CWinhelp var1) {
  138.       this.winhelp = var1;
  139.    }
  140.  
  141.    CWinhelp getWinhelp() {
  142.       return this.winhelp;
  143.    }
  144.  
  145.    String getPackageName() {
  146.       int var1 = this.sClass.lastIndexOf(46);
  147.       return this.sClass.substring(0, var1);
  148.    }
  149.  
  150.    String getAbbreviatedClass() {
  151.       int var1 = this.sClass.lastIndexOf(46);
  152.       return this.sClass.substring(var1 + 1);
  153.    }
  154.  
  155.    String getClassPath() {
  156.       StringBuffer var1 = new StringBuffer(this.getPackageName());
  157.  
  158.       for(int var2 = 0; var2 < var1.length(); ++var2) {
  159.          if (var1.charAt(var2) == '.') {
  160.             var1.setCharAt(var2, File.separator.charAt(0));
  161.          }
  162.       }
  163.  
  164.       return var1.toString();
  165.    }
  166. }
  167.