JGuiGen Lead Script
From lightwiki
Revision as of 03:26, 27 April 2006 by Vsingleton (Talk | contribs)
Back to JGuiGen Demo
The demo pre-script
- ./rec.sh
- rm -rf ~vds/.java/
- cd ~vds/downloads
- rm -rf jguigen
- enter password
- cd ~vds/downloads
- If you have not checked out the code then:
- svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen
- Checking out of the latest JGuiGen source code
- In case this is your first time hearing about JGuiGen ... it is all about J for Java, Gui for Graphical User Interfaces, and the Generation thereof, hence "J" ... "Gui" ... "Gen"
- Some have said that they'd rather write code that writes code than just write code.
- So again what we are checking out here is code that compiles in order to generate code that compiles in order to render GUIs that allow users to do something I call ... View, add, edit, and delete from a table.
- The big picture here is that we will be able to quickly generate a screen that allows users to view, add, edit, and delete entries from a table.
- Another person called this "Elegant CRUD" which sounds like an oxymoron where CRUD stands for Create, review, update, and delete ... or as I translate it ... add, view, edit, delete
- Only the most motivated, high speed, open source development allowed ... no holding back
- grabbing the latest source using subversion on sourceforge.net
- The jars, a 3 MB sample database, help files, and of course the source ... there it is
- we have revision ...
- Let's get down to business in JGuiGen
- cd jguigen
- ls -l - looks like a normal project folder
- here's some images ... here's a lib for supporting libraries ...
- all code here is under the Gnu General Public License ... the GPL
- unzip JGuiGenMisc.zip - these are starter files that we usually don't want other folks committing back into the source, such as configuration files that you'll need to customize for yourself when you are generating your own Graphical User Interfaces here ... and other files that you will need to ...
- time ./build.sh
- svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen
- hide the panel
- xview JGuiGen_Screenshot.jpg & - Elegant CRUD
- maximize it
- throw it into workspace 2
- rec -c 1 -d /dev/dsp -t wav -r 44100 - | lame -h - junk.mp3
- F8 start recording swf
Generating a screen for the Lead table
- chmod 0755 ./runUtil.sh
- sh ./runUtil.sh DatabaseManager
- type: "... Standalone"
- driver: JGuiGenDb
- Ok
- cut and paste new table "Lead"
- cut and paste the index
- discuss the table columns
- lead_ID integer identity
- lead_DATE timestamp
- lead_PHONE char(20)
- isremoved smallint - the deleted flag
- lastchangedby char(20) - for sanity and multi user functionality
- lastchangeddate timestamp default null - for validation and multi user functionality
- ./run.sh
- Starting in the Data Dictionary Menu
- Mark Tables - place a check mark on the "Process Table" field for your new Lead Table
- Check Data Dictionary, Leave Flags, Run Now
- Edit Data Dict ... Select the Lead table
- Generate Application
- Model
- Order
- Create Java
The Lead Demo
- Compile and run the new gui
- time ./build.sh
- show out-of-the-box features of the gui
- View, Add, Edit, Delete ... right click duplicate
- Search for some rows
- Oh ... what's this? ... Reports!
- try closing a window after a change
- try changing the row to edit after a change
- wash, rinse, repeat ?, ?, ?, and ? showing features
- Quickly adding a column, such as: ssn, phone, address
- Internationalization
- Hot keys
- Change validation error message and Test
- blast the coffee cup
- run test scripts against the gui
- show test script output
- launch eclipse