rem:  var trsInstance = qx.ui.treefullcontrol.TreeRowStructure.getInstance(); var trs = trsInstance.standard(module.dbFile);  
context: qx.Proto._buildPageBrowse = function(module, page){  var fsm = module.fsm;  // Create a horizontal splitpane for tree (left) and table (right)  var splitpane = new qx.ui.splitpane.HorizontalSplitPane("1*", "2*");  splitpane.setEdge(0);  // We need a vertical box layout for the tree and the buttons  var vlayout = new qx.ui.layout.VerticalBoxLayout();  vlayout.set({               height: "100%",               top: 5,               left: 5,               right: 5,               bottom: 5,               spacing: 10           });  // Create a tree row structure for the tree root  var trsInstance = qx.ui.treefullcontrol.TreeRowStructure.getInstance();  var trs = trsInstance.standard(module.dbFile);  // Create the tree and set its characteristics  var tree = new qx.ui.treefullcontrol.Tree(trs);  tree.set({               backgroundColor: 255,               border: qx.renderer.border.BorderPresets.getInstance().inset,               overflow: "auto",               height: "1*",               open: false,               alwaysShowPlusMinusSymbol: true           });  // All subtrees will use this root node's event listeners.  Create an event  // listener for an open while empty.  tree.addEventListener("treeOpenWhileEmpty", fsm.eventListener, fsm);  // All subtrees will use this root node's event listeners.  Create an event  // listener for selection changed, to populate attribute/value table  tree.getManager().addEventListener("changeSelection",                                     fsm.eventListener,                                     fsm);  // We'll be receiving events on the tree object, so save its friendly name  fsm.addObject("tree", tree);  fsm.addObject("tree:manager", tree.getManager());  // Add the tree to the vlayout.  vlayout.add(tree);  // Add an horizonatl layout for the "New" and "Modify" buttons  // We need a vertical box layout for the tree and the buttons  var hlayout = new qx.ui.layout.HorizontalBoxLayout();  hlayout.set({               height: "auto",               spacing: 10           });  // Add the "New" button  this._newb = new qx.ui.form.Button("New");  this._newb.addEventListener("execute", this._switchToNewrecord, this);  // Add the button to the hlayout  hlayout.add(this._newb);  // Add the "New" button  this._modb = new qx.ui.form.Button("Modify");  this._modb.addEventListener("execute", this._switchToModrecord, this);  // Add the button to the hlayout  hlayout.add(this._modb);    // Add the hlayout to the vlayout.  vlayout.add(hlayout);  //Add the left vlayout to the splitpane  splitpane.addLeft(vlayout);  // Create a simple table model  var tableModel = new qx.ui.table.SimpleTableModel();  tableModel.setColumns([ "Attribute", "Value" ]);  tableModel.setColumnEditable(0, false);  tableModel.setColumnEditable(1, false);  fsm.addObject("tableModel:browse", tableModel);  // Create a table  this._table = new qx.ui.table.Table(tableModel);  this._table.set({                top: 10,                left: 0,                right: 0,                bottom: 10,                statusBarVisible: false,                columnVisibilityButtonVisible: false            });  this._table.setColumnWidth(0, 180);  this._table.setColumnWidth(1, 320);  this._table.setMetaColumnCounts([1, -1]);  fsm.addObject("table:browse", this._table);  //table.setDisplay(false);  // Add the table to the bottom portion of the splitpane  splitpane.addRight(this._table);  // Build the create/modify widget  this._ldbmod = new swat.module.ldbbrowse.LdbModify(fsm);  this._ldbmod.set({                top: 10,                left: 0,                right: 0,                bottom: 10            });  // Not displayed by default  this._ldbmod.setDisplay(false);  fsm.addObject("ldbmod", this._ldbmod);  splitpane.addRight(this._ldbmod);  // Add the first splitpane to the page  page.add(splitpane);};
meta: 502	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/502/d3eef7270d033fa0e37c07291065389bc746881f/Gui.js/clean/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js