import com.sencha.gxt.widget.core.client.container.CssFloatLayoutContainer;
public class myApp{
private CssFloatLayoutContainer a;
private CssFloatLayoutContainer b;
private Image aButton;
private Image bButton;
private IsWidget getIcons() {
a= new CssFloatLayoutContainer();
a.setStyleFloat(Float.RIGHT);
b= new CssFloatLayoutContainer();
b.setStyleFloat(Float.RIGHT);
// Icon a
a.add(aButton);
// Icon b
a.add(bButton);
b.add(bButtion);
if (true) {
a.hide();
retu b;
} else {
retu a;
}
}
}
I can't find bButton in my page, then I checked the source code and I find it just has aButton. Anyone who can tell me why this situation can happens?
