Skip to content

Instantly share code, notes, and snippets.

View wittemann's full-sized avatar

Martin Wittemann wittemann

  • Karlsruhe, Germany
View GitHub Profile
@wittemann
wittemann / combobox.js
Created January 18, 2010 09:15
combobox [qx]
var combo = new qx.ui.form.ComboBox();
this.getRoot().add(combo);
var comboTextField = combo.getChildControl("textfield");
comboTextField.setReadOnly(true);​
@wittemann
wittemann / tree.js
Created January 18, 2010 09:14
tree [qx]
var tree = new qx.ui.tree.Tree();
this.getRoot().add(tree);
var root = new qx.ui.tree.TreeFolder("root");
root.setOpen(true);
tree.setRoot(root);
for (var i = 0; i < 10; i++) {
root.add(new qx.ui.tree.TreeFolder(i + ""));
}
@wittemann
wittemann / list.js
Created January 18, 2010 09:14
list [qx]
var list = new qx.ui.form.List();
for (var i = 0; i < 10; i++) {
var item = new qx.ui.form.ListItem("Item " + i, "icon/22/actions/media-playback-start.png")
list.add(item);
}
this.getRoot().add(list);​
@wittemann
wittemann / form.js
Created January 18, 2010 09:13
form [qx]
// create the form
var form = new qx.ui.form.Form();
// configure the required filed message
form.getValidationManager().setRequiredFieldMessage("Fill in!");
// create the first two input fields
var firstname = new qx.ui.form.TextField();
firstname.setRequired(true);
var lastname = new qx.ui.form.TextField();
@wittemann
wittemann / label.js
Created January 18, 2010 09:13
label [qx]
var label = new qx.ui.basic.Label("affe");
this.getRoot().add(label);​
@wittemann
wittemann / gitbug.gist.list.xml
Created January 15, 2010 11:41
gitbug.gist.list.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Martin Wittemann</author>
<documentationURL></documentationURL>
<sampleQuery>select * from {table} where user='wittemann'</sampleQuery>
</meta>
<bindings>
<select itemPath="gists" produces="XML">
<urls>
@wittemann
wittemann / github.gist.xml
Created January 14, 2010 08:56
github.gist.content.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Martin Wittemann</author>
<author>Fabian Jakobs</author>
<documentationURL></documentationURL>
<sampleQuery>select * from {table} where repo='276994'</sampleQuery>
</meta>
<bindings>
<select itemPath="content" produces="XML">