JGuiGen Demo

From lightwiki
Revision as of 04:49, 12 April 2006 by 10.1.1.1 (Talk)

Jump to: navigation, search

Back to Main Page

  1. Assumed to have installed: sdk, eclipse 3.1.2
  2. svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen
  3. cd jguigen
  4. unzip JGuiGenMisc.zip
  5. ./build.sh
  6. classpath=".:"`echo lib/*.jar | tr " " ":"`
  7. java -cp $classpath JGuiGen
  8. Users
  9. UserDemo
  10. change the social security number
  11. change the start date
  12. change to a different row in the table and show off the validation catch
  13. sort by clicking on a column
  14. right click and drop your jaw
  15. click back in the main window and change the ssn
  16. right click ... choose next
  17. watch validation work again
  18. mention the 10 actions which are already done for me, and I dont have to write code for that correctly validate and make sure the users of my gui do not loose data in irritating ways
    1. changing rows in the table
    2. next in the right click pop-up
    3. previous in the right click pop-up
    4. "Refresh table" in the right click pop-up
    5. Find in the richt click pop-up and in the top menu
    6. Extra in the right click pop-up and the top menu
    7. "Dup" in the right click which means duplicate the current row with a new id number
    8. "Add" in the right click and in the main menu
    9. the exit button in the upper left
    10. and the window close X button in the upper right ... web developers eat your heart out
    11. we may have missed 1 or 2 ... isn't that rediculous
  19. Notice that the font chooser has octothorpes around the text
    1. the code still runs, which anyone whose ever had to do i18n should appreciate, and we can also go in and regenerate the resource bundles for the internationalization of that menu option
  20. Notice that "ExtRa" button ... i should be able to easily find the code for this button in the java and rename it and add my own functionalty to it ... maybe runing a custom report
  21. right click again ... choose inverse look and feel
  22. right click ... choose
  23. Exit out of User Demo
  24. run the User -> UserLogData and watch an empty screen popup
  25. Datadictionary -> Generate Application
  26. Model - creates a class containing an abstract table model for one table.
  27. Order - sort columns into the order you want them to appear in your GUI.
  28. Create Java - actually generate the GUI class
  29. choose .java
  30. JGuiGenMisc - hsql text files, containing JGuiGenDB: Data_Dict, JGuiGen_i18n, UserLogData, CodesBank
  31. tar xf JGuiGen.tar; cd JGuiGen; unzip JGuiGenMisc.zip
  32. classpath=".:"`echo *.jar | tr " " ":"`
  33. javac -classpath $classpath com/*/standard/*.java com/*/standard/XML/*.java com/*/src/*.java JGuiGen.java
  34. vi JGuiGenIni.xml, add table name "Lead", add class name "Lead", add table model name "LeadTm"
  35. launch db admin. sh ./runUtil.sh DatabaseManager ... type: "... Standalone", driver: JGuiGenDb ... Ok
  36. cut and paste new table "Lead"
  37. cut and paste new columns: id, date, address
  38. run JGuiGen from the command line java -cp $classpath JGuiGen
  39. Basic flow ... run JGuiGen and start in the Data Dictionary Menu
    1. Mark Tables - place a check amrk on the "Process Table" field for your new Lead Table
    2. Check Data Dictionary, Leave Flags, Run Now
    3. Edit Data Dict ...Select the Lead table, Do a bunch of stuff for each column
    4. Generate Application (Model, Order, Create Java)
    5. Exit from the Internationalization causes a write
    6. Generate HTML (optional)
  40. Compile and run the new gui
    1. show out-of-the-box features of the gui
    2. View, Add, Edit, Delete ... right click duplicate
    3. Search for some rows
    4. Oh ... what's this? ... Reports!
    5. try closing a window after a change
    6. try changing the row to edit after a change
  41. wash, rinse, repeat ?, ?, ?, and ? showing features
    1. Quickly adding a column, such as: ssn, phone, address
    2. Internationalization
    3. Hot keys
    4. Change validation error message and Test
    5. blast the coffee cup
    6. run test scripts against the gui
    7. show test script output
  42. launch eclipse


Notea about getting JGuiGen installed on SourceForge. I ran into two "issues" while moving a new project to SourceForge as a Subversion version control project. 1. SourceForce wants a Subversion dump file to start with which menat I needed to place JGuiGen into subversion locally. I created a repository using the Tortisesvn client. I imported the files into the repository and checked them out again. Then it was time to create the dump. TortiseSvn doesn't create dump files so I needed to use the command line. No problem. The instructions said use the svnadmin tool to create the dump file. The issue came with figuring out what folder to be in when I ran svnadmin. I finally found out that being in the main repository folder worked. That seems like a strange place to work from but it worked.

2. The instructions on uploading a new project said to use scp and copy the file to scp FILENAME.ZIP USERNAME@shell.sourceforge.net:/home/groups/P/PR/PROJECTNAME/FILENAME.ZIP

I tried this and it didn't work scp jguigen.zip Halepringle@shell.sourceforge.net:/home/groups/P/PR/jguigen.zip.

What they don't mention in these instructions is that the "P/PR" are the first letter and first two letters of our project name. This worked scp jguigen.zip Halepringle@shell.sourceforge.net:/home/groups/J/JG/jguigen.zip.

3. To update the SourceForge web site I used Winscp and logged into shell.sourceforge.net using my sourceforge username and password. That placed me in /home/users/h/ha/halepringle. I navigated to /home/groups/j/jg/jguigen/htdocs and uploaded the web pages. Hale 4/10/2006