-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
hi, I have a Groupbox, which has a checkbox, some labels and an icon in caption. I want to make the Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}" >="" <br="">
<label value="test"/>
<image src="collapse_plus.png" onclick="controller.togglePanel(self);"/>
</groupbox>
In my controller:
public void togglePanel(final Component tbtn) {
Groupbox gb = getParentComponent(tbtn, Groupbox.class);
data.setPanelOpen(!data.getPanelOpen());
gb.invalidate();
binder.loadComponent(gb);
}
public void checkMember(final Component tbtn) {
//do something else
}
I actually tried to remove all code from checkMember() method and the Groupbox still gets open/close when the checkbox is checked/unchecked.
Please help!!!
Thank You!
2 | No.2 Revision |
hi, I have a Groupbox, which has a checkbox, some labels and an icon in caption. I want to make the Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}" >="" <br="">
<label value="test"/>
<image src="collapse_plus.png" onclick="controller.togglePanel(self);"/>
In my controller:
public void togglePanel(final Component tbtn) {
Groupbox gb = getParentComponent(tbtn, Groupbox.class);
data.setPanelOpen(!data.getPanelOpen());
gb.invalidate();
binder.loadComponent(gb);
}
public void checkMember(final Component tbtn) {
//do something else
}
I actually tried to remove all code from checkMember() method and the Groupbox still gets open/close when the checkbox is checked/unchecked.
Please help!!!
Thank You!
3 | No.3 Revision |
hi, I have a Groupbox, which has a checkbox, some labels and an icon in caption. I want to make the Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}" >="" <br="">
open="@{data.panelOpen}">
<checkbox oncheck="controller.checkMember(self);" checked="@{data.selected}"/>
<label value="test"/>
<image src="collapse_plus.png" onclick="controller.togglePanel(self);"/>
In my controller:
public void togglePanel(final Component tbtn) {
Groupbox gb = getParentComponent(tbtn, Groupbox.class);
data.setPanelOpen(!data.getPanelOpen());
gb.invalidate();
binder.loadComponent(gb);
}
public void checkMember(final Component tbtn) {
//do something else
}
I actually tried to remove all code from checkMember() method and the Groupbox still gets open/close when the checkbox is checked/unchecked.
Please help!!!
Thank You!
4 | No.4 Revision |
hi, I have a Groupbox, which has a checkbox, some labels and an icon in caption. I want to make the Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}">
<checkbox oncheck="controller.checkMember(self);" checked="@{data.selected}"/>
<label value="test"/>
<image src="collapse_plus.png" onclick="controller.togglePanel(self);"/>
In my controller:
public void togglePanel(final Component tbtn) {
Groupbox gb = getParentComponent(tbtn, Groupbox.class);
data.setPanelOpen(!data.getPanelOpen());
gb.invalidate();
binder.loadComponent(gb);
}
public void checkMember(final Component tbtn) {
//do something else
}
I actually tried to remove all code from checkMember() method and the Groupbox still gets open/close when the checkbox is checked/unchecked.
Please help!!!
Thank You!
5 | formatted topic |
hi, Hi, I have a Groupbox, Groupbox, which has a checkbox, checkbox, some labels and an icon in caption. I want to make the Groupbox open/close Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}"> I actually tried to remove all code from checkMember() checkMember()
method and the Groupbox Groupbox
still gets open/close open/close
when the checkbox checkbox
is checked/unchecked.checked/unchecked
.
Please help!!!
Thank You!
6 | No.6 Revision |
Hi, I have a Groupbox, which has a checkbox, some labels and an icon in caption. I want to make the Groupbox open/close only when user clicks the icon in the cation. The icon works fine.
However, whenever I check/uncheck the checkbox, the groupbox is also open/close. I have no idea how this happens. Can somebody help?
Following is my code:
<groupbox id="testGB" open="@{data.panelOpen}">
<caption>
<checkbox onCheck="controller.checkMember(self);" checked="@{data.selected}" />
<label value="test" />
<image src="collapse_plus.png" onClick="controller.togglePanel(self);" />
</caption>
<div id="gbPanel">
...
</div>
</groupbox>
In my controller:
public void togglePanel(final Component tbtn) {
Groupbox gb = getParentComponent(tbtn, Groupbox.class);
data.setPanelOpen(!data.getPanelOpen());
gb.invalidate();
binder.loadComponent(gb);
}
public void checkMember(final Component tbtn) {
//do something else
}
bellow my code sample:
public class Data{
private Boolean panelOpen = false;
public Boolean getPanelOpen() { return panelOpen; }
public void setPanelOpen(Boolean panelOpen) { this.panelOpen = panelOpen; } }
I actually tried to remove all code from checkMember()
method and the Groupbox
still gets open/close
when the checkbox
is checked/unchecked
.
Please help!!!
Thank You!