home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / browser / net_linx / java40.jar / netscape / softupdate / WinProfileItem.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.2 KB  |  29 lines

  1. package netscape.softupdate;
  2.  
  3. final class WinProfileItem extends InstallObject {
  4.    private WinProfile profile;
  5.    private String section;
  6.    private String key;
  7.    private String value;
  8.  
  9.    WinProfileItem(WinProfile var1, String var2, String var3, String var4) throws SoftUpdateException {
  10.       super(var1.softUpdate());
  11.       this.profile = var1;
  12.       this.section = var2;
  13.       this.key = var3;
  14.       this.value = var4;
  15.    }
  16.  
  17.    protected void Complete() throws SoftUpdateException {
  18.       this.profile.finalWriteString(this.section, this.key, this.value);
  19.    }
  20.  
  21.    float GetInstallOrder() {
  22.       return 4.0F;
  23.    }
  24.  
  25.    public String toString() {
  26.       return "Write " + this.profile.filename() + ": [" + this.section + "] " + this.key + "=" + this.value;
  27.    }
  28. }
  29.