WebUI Case(1): www.swt-designer.com 首页 (续)


源代码(续)

tree.js

// Title: Tigra Tree
//
 Description: See the demo at url
//
 URL: http://www.softcomplex.com/products/tigra_menu_tree/
//
 Version: 1.1
//
 Date: 11-12-2002 (mm-dd-yyyy)
//
 Contact: feedback@softcomplex.com (specify product title in the subject)
//
 Notes: This script is free. Visit official site for further details.

function tree (a_items, a_template) {

    
this.a_tpl      = a_template;
    
this.a_config   = a_items;
    
this.o_root     = this;
    
this.a_index    = [];
    
this.o_selected = null;
    
this.n_depth    = -1;
    
    
var o_icone = new Image(),
        o_iconl 
= new Image();
    o_icone.src 
= a_template['icon_e'];
    o_iconl.src 
= a_template['icon_l'];
    a_template['im_e'] 
= o_icone;
    a_template['im_l'] 
= o_iconl;
    
for (var i = 0; i < 128; i++)
        
if (a_template['icon_' + i]) {
            
var o_icon = new Image();
            a_template['im_' 
+ i] = o_icon;
            o_icon.src 
= a_template['icon_' + i];
        }
    
    
this.toggle = function (n_id) { var o_item = this.a_index[n_id]; o_item.open(o_item.b_opened) };
    
this.select = function (n_id) { return this.a_index[n_id].select(); };
    
this.mout   = function (n_id) { this.a_index[n_id].upstatus(true) };
    
this.mover  = function (n_id) { this.a_index[n_id].upstatus() };

    
this.a_children = [];
    
for (var i = 0; i < a_items.length; i++)
        
new tree_item(this, i);

    
this.n_id = trees.length;
    trees[
this.n_id] = this;
    
    
for (var i = 0; i < this.a_children.length; i++) {
        document.write(
this.a_children[i].init());
        
this.a_children[i].open();
    }
}
function tree_item (o_parent, n_order) {

    
this.n_depth  = o_parent.n_depth + 1;
    
this.a_config = o_parent.a_config[n_order + (this.n_depth ? 3 : 0)];
    
if (!this.a_config) return;

    
this.o_root    = o_parent.o_root;
    
this.o_parent  = o_parent;
    
this.n_order   = n_order;
    
this.b_opened  = !this.n_depth;

    
this.n_id = this.o_root.a_index.length;
    
this.o_root.a_index[this.n_id] = this;
    o_parent.a_children[n_order] 
= this;

    
this.a_children = [];
    
for (var i = 0; i < this.a_config.length - 2; i++)
        
new tree_item(this, i);

    
this.get_icon = item_get_icon;
    
this.open     = item_open;
    
this.select   = item_select;
    
this.init     = item_init;
    
this.upstatus = item_upstatus;
    
this.is_last  = function () { return this.n_order == this.o_parent.a_children.length - 1 };
}

function item_open (b_close) {
    
var o_idiv = get_element('i_div' + this.o_root.n_id + '_' + this.n_id);
    
if (!o_idiv) return;
    
    
if (!o_idiv.innerHTML) {
        
var a_children = [];
        
for (var i = 0; i < this.a_children.length; i++)
            a_children[i]
= this.a_children[i].init();
        o_idiv.innerHTML 
= a_children.join('');
    }
    o_idiv.style.display 
= (b_close ? 'none' : 'block');
    
    
this.b_opened = !b_close;
    
var o_jicon = document.images['j_img' + this.o_root.n_id + '_' + this.n_id],
        o_iicon 
= document.images['i_img' + this.o_root.n_id + '_' + this.n_id];
    
if (o_jicon) o_jicon.src = this.get_icon(true);
    
if (o_iicon) o_iicon.src = this.get_icon();
    
this.upstatus();
}

function item_select (b_deselect) {
    
if (!b_deselect) {
        
var o_olditem = this.o_root.o_selected;
        
this.o_root.o_selected = this;
        
if (o_olditem) o_olditem.select(true);
    }
    
var o_iicon = document.images['i_img' + this.o_root.n_id + '_' + this.n_id];
    
if (o_iicon) o_iicon.src = this.get_icon();
    get_element('i_txt' 
+ this.o_root.n_id + '_' + this.n_id).style.fontWeight = b_deselect ? 'normal' : 'bold';
    
    
this.upstatus();
    
return Boolean(this.a_config[1]);
}

function item_upstatus (b_clear) {
    window.setTimeout('window.status
="' + (b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);
}

function item_init () {
    
var a_offset = [],
        o_current_item 
= this.o_parent;
    
for (var i = this.n_depth; i > 1; i--) {
        a_offset[i] 
= '<img src="' + this.o_root.a_tpl[o_current_item.is_last() ? 'icon_e' : 'icon_l'] + '" border="0" align="absbottom">';
        o_current_item 
= o_current_item.o_parent;
    }
    
return a = '<table cellpadding="0" cellspacing="0" border="0"><tr><td nowrap>+ (this.n_depth ? a_offset.join('') + (this.a_children.length
        
? '<a href="javascript: trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')"><img src="' + this.get_icon(true) + '" border="0" align="absbottom" name="j_img' + this.o_root.n_id + '_' + this.n_id + '"></a>'
        : '
<img src="' + this.get_icon(true) + '" border="0" align="absbottom">') : '') 
        
+ '<a href="' + this.a_config[1] 
        + '
" target="' + ((this.a_config[2] != null) ? this.a_config[2] : this.o_root.a_tpl['target']) 
        + '
" onclick="return trees[' + this.o_root.n_id + '].select(' + this.n_id + ')" ondblclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')" class="t' + this.o_root.n_id + 'i" id="i_txt' + this.o_root.n_id + '_' + this.n_id + '"><img src="' + this.get_icon() + '" border="0" align="absbottom" name="i_img' + this.o_root.n_id + '_' + this.n_id + '" class="t' + this.o_root.n_id + 'im">+ this.a_config[0+ '</a></td></tr></table>+ (this.a_children.length ? '<div id="i_div' + this.o_root.n_id + '_' + this.n_id + '" style="display:none"></div>' : '');
}

function item_get_icon (b_junction) {
    
return this.o_root.a_tpl['icon_' + ((this.n_depth ? 0 : 32+ (this.a_children.length ? 16 : 0+ (this.a_children.length && this.b_opened ? 8 : 0+ (!b_junction && this.o_root.o_selected == this ? 4 : 0+ (b_junction ? 2 : 0+ (b_junction && this.is_last() ? 1 : 0))];
}

var trees = [];
get_element 
= document.all ?
    
function (s_id) { return document.all[s_id] } :
    
function (s_id) { return document.getElementById(s_id) };


tree_tpl.js

/*
    Feel free to use your custom icons for the tree. Make sure they are all of the same size.
    User icons collections are welcome, we'll publish them giving all regards.
*/

var tree_tpl = {
    'target'  : 'content',  
// name of the frame links will be opened in
                            // other possible values are: _blank, _parent, _search, _self and _top

    'icon_e'  : 'menu_images
/empty.gif', // empty image
    'icon_l'  : 'menu_images/line.gif',  // vertical line
    
    'icon_48' : 'menu_images
/base.gif',   // root icon normal
    'icon_52' : 'menu_images/base.gif',   // root icon selected
    'icon_56' : 'menu_images/base.gif',   // root icon opened
    'icon_60' : 'menu_images/base.gif',   // root icon selected
    
    'icon_16' : 'menu_images
/folder.gif', // node icon normal
    'icon_20' : 'menu_images/folderopen.gif', // node icon selected
    'icon_24' : 'menu_images/folder.gif', // node icon opened
    'icon_28' : 'menu_images/folderopen.gif', // node icon selected opened

    'icon_0'  : 'menu_images
/page.gif', // leaf icon normal
    'icon_4'  : 'menu_images/page.gif', // leaf icon selected
    'icon_8'  : 'menu_images/page.gif', // leaf icon opened
    'icon_12' : 'menu_images/page.gif', // leaf icon selected
    
    'icon_2'  : 'menu_images
/joinbottom.gif', // junction for leaf
    'icon_3'  : 'menu_images/join.gif',       // junction for last leaf
    'icon_18' : 'menu_images/plusbottom.gif', // junction for closed node
    'icon_19' : 'menu_images/plus.gif',       // junctioin for last closed node
    'icon_26' : 'menu_images/minusbottom.gif',// junction for opened node
    'icon_27' : 'menu_images/minus.gif'       // junctioin for last opended node
};



tree_items.js

/* 
    the format of the tree definition file is simple,
    you can find specification in the Tigra Menu documentation at:
    
    http://www.softcomplex.com/products/tigra_menu/docs/items.html  
*/

var TREE_ITEMS = [
    ['Home', 'home.html', 
null,
        ['Instantiations', 'http:
//www.instantiations.com', "_top"],
        ['Features', 'http://www.instantiations.com/windowbuilderpro/features.html', null],
        ['Comparison', 'http://www.instantiations.com/windowbuilderpro/comparison.html', null],
        ['Roadmap', 'http://www.instantiations.com/windowbuilderpro/roadmap.html', null],
        ['FAQ', 'http://www.instantiations.com/windowbuilderpro/faq.html', null],
        ['Download', 'http://www.instantiations.com/windowbuilderpro/download.html', null],
        ['Order', "http://www.instantiations.com/windowbuilderpro/order.html"null],
        ['Prerequisites', 
"http://www.instantiations.com/windowbuilderpro/docs/prerequisits.html"null],
        ['New 
& Noteworthy', 'http://www.instantiations.com/windowbuilderpro/docs/introduction/new_and_noteworthy_411.html', null,
            ['v4.1.1', "http://www.instantiations.com/windowbuilderpro/docs/introduction/new_and_noteworthy_411.html"null],
            ['v4.
1.0', "http://www.instantiations.com/windowbuilderpro/docs/introduction/new_and_noteworthy_410.html"null],
            ['v4.
0.0', "http://www.instantiations.com/windowbuilderpro/docs/introduction/new_and_noteworthy_400.html"null],
            ['v3.
0.0', "http://www.instantiations.com/windowbuilderpro/docs/introduction/new_and_noteworthy_300.html"null],
        ],
        ['Documentation', 
"http://www.instantiations.com/windowbuilderpro/docs.html"null,
            ['License', 
"http://www.instantiations.com/windowbuilderpro/docs/license.html"null],
            ['Non
-Commercial License', "http://www.instantiations.com/windowbuilderpro/docs/non_commercial_license.html"null],
            ['Comprehensive Tutorial', 
"http://www.cs.umanitoba.ca/~eclipse/12-Designer.pdf"null],
            ['Introduction', 
"http://www.instantiations.com/windowbuilderpro/docs/introduction/overview.html"null,
                ['Overview', 
"http://www.instantiations.com/windowbuilderpro/docs/introduction/overview.html"null],
                ['System Requirements', 
"http://www.instantiations.com/windowbuilderpro/docs/introduction/system.html"null],
                ['Acknowledgements', 
"http://www.instantiations.com/windowbuilderpro/docs/introduction/acknowledgements.html"null],
            ],
            ['Getting Started', 
"http://www.instantiations.com/windowbuilderpro/docs/gettingstarted/installation.html"null,
                ['Installation', 
"http://www.instantiations.com/windowbuilderpro/docs/gettingstarted/installation.html"null,
                    ['Installation Notes', 
"http://www.instantiations.com/windowbuilderpro/docs/install.html"null],
                ],
                ['Activation', 
"http://www.instantiations.com/windowbuilderpro/docs/gettingstarted/activation.html"null],
                ['Creating a 
new project', "http://www.instantiations.com/windowbuilderpro/docs/gettingstarted/newproject.html"null],
                ['Configuring an existing project', 
"http://www.instantiations.com/windowbuilderpro/docs/gettingstarted/existingproject.html"null],
            ],
            ['Using the Designer', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/new_swt_file.htm"null,
                ['Command Reference', 
"http://www.instantiations.com/windowbuilderpro/docs/commands/commands.html"null],
                ['Creating a 
new window', "http://www.instantiations.com/windowbuilderpro/docs/tutorial/new_swt_file.htm"null],
                ['Editing an existing window', 
"http://www.instantiations.com/windowbuilderpro/docs/usingdesigner/existingwindow.html"null],
                ['Parts of the Designer', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/parts_of_the_designer.htm"null,
                    ['Design Page', 
"http://www.instantiations.com/windowbuilderpro/docs/usingdesigner/designpage.html"null],
                    ['Content Pane', 
"http://www.instantiations.com/windowbuilderpro/docs/usingdesigner/contentpane.html"null],
                    ['Control Palette', 
"http://www.instantiations.com/windowbuilderpro/docs/usingdesigner/controlpalette.html"null],
                    ['Inspector', 
"http://www.instantiations.com/windowbuilderpro/docs/usingdesigner/inspector.html"null],
                    ['Inspector Buttons', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/open_definition_convert_local.htm"null],
                    ['Editor Layout Options', 
"http://www.instantiations.com/windowbuilderpro/shots/editor_layout.html"null],
                ],
                ['Creating menus', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/creating_menus.htm"null],
                ['Handling Events', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/handling_events.htm"null],
                ['Morphing', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/morphing.htm"null],
                ['Templates', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/templates.htm"null],
                ['Palettes', 
"http://www.instantiations.com/windowbuilderpro/docs/palettes/palettes.html"null],
                ['Internationalization (i18n)', 
"http://www.instantiations.com/windowbuilderpro/docs/nls/nls.html"null],
                ['Additional Features', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/additional_features.htm"null],
                ['Code Generation', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/code_generation_options.htm"null,
                    ['Code Generation Options', 
"http://www.instantiations.com/windowbuilderpro/shots/code_generation.html"null],
                    ['Type Specific Options', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/type_specific_options.htm"null],
                ],
                ['Layout Managers', 
"http://www.instantiations.com/windowbuilderpro/docs/layoutmanagers/layoutmanagers.html"null,
                    ['Using Layout Managers', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/layout_managers.htm"null],
                    ['Null Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/NullLayout.htm"null],
                    ['Fill Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/FillLayout.htm"null],
                    ['Row Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/RowLayout.htm"null],
                    ['Grid Layout (SWT)', 
"http://www.instantiations.com/windowbuilderpro/docs/layoutmanagers/swt_gridlayout.html"null],
                    ['Form Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/FormLayout.htm"null,
                        ['FormLayout Options', 
"http://www.instantiations.com/windowbuilderpro/shots/formlayout.html"null],
                    ],
                    ['Stack Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/StackLayout.htm"null],
                    ['Border Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/SWT_BorderLayout.htm"null],
                    ['Flow Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/SWT_FlowLayout.htm"null],
                    ['Grid Layout (AWT)', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/SWT_GridLayout.htm"null],
                    ['Card Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/CardLayout.htm"null],
                    ['GridBag Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_gridbaglayout.html"null],
                    ['Spring Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/SpringLayout.htm"null],
                    ['JGoodies FormLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/layoutmanagers/jgoodies_formlayout.html"null],
                ],
                ['Wizards', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/new_swt_file.htm"null,
                    ['SWT Application', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/new_swt_file.htm"null],
                    ['JFace Dialog', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/jface_dialogs.htm"null],
                    ['JFace Wizard Page', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/jface_wizard_page.htm"null],
                    ['JFace Viewers', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/jface_viewers.htm"null],
                    ['JFace Application', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/jface_application.htm"null],
                ],
                ['Original User Guide [Obsolete]', 
"http://www.instantiations.com/windowbuilderpro/docs.html"null],
            ],
            ['Wizards', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizards.html"null
                ['SWT
/JFace Java Project', "http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swt_project.html"null],
                ['SWT', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swt_application.html"null,
                    ['Application Window', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swt_application.html"null],
                    ['Composite', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swt_composite.html"null],
                    ['Shell', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swt_shell.html"null],
                ],
                ['JFace', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_jface_dialog.html"null,
                    ['Dialog', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_jface_dialog.html"null],
                    ['TitleAreaDialog', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_jface_titleareadialog.html"null],
                    ['ApplicationWindow', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_jface_applicationwindow.html"null],
                    ['WizardPage', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_jface_wizardpage.html"null],
                ],
                ['RCP', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_eclipse_viewpart.html"null,
                    ['EditorPart', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_eclipse_editorpart.html"null],
                    ['ViewPart', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_eclipse_viewpart.html"null],
                    ['PreferencePage', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_eclipse_preferencepage.html"null],
                    ['PropertyPage', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_eclipse_propertypage.html"null],
                ],
                ['Forms', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_forms_formpage.html"null,
                    ['FormPage', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_forms_formpage.html"null],
                    ['DetailsPage', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_forms_detailspage.html"null],
                    ['MasterDetailsBlock', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_forms_masterdetailsblock.html"null],
                ],
                ['Swing', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_jframe.html"null,
                    ['JFrame', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_jframe.html"null],
                    ['JPanel', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_jpanel.html"null],
                    ['JDialog', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_jdialog.html"null],
                    ['JInternalFrame', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_jinternalframe.html"null],
                    ['JApplet', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_japplet.html"null],
                    ['Application Window', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_swing_application.html"null],
                ],
                ['Examples', 
"http://www.instantiations.com/windowbuilderpro/docs/wizards/wizard_examples.html"null],
            ],
            ['Preferences', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences.html"null
                ['Code Generation', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_code_generation.html"null,
                    ['Code Parsing', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_code_parsing.html"null],
                    ['Local Variables', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_local_variables.html"null],
                    ['Type Specific', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_type_specific.html"null],
                    ['Variable Names', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_variable_names.html"null],
                ],
                ['Editor Layout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_editor_layout.html"null],
                ['General', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_general.html"null],
                ['License', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_license.html"null],
                ['NLS', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_nls.html"null],
                ['Property Manager', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_property_manager.html"null],
                ['Swing', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing.html"null,
                    ['Custom Controls', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_custom_controls.html"null],
                    ['GridBagLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_gridbaglayout.html"null],
                    ['JGoodies FormLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_jgoodies_formlayout.html"null],
                    ['Look and Feel', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_look_and_feel.html"null],
                    ['SpringLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swing_springlayout.html"null],
                ],
                ['SWT', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt.html"null,
                    ['Custom Controls', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt_custom_controls.html"null],
                    ['FormLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt_formlayout.html"null],
                    ['Forms API', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt_forms_api.html"null],
                    ['GridLayout', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt_gridlayout.html"null],
                    ['PreferencePage', 
"http://www.instantiations.com/windowbuilderpro/docs/preferences/preferences_swt_preferencepage.html"null],
                ],
            ],
            ['Examples', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/examples.htm"null,
                ['SWT Address Book', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/example_address_book.htm"null],
                ['SWT Client Billing', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/example_swt_client_billing.htm"null],
                ['Swing Client Billing', 
"http://www.instantiations.com/windowbuilderpro/docs/tutorial/example_swing_client_billing.htm"null],
                ['Quick Tutorial', 
"http://www.instantiations.com/windowbuilderpro/docs/SWTDesigner.pdf"null],
            ],
        ],
        ['Tutorials 
& Articles', "http://www.instantiations.com/windowbuilderpro/tutorials.html"null,
            ['Swing Articles', 
"http://www.instantiations.com/windowbuilderpro/tutorials.html"null,
                ['Swing FAQ', 
"http://www.jguru.com/faq/Swing"null],
                ['Suns Swing Tutorial', 
"http://java.sun.com/docs/books/tutorial/uiswing/"null],
                ['Fundamentals of JFC
/Swing: Part 1', "http://java.sun.com/developer/onlineTraining/GUI/Swing1/index.html"null],
                ['Fundamentals of JFC
/Swing: Part 2', "http://java.sun.com/developer/onlineTraining/GUI/Swing2/index.html"null],
                ['Effective Layout Management: Short Course', 
"http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html"null],
                ['Quick Swing Tutorial 
for AWT users', "http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/"null],
                ['JavaBeans Short Course', 
"http://java.sun.com/developer/onlineTraining/Beans/JBShortCourse/index.html"null],
                ['JGoodies FormLayout', 
"http://www.jgoodies.com/freeware/forms/index.html"null],
               ['JFC Swing
- The SpringLayout Class', "http://www.oreillynet.com/pub/a/onjava/2002/09/11/layout.html"null],
               ['OReilly Swing Examples', 
"http://examples.oreilly.com/jswing2/code/"null],
             ],
            ['SWT Articles', 
"http://www.instantiations.com/windowbuilderpro/tutorials.html"null,
                ['SWT FAQ', 
"http://www.instantiations.com/windowbuilderpro/swt_faq.html"null],
                ['SWT: The Standard Widget Toolkit 
- 1', "http://www.eclipse.org/articles/Article-SWT-Design-1/SWT-Design-1.html"null],
                ['SWT: The Standard Widget Toolkit 
- 2', "http://www.eclipse.org/articles/swt-design-2/swt-design-2.html"null],
                ['Understanding Layouts 
in SWT', "http://www.eclipse.org/articles/Article-Understanding%20Layouts/Understanding%20Layouts.htm"null],
                ['Getting Started 
with Eclipse and SWT', "http://www.cs.umanitoba.ca/~eclipse"null],
                ['Building a table editor 
with SWT/JFace', "http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html"null],
                ['How to use the JFace Tree Viewer', 
"http://www.eclipse.org/articles/treeviewer-cg/TreeViewerArticle.htm"null],
                ['Creating JFace Wizards', 
"http://www.eclipse.org/articles/Article-JFace%20Wizards/wizardArticle.html"null],
                ['Eclipse Forms Programming Guide', 
"http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/pde-ui-home/working/EclipseForms/EclipseForms.html"null],
                ['SWT Snippets', 
"http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html#snippets"null],
                ['A small cup of SWT (
for the Pocket PC)', "http://www.eclipse.org/articles/Article-small-cup-of-swt/pocket-PC.html"null],
                ['Using the Eclipse GUI outside of Eclipse', 
"http://www-106.ibm.com/developerworks/java/library/os-ecgui1"null],
                ['GUI Creation 
with SWT Designer', "http://www.instantiations.com/windowbuilderpro/docs/SWTDesigner.pdf"null],
            ],
        ],
        ['Screen Shots', 
"http://www.instantiations.com/windowbuilderpro/shots.html"null,
            ['SWT Samples', 
"http://www.instantiations.com/windowbuilderpro/shots/main.html"null],
            ['Swing Samples', 
"http://www.instantiations.com/windowbuilderpro/shots/swing.html"null],
            ['Linux Sample', 
"http://www.instantiations.com/windowbuilderpro/shots/gtk.html"null],
            ['Property Editor', 
"http://www.instantiations.com/windowbuilderpro/shots/prop.html"null],
            ['Sample Application', 
"http://www.instantiations.com/windowbuilderpro/shots/sample.html"null],
            ['Fake Eclipse', 
"http://www.instantiations.com/windowbuilderpro/shots/fakeeclipse.html"null],
            ['Code Generation Options', 
"http://www.instantiations.com/windowbuilderpro/shots/code_generation.html"null],
            ['Editor Layout Options', 
"http://www.instantiations.com/windowbuilderpro/shots/editor_layout.html"null],
            ['SWT FormLayout', 
"http://www.instantiations.com/windowbuilderpro/shots/formlayout.html"null],
            ['JGoodies FormLayout', 
"http://www.instantiations.com/windowbuilderpro/shots/jgoodies_formlayout.html"null],
            ['SWT BIDI', 
"http://www.instantiations.com/windowbuilderpro/shots/swt_bidi.html"null],
        ],
        ['Demos', 'http:
//www.instantiations.com/windowbuilderpro/demos.html', null,
            ['Swing Example', "http://www.instantiations.com/windowbuilderpro/demos/SwingExample.html""_top"],
            ['Visual Inheritance', 
"http://www.instantiations.com/windowbuilderpro/demos/VisualInheritance.html""_top"],
            ['Designing JFace Dialogs', 
"http://www.instantiations.com/windowbuilderpro/demos/demo1.html""_top"],
            ['Designing JFace Wizard Pages', 
"http://www.instantiations.com/windowbuilderpro/demos/demo3.html""_top"],
            ['Designing JFace Application Windows', 
"http://www.instantiations.com/windowbuilderpro/demos/AppWindow.html""_top"],
            ['NLS Tools', 
"http://www.instantiations.com/windowbuilderpro/demos/NLSExample.html""_top"],
            ['Designing Menus', 
"http://www.instantiations.com/windowbuilderpro/demos/demo4.html""_top"],
            ['Fast Event Handlers Access', 
"http://www.instantiations.com/windowbuilderpro/demos/demo2.html""_top"],
            ['Using FormLayout', 
"http://www.instantiations.com/windowbuilderpro/demos/FormLayout.html""_top"],
            ['Using GridBagLayout', 
"http://www.instantiations.com/windowbuilderpro/demos/GridBagLayout.html""_top"],
            ['Using SpringLayout', 
"http://www.instantiations.com/windowbuilderpro/demos/springLayout.html""_top"],
            ['Creating Custom Composites', 
"http://www.instantiations.com/windowbuilderpro/demos/CustomComposites.html""_top"],
            ['Using Templates', 
"http://www.instantiations.com/windowbuilderpro/demos/Templates.html""_top"],
        ],
        ['Complementary Products', 'http:
//www.instantiations.com/codepro', "_top",
            ['SWT Designer', "http://www.swt-designer.com""_top"],
            ['Swing Designer', 
"http://www.swing-designer.com""_top"],
            ['Analytics 
& Testing Tools', "http://www.instantiations.com/codepro/analytix/default.htm""_top",
                ['Code Auditing', 
"http://www.instantiations.com/codepro/codeaudit.htm""_top"],
                ['Metrics', 
"http://www.instantiations.com/codepro/metrics.htm""_top"],
            ],
            ['Developer Productivity Tools', 
"http://www.instantiations.com/codepro/pluspak/default.htm""_top"],
        ],
        ['Contacts', 'http:
//www.instantiations.com/windowbuilderpro/contacts.html', null],
        ['Reviews & Comments', 'http://www.instantiations.com/windowbuilderpro/reviews.html', null],
        ['Discussion Club / Support Forum', "http://www.instantiations.com/forum/index.htm"null]
    ]
];

posted @ 2005-09-30 14:11  xiaotie  阅读(1219)  评论(0编辑  收藏  举报