home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2001 October / PCpro_2001_10.ISO / xml / xmlpro / data1.cab / Program_Executable_FILES / xmlpro.jar / XMLPro$31.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-09-15  |  921 b   |  28 lines

  1. import java.awt.Dialog;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.ActionListener;
  4.  
  5. final class XMLPro$31 implements ActionListener {
  6.    // $FF: synthetic field
  7.    private final XMLPro this$0;
  8.  
  9.    // $FF: synthetic method
  10.    XMLPro$31(XMLPro var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void actionPerformed(ActionEvent var1) {
  15.       if (!this.this$0.xmlDocument.hasDTD) {
  16.          MesgBox var3 = new MesgBox(this.this$0.theApp, Strings.NoDTDAssociated);
  17.          ((Dialog)var3).show();
  18.       } else {
  19.          this.this$0.xmlDocument.validated = this.this$0.validateDocument(true);
  20.          if (this.this$0.xmlDocument.validated) {
  21.             MesgBox var2 = new MesgBox(this.this$0.theApp, Strings.ValidationSuccessful);
  22.             ((Dialog)var2).show();
  23.          }
  24.  
  25.       }
  26.    }
  27. }
  28.