<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <!--NewPage--> <html> <head> <!-- Generated by javadoc on Sun Oct 06 12:29:23 CEST 2002 --> <title> Class org.hsqldb.util.ZaurusEditor </title> </head> <body> <a name="_top_"></a> <pre> <a href="index.html">Index</a></pre> <hr> <h1> Class org.hsqldb.util.ZaurusEditor </h1> <pre> org.hsqldb.util.ZaurusEditor </pre> <hr> <dl> <dt> public class <b>ZaurusEditor</b> </dl> <code>ZaurusEditor</code> implements an search/input/edit form to search/view/update/insert table records. <p> <hr> <a name="index"></a> <h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"> </h2> <dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ZaurusEditor()"><b>ZaurusEditor</b></a>() <dd> Constructor declaration </dl> <h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"> </h2> <dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#actionPerformed(org.hsqldb.util.ActionEvent)"><b>actionPerformed</b></a>(ActionEvent) <dd> <code>actionPerformed</code> method is the main entry point which interprets the buttons and initiates the actions. <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o "> <a href="#clearStatus()"><b>clearStatus</b></a>() <dd> The class method <code>clearStatus</code> deletes the status line. <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o "> <a href="#printStatus(org.hsqldb.util.String)"><b>printStatus</b></a>(String) <dd> <code>printStatus</code> prints a text into the status line below the panel. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#refresh(org.hsqldb.util.Connection)"><b>refresh</b></a>(Connection) <dd> <code>refresh</code> will read again the meta data of the actual database. </dl> <a name="constructors"></a> <h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"> </h2> <a name="ZaurusEditor"></a> <a name="ZaurusEditor()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a> <b>ZaurusEditor</b> <pre> public ZaurusEditor() </pre> <dl> <dd> Constructor declaration <p> </dl> <a name="methods"></a> <h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"> </h2> <a name="printStatus(org.hsqldb.util.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="printStatus"><b>printStatus</b></a> <pre> public static void printStatus(String text) </pre> <dl> <dd> <code>printStatus</code> prints a text into the status line below the panel. <p> <dd><dl> <dt> <b>Parameters:</b> <dd> text - a <code>String</code> value will be shown </dl></dd> </dl> <a name="clearStatus()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="clearStatus"><b>clearStatus</b></a> <pre> public static void clearStatus() </pre> <dl> <dd> The class method <code>clearStatus</code> deletes the status line. <p> </dl> <a name="actionPerformed(org.hsqldb.util.ActionEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="actionPerformed"><b>actionPerformed</b></a> <pre> public void actionPerformed(ActionEvent e) </pre> <dl> <dd> <code>actionPerformed</code> method is the main entry point which interprets the buttons and initiates the actions. <p> <dd><dl> <dt> <b>Parameters:</b> <dd> e - an <code>ActionEvent</code> value is been sent to ZaurusEditor as ActionListener <p>The possible events are:<ul> <li>Buttons on the <b>search panel:</b> <dl><dt>Search Row<dd> Starts the search of rows in the choosen table with the given search words and search options. Without any search words, all rows will be found.<br> If no row meets the criteria, there will be a message in the status line. <dt>New Row<dd> An empty input panel for the choosen table is given. Any search words are ignored.</dl><li>Buttons on the <b>edit panel:</b><br>Any changes to field values on this panel will be updated to the table when the actual row is left, i. e. when pressing one of the buttons 'Prev', 'Next' or 'Search'. <br><dl><dt>Cancel<dd>Any changes to field contents are canceled and reset to the previous values.<dt>Prev<dd>Show the previous row which meets the search criteria.<dt>Next<dd>Show the next row which meets the search criteria.<dt>Delete<dd>This button has to be clicked twice and the shown row will be deleted from the table<dt>Search<dd>With this button a new search is initiated. Any changes made to field contents are saved</dl><li>Buttons on the <b>insert panel:</b><dl><dt>Cancel Insert<dd>After beginning to fill a new row, the insert may be cancelled. The search panel will be shown next.<dt>New Insert<dd>The new row is inserted into the table and a new empty insert panel is shown.<dt>New Search<dd>The new row is inserted into the table and the search panel is shown again.</ul> </dl></dd> </dl> <a name="refresh(org.hsqldb.util.Connection)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="refresh"><b>refresh</b></a> <pre> public void refresh(Connection c) </pre> <dl> <dd> <code>refresh</code> will read again the meta data of the actual database. This is useful after changes of the table structures for instance creating or dropping tables, or altering tabel. The method will be called if one asks to refresh the tree or if the connection to the database is changed. <p> <dd><dl> <dt> <b>Parameters:</b> <dd> c - a <code>Connection</code> is the actual connection to the database </dl></dd> </dl> <hr> <pre> <a href="index.html">Index</a></pre> </body> </html>