use of org.zkoss.zk.au.out.AuScript in project adempiere by adempiere.
the class NavBar2Desktop method autoHideMenu.
private void autoHideMenu() {
if (layout.getWest().isCollapsible() && !layout.getWest().isOpen()) {
//using undocumented js api, need to be retested after every version upgrade
String id = layout.getWest().getUuid() + "!real";
String btn = layout.getWest().getUuid() + "!btn";
String script = "zk.show('" + id + "', false);";
script += "$e('" + id + "')._isSlide = false;";
script += "$e('" + id + "')._lastSize = null;";
script += "$e('" + btn + "').style.display = '';";
AuScript aus = new AuScript(layout.getWest(), script);
Clients.response("autoHideWest", aus);
}
}
use of org.zkoss.zk.au.out.AuScript in project adempiere by adempiere.
the class LayoutUtils method sendDeferLayoutEvent.
/**
* @param layout
*/
public static void sendDeferLayoutEvent(Borderlayout layout, int timeout) {
StringBuilder content = new StringBuilder();
content.append("ad_deferRenderBorderLayout('").append(layout.getUuid()).append("',").append(timeout).append(");");
AuScript as = new AuScript(null, content.toString());
Clients.response("deferRenderBorderLayout", as);
}
Aggregations