I found the radiomanager and tried to implement it, but for some
reason all I get is a blank page. When I remove the radiomanager the
page displays correctly. I am totally stumped, my manager is at the
end of the code, scroll down to the end to see it(starts with var
rg1). I know it sucks reading through long code but if anyone could
help me figure this out I would be most grateful.
- Daniel
var d = qx.ui.core.ClientDocument.getInstance();
var inline_div = new qx.ui.basic.Inline("TreeView1");
inline_div.setHeight("auto");
inline_div.setWidth("auto");
var trsroot =
qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Items");
var TreeView1 = new qx.ui.treefullcontrol.Tree(trsroot);
var trs = null;
trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("ONE");
var p_0 = new qx.ui.treefullcontrol.TreeFolder(trs);
p_0.tag=0;
TreeView1.add(p_0);
trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("sub1");
var p_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
p_1.tag=0;
p_0.add(p_1);
trs2 = qx.ui.treefullcontrol.TreeRowStructure.getInstance().newRow();
trs2.addIndent();
c_1 = new qx.ui.form.CheckBox(null, "23", null,
Math.floor(Math.random() * 2) == 0 ? false : true);
c_1.setPadding(0, 0);
trs2.addObject(c_1, true);
trs2.addLabel("lowestUnder1NUMBEr2");
var p_2 = new qx.ui.treefullcontrol.TreeFile(trs2);
p_2.tag=0;
p_1.add(p_2);
trs2 = qx.ui.treefullcontrol.TreeRowStructure.getInstance().newRow();
trs2.addIndent();
c_2 = new qx.ui.form.CheckBox(null, "23", null,
Math.floor(Math.random() * 2) == 0 ? false : true);
c_2.setPadding(0, 0);
trs2.addObject(c_2, true);
trs2.addLabel("lowestUnder1");
var p_2 = new qx.ui.treefullcontrol.TreeFile(trs2);
p_2.tag=0;
p_1.add(p_2);
trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("TWO");
var p_0 = new qx.ui.treefullcontrol.TreeFolder(trs);
p_0.tag=0;
TreeView1.add(p_0);
trs2 = qx.ui.treefullcontrol.TreeRowStructure.getInstance().newRow();
trs2.addIndent();
c_3 = new qx.ui.form.CheckBox(null, "23", null,
Math.floor(Math.random() * 2) == 0 ? false : true);
c_3.setPadding(0, 0);
trs2.addObject(c_3, true);
trs2.addLabel("sub2");
var p_1 = new qx.ui.treefullcontrol.TreeFile(trs2);
p_1.tag=0;
p_0.add(p_1);
trs2 = qx.ui.treefullcontrol.TreeRowStructure.getInstance().newRow();
trs2.addIndent();
c_4 = new qx.ui.form.CheckBox(null, "23", null,
Math.floor(Math.random() * 2) == 0 ? false : true);
c_4.setPadding(0, 0);
trs2.addObject(c_4, true);
trs2.addLabel("THREE");
var p_0 = new qx.ui.treefullcontrol.TreeFile(trs2);
p_0.tag=0;
TreeView1.add(p_0);
TreeView1.setUseDoubleClick(true);
TreeView1.setUseTreeLines(true);
TreeView1.setHideNode(true);
TreeView1.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);
TreeView1.setBackgroundColor("white");
TreeView1.setLeft(0);
TreeView1.setTop(0);
TreeView1.setOpen(1);
TreeView1.setOverflow("scroll");
TreeView1.setWidth(368);
TreeView1.setHeight(311);
var rg1 = new qx.ui.selection.RadioManager("mygroup", [c_1, c_2, c_3,
c_4]); TreeView1.setEnabled(true);
TreeView1.setVisibility(true);
d.add(inline_div);
inline_div.add(TreeView1);
On 6/5/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> FrozenDice <[EMAIL PROTECTED]> writes:
>
> > So I have my tree and it had checkboxes, now it has radiobuttons.
> > What I'm trying to do here is make a menu where you go through the
> > tree, and the last level(the leaves/"files") have radiobuttons.
> >
> > Ex. Data->
> > Display ->
> > {} html
> > {} text
> > Another ->
> > {} options for that setting
> >
> > The radiobuttons work, they just aren't in groups. In other words I
> > click them and it will change to checked but the others in that
> > setting won't deselect. If I for example was in Display and text was
> > checked, but then I clicked html, then html will select but text
> > doesn't unselect. How can I make sort of groups for these?
> >
> > Are there any radiobutton tutorials?
>
> Take a look at the radio button examples. IIRC, you need to tell the
> selection manager which radio buttons are grouped.
>
> Derrell
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel