Difference between revisions of "JGuiGen Lead Script"
From lightwiki
(→Mark, Check, Describe, and Generate) |
(→The Lead Demo) |
||
Line 87: | Line 87: | ||
# Compile and run the new gui | # Compile and run the new gui | ||
# time ./build.sh | # time ./build.sh | ||
− | ## show | + | # ./run.sh com.halepringle.src.Lead & |
− | # | + | # Read errors and messaged about add mode |
− | ## resize a column | + | # introduce the id, date, and phone |
− | + | # show the phone tool tip | |
− | + | # note the red-dashed line around the required field | |
− | + | # Add a lead | |
− | + | # right click duplicate | |
− | + | # right click duplicate | |
− | + | # right click duplicate | |
+ | # right click duplicate | ||
+ | # delete number 4 | ||
+ | # resize a column | ||
+ | # drag a colummn | ||
+ | # resize the Lead window | ||
+ | # Drag the Lead window | ||
+ | # close the window | ||
+ | # relaunch the window | ||
+ | # mention your suprise at the saved preferences | ||
# wash, rinse, repeat ?, ?, ?, and ? showing features | # wash, rinse, repeat ?, ?, ?, and ? showing features | ||
− | + | ||
− | + | === Adding a Column to the Lead table and GUI === | |
− | + | ||
− | + | # 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 | # launch eclipse |
Revision as of 03:18, 11 May 2006
Back to JGuiGen Demo
Contents
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
- cd jguigen
- unzip JGuiGenMisc.zip
- time ./build.sh
- hide the panel
- xview JGuiGen_Screenshot.jpg & - Elegant CRUD
- maximize it
- rec -c 1 -d /dev/dsp -t wav -r 44100 - | lame -h - junk.mp3
- F8 start recording swf
Create the Lead table
- 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 JGuiGen
Mark, Check, Describe, and Generate
- Starting in the Data Dictionary Menu
- Mark Tables
- choose Lead table
- check "Mark table to be processed"
- information about our leads
- Save
- Exit
- Check Data Dictionary
- Leave Flags
- Run Now
- Browse
- search for "Table: Lead"
- Edit Class Desc
- Select the Lead table
- change number of rows to 6 or 10
- mention coffee cup to my.gif
- Save
- Exit
- Edit Column Desc
- change laf to metal
- show primary key
- show defaults for lead_DATE
- select lead_PHONE
- component -> Telephone
- required field
- the phone number of our lead
- Save
- Exit
- Generate Application
- Model
- Order
- Create Java
- i18n - y for yes in english can become an S in Spanish for Si Senor
- All code generated by JGuiGen can run from within a jar, or as part of a Java Web Start application
- testcase generation
- pops up Lead gui
- saves a new lead
- close Lead gui
- relaunches Lead gui
- finds the row it add
- checks that the values selected are identical to those saved
- Mark Tables
- time ./build.sh
- ./run.sh com.halepringle.src.Lead
The Lead Demo
- Compile and run the new gui
- time ./build.sh
- ./run.sh com.halepringle.src.Lead &
- Read errors and messaged about add mode
- introduce the id, date, and phone
- show the phone tool tip
- note the red-dashed line around the required field
- Add a lead
- right click duplicate
- right click duplicate
- right click duplicate
- right click duplicate
- delete number 4
- resize a column
- drag a colummn
- resize the Lead window
- Drag the Lead window
- close the window
- relaunch the window
- mention your suprise at the saved preferences
- wash, rinse, repeat ?, ?, ?, and ? showing features
Adding a Column to the Lead table and GUI
- 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