Java Doc for ZaurusEditor.java in  » Database-DBMS » hsql » org » hsqldb » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Panel
   org.hsqldb.util.ZaurusEditor

ZaurusEditor
public class ZaurusEditor extends Panel implements ActionListener(Code)
ZaurusEditor implements an search/input/edit form to search/view/update/insert table records.
author:
   ulrivo@users
version:
   1.0
version:
  


version:
   Starting on a search panel, one can choose a table from the actual
version:
   database. The list contains only tables which have a primary key
version:
   defined.
version:
   One may provide one or more words which are to be contained in the
version:
   rows of the table.
version:
  


version:
   There are three options in searching these words:
version:
  


    version:
      
  • Use search words: all or any
    version:
      

    version:
       Only rows which contain all words in any column will be
    version:
       found. Alternatively, it is sufficient when any of the
    version:
       words is contained in one of the columns.
    version:
      

    version:
      
  • Ignore case :
    version:
      

    version:
       While searching, there is no difference between lower or upper case
    version:
       letters, if this optioned is set to 'yes',
    version:
      

    version:
      
  • Match whole column:
    version:
      

    version:
       It is sufficient that the given word is just a part of any
    version:
       column. For instance, the word 'ring' will be found as part of
    version:
       'Stringer'. Alternatively, the column content must match the search
    version:
       word completely.
    version:
      


version:
   After choosing a table, typing one or more search words and
version:
   choosing some search options, the button Search Rows initiates
version:
   the search through the table.
version:
  
Alternatively, the button New Row will open an empty input
version:
   panel for inserting a new row for the choosen table.
In both cases,
version:
   a table specific panel with an entry field per column is shown.



Field Summary
 intaktHoldNr
    
 ButtonbCancel1bPrevbNextbDeletebNewSearch
    
 ButtonbCancel2bNewInsertbNewSearch1
    
 ButtonbSearchRowbNewRow
    
 ConnectioncConn
    
 ChoicecTables
    
 DatabaseMetaDatadbmeta
    
 TextFieldfSearchWords
    
 CheckboxGroupgAllWords
    
 CheckboxGroupgIgnoreCase
    
 CheckboxGroupgNoMatchWhole
    
 CardLayoutlFormlButton
    
 booleanlastButtonDelete
    
 PanelpFormpButton
    
 PanelpSearchButspEditButspInsertButs
    
static  TextFieldtStatus
    
 VectorvHoldForms
    
 VectorvHoldTableNames
    

Constructor Summary
public  ZaurusEditor()
    

Method Summary
public  voidactionPerformed(ActionEvent e)
     actionPerformed method is the main entry point which interprets the buttons and initiates the actions.
Parameters:
  e - an ActionEvent value is been sent to ZaurusEditor as ActionListener

The possible events are:

  • Buttons on the searchpanel:
    Search Row
    Starts the search of rows inthe choosen table with the given search words and searchoptions.
public static  voidclearStatus()
     The class method clearStatus deletes the status line.
public static  voidprintStatus(String text)
     printStatus prints a text into the status line below the panel.
public  voidrefresh(Connection c)
     refresh will read again the meta data of the actual database.

Field Detail
aktHoldNr
int aktHoldNr(Code)



bCancel1bPrevbNextbDeletebNewSearch
Button bCancel1bPrevbNextbDeletebNewSearch(Code)



bCancel2bNewInsertbNewSearch1
Button bCancel2bNewInsertbNewSearch1(Code)



bSearchRowbNewRow
Button bSearchRowbNewRow(Code)



cConn
Connection cConn(Code)



cTables
Choice cTables(Code)



dbmeta
DatabaseMetaData dbmeta(Code)



fSearchWords
TextField fSearchWords(Code)



gAllWords
CheckboxGroup gAllWords(Code)



gIgnoreCase
CheckboxGroup gIgnoreCase(Code)



gNoMatchWhole
CheckboxGroup gNoMatchWhole(Code)



lFormlButton
CardLayout lFormlButton(Code)



lastButtonDelete
boolean lastButtonDelete(Code)



pFormpButton
Panel pFormpButton(Code)



pSearchButspEditButspInsertButs
Panel pSearchButspEditButspInsertButs(Code)



tStatus
static TextField tStatus(Code)



vHoldForms
Vector vHoldForms(Code)



vHoldTableNames
Vector vHoldTableNames(Code)




Constructor Detail
ZaurusEditor
public ZaurusEditor()(Code)
Constructor declaration




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
actionPerformed method is the main entry point which interprets the buttons and initiates the actions.
Parameters:
  e - an ActionEvent value is been sent to ZaurusEditor as ActionListener

The possible events are:

  • Buttons on the searchpanel:
    Search Row
    Starts the search of rows inthe choosen table with the given search words and searchoptions. Without any search words, all rows will be found.
    If no row meets the criteria, there will be a message in thestatus line.
    New Row
    An empty input panel for thechoosen table is given. Any search words areignored.
  • Buttons on the edit panel:
    Anychanges to field values on this panel will be updated to thetable when the actual row is left, i. e. when pressing one ofthe buttons 'Prev', 'Next' or'Search'.
    Cancel
    Any changes to field contentsare canceled and reset to the previous values.
    Prev
    Showthe previous row which meets the searchcriteria.
    Next
    Show the next row which meets the searchcriteria.
    Delete
    This button has to be clicked twice andthe shown row will be deleted from the table
    Search
    Withthis button a new search is initiated. Any changes made tofield contents are saved
  • Buttons on the insertpanel:
    Cancel Insert
    After beginning to fill anew row, the insert may be cancelled. The search panel will beshown next.
    New Insert
    The new row is inserted into thetable and a new empty insert panel is shown.
    NewSearch
    The new row is inserted into the table and the searchpanel is shown again.



clearStatus
public static void clearStatus()(Code)
The class method clearStatus deletes the status line.



printStatus
public static void printStatus(String text)(Code)
printStatus prints a text into the status line below the panel.
Parameters:
  text - a String value will be shown



refresh
public void refresh(Connection c)(Code)
refresh 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.
Parameters:
  c - a Connection is the actual connection tothe database



Methods inherited from java.awt.Panel
public void addNotify()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.