Moving static methods to the top

This commit is contained in:
Óscar González Fernández 2009-10-19 12:32:00 +02:00
parent 6874505ffc
commit db3d4065b9

View file

@ -55,6 +55,22 @@ public class MultipleTabsPlannerController implements Composer {
public static final String BREADCRUMBS_SEPARATOR = "/common/img/migas_separacion.gif";
@SuppressWarnings("unchecked")
static void createBindingsFor(org.zkoss.zk.ui.Component result) {
List<org.zkoss.zk.ui.Component> children = new ArrayList<org.zkoss.zk.ui.Component>(
result.getChildren());
for (org.zkoss.zk.ui.Component child : children) {
createBindingsFor(child);
}
setBinderFor(result);
}
private static void setBinderFor(org.zkoss.zk.ui.Component result) {
AnnotateDataBinder binder = new AnnotateDataBinder(result, true);
result.setVariable("binder", binder, true);
binder.loadAll();
}
private TabsConfiguration tabsConfiguration;
private Mode mode = Mode.initial();
@ -115,22 +131,6 @@ public class MultipleTabsPlannerController implements Composer {
.add(ordersTab);
}
@SuppressWarnings("unchecked")
static void createBindingsFor(org.zkoss.zk.ui.Component result) {
List<org.zkoss.zk.ui.Component> children = new ArrayList<org.zkoss.zk.ui.Component>(
result.getChildren());
for (org.zkoss.zk.ui.Component child : children) {
createBindingsFor(child);
}
setBinderFor(result);
}
private static void setBinderFor(org.zkoss.zk.ui.Component result) {
AnnotateDataBinder binder = new AnnotateDataBinder(result, true);
result.setVariable("binder", binder, true);
binder.loadAll();
}
@Override
public void doAfterCompose(org.zkoss.zk.ui.Component comp) throws Exception {
tabsSwitcher = (TabSwitcher) comp;