Moving static methods to the top
This commit is contained in:
parent
6874505ffc
commit
db3d4065b9
1 changed files with 16 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue