rem: var about_cmd = new qx.client.Command("F1"); about_cmd.addEventListener("execute", function(e) { alert("qooxdoo feed reader."); }, this);  var toolBar = new qx.ui.toolbar.ToolBar(); toolBar.add(new qx.ui.toolbar.Button(this.trn("Add feed", "Add feeds", 2), "icon/16/button-ok.png")); toolBar.add(new qx.ui.toolbar.Button(this.tr("Remove feed"), "icon/16/button-cancel.png")); toolBar.add(new qx.ui.toolbar.Separator());  var reload_btn = new qx.ui.toolbar.Button(this.tr("Reload"), "icon/16/reload.png"); reload_btn.setCommand(reload_cmd); reload_btn.setToolTip(new qx.ui.popup.ToolTip(this.tr("(%1) Reload the feeds.", reload_cmd.toString()))); toolBar.add(reload_btn);  var lang_btn = new qx.ui.toolbar.RadioButton(this.tr("German"), "icon/16/locale.png"); lang_btn.addEventListener("changeChecked", function(e) { qx.nls.Manager.getInstance().setLocale(e.getData() ? "de" : "en"); }); toolBar.add(lang_btn); lang_btn.setChecked(qx.nls.Manager.getInstance().getLocale() == "de");  toolBar.add(new qx.ui.basic.HorizontalSpacer());  var about_btn = new qx.ui.toolbar.Button(this.tr("Help"), "icon/16/help.png"); about_btn.setCommand(about_cmd); about_btn.setToolTip(new qx.ui.popup.ToolTip("(" + about_cmd.toString() + ")")); toolBar.add(about_btn);  dockLayout.addTop(toolBar); 
add: var reload_cmd = new qx.client.Command("Control+R"); reload_cmd.addEventListener("execute", function(e) { this.fetchFeeds(); this.debug("realoding ..."); }, this); 
context: qx.Proto.main = function(e){	var dockLayout = new qx.ui.layout.DockLayout();	dockLayout.set({		height: "100%",		width: "100%"	});		var header = new qx.ui.embed.HtmlEmbed("<h1><span>qooxdoo</span> reader</h1>");	header.setCssClassName("header");	header.setHeight(50);	dockLayout.addTop(header);	var reload_cmd = new qx.client.Command("Control+R");	reload_cmd.addEventListener("execute", function(e) {		this.fetchFeeds();		this.debug("realoding ...");	}, this);	var about_cmd = new qx.client.Command("F1");	about_cmd.addEventListener("execute", function(e) {		alert("qooxdoo feed reader.");	}, this);		var toolBar = new qx.ui.toolbar.ToolBar();	toolBar.add(new qx.ui.toolbar.Button(this.trn("Add feed", "Add feeds", 2), "icon/16/button-ok.png"));	toolBar.add(new qx.ui.toolbar.Button(this.tr("Remove feed"), "icon/16/button-cancel.png"));	toolBar.add(new qx.ui.toolbar.Separator());		var reload_btn = new qx.ui.toolbar.Button(this.tr("Reload"), "icon/16/reload.png");	reload_btn.setCommand(reload_cmd);	reload_btn.setToolTip(new qx.ui.popup.ToolTip(this.tr("(%1) Reload the feeds.", reload_cmd.toString())));	toolBar.add(reload_btn);		var lang_btn = new qx.ui.toolbar.RadioButton(this.tr("German"), "icon/16/locale.png");	lang_btn.addEventListener("changeChecked", function(e) {	  qx.nls.Manager.getInstance().setLocale(e.getData() ? "de" : "en");	});	toolBar.add(lang_btn);	lang_btn.setChecked(qx.nls.Manager.getInstance().getLocale() == "de");			toolBar.add(new qx.ui.basic.HorizontalSpacer());		var about_btn = new qx.ui.toolbar.Button(this.tr("Help"), "icon/16/help.png");	about_btn.setCommand(about_cmd);	about_btn.setToolTip(new qx.ui.popup.ToolTip("(" + about_cmd.toString() + ")"));	toolBar.add(about_btn);		dockLayout.addTop(toolBar);	var tree = new qx.ui.tree.Tree(this.tr("News feeds"));	tree.setWidth(200);	tree.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);	tree.setBackgroundColor("#EEEEEE");	tree.setMargin(3);		var feedDesc = reader.Application._feedDesc;	for (var i=0; i<feedDesc.length; i++) {		var folder = new qx.ui.tree.TreeFolder(feedDesc[i].name);		tree.getManager().addEventListener("changeSelection", function(e) {			this.displayFeed(e.getData()[0].getLabel());		}, this);		tree.add(folder);			}	dockLayout.addLeft(tree)		this._tableModel = new qx.ui.table.SimpleTableModel();	this._tableModel.setColumnIds(["title", "author", "date"]);	this._tableModel.setColumnNamesById({		title: this.tr("Subject"),		author: this.tr("Sender"),		date: this.tr("Date")	});	 	var table = new qx.ui.table.Table(this._tableModel);	table.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);	table.setHeight(300);	table.getTableColumnModel().setColumnWidth(0, 350);	table.getTableColumnModel().setColumnWidth(1, 200);	table.getTableColumnModel().setColumnWidth(2, 200);	table.getSelectionModel().addEventListener("changeSelection", function(e) {		var selectedEntry = table.getSelectionModel().getAnchorSelectionIndex();		var item = this.getFeeds()[this.getSelectedFeed()][selectedEntry];		this.displayArticle(item);	}, this);		this._blogEntry = new reader.ArticleView();	this._blogEntry.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);			var contentArea = new qx.ui.layout.DockLayout();	contentArea.addTop(table);	contentArea.add(this._blogEntry);	dockLayout.add(contentArea);		dockLayout.addToDocument();		this.fetchFeeds(); };
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/6bdaca01c5b55c0769adbd143b1135c200f5290a/Application.js/clean/qooxdoo/frontend/samples/reader/source/class/reader/Application.js