Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.wizard.XmlValidatorFrame Class Reference

List of all members.

Public Member Functions

 XmlValidatorFrame (String fileName) throws HeadlessException
void writeLine (String s)
void setWarning ()

Package Attributes

final String eol = System.getProperty("line.separator")
JTextArea report
JTextAreaWriter writer

Detailed Description

Used to report results of validating a database xml configuration file.

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 45 of file XmlValidatorFrame.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.XmlValidatorFrame String  fileName  )  throws HeadlessException
 

Creates a new XmlValidatorFrame object

Exceptions:
java.awt.HeadlessException 

Definition at line 57 of file XmlValidatorFrame.java.

References org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.writeLine().

00058   {
00059     super(WizardTranslate.get("init.validator.frame"));
00060     GuiConstants.centerComponent(this, WizardConstants.VALIDATOR_WIDTH,
00061         WizardConstants.VALIDATOR_HEIGHT);
00062     this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
00063     report = new JTextArea();
00064     writer = new JTextAreaWriter(report);
00065     report.setForeground(new Color(9498256));
00066     this.getContentPane().add(report);
00067     this.pack();
00068     this.setVisible(true);
00069     writeLine(WizardTranslate.get("init.validator.echo", fileName));
00070   }


Member Function Documentation

void org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.writeLine String  s  ) 
 

Append a line to the text area

Parameters:
s the string to append

Definition at line 77 of file XmlValidatorFrame.java.

Referenced by org.objectweb.cjdbc.console.wizard.XmlWizard.validateDocument(), and org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.XmlValidatorFrame().

00078   {
00079     try
00080     {
00081       writer.write(s + eol);
00082       writer.flush();
00083       report.repaint();
00084     }
00085     catch (IOException e)
00086     {
00087       e.printStackTrace();
00088     }
00089   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:20 2005 for C-JDBC by  doxygen 1.3.9.1