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$13.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-09-15  |  980 b   |  34 lines

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