public void onClientInfo$div(ClientInfoEvent event) { telaprincipal.setHeight(event.getDesktopHeight() + "px"); telaprincipal.setWidth((event.getDesktopWidth() - 10) + "px"); north.setSize((event.getDesktopHeight() * 0.037) + "px"); // vlayout.setHeight((event.getDesktopHeight() * 0.246) + "px"); west.setSize((event.getDesktopHeight() * 0.246) + "px"); south.setSize((event.getDesktopHeight() * 0.049) + "px"); ; }
/** * Static Setup - add fields to parameterPanel. * * <pre> * ResourceType Resource DateTimeFrom DateTimeTo New * </pre> */ private void statInit() { fieldFrom.setWidth("180px"); fieldTo.setWidth("180px"); bNew.addEventListener(Events.ON_CLICK, this); Grid grid = GridFactory.newGridLayout(); Rows rows = new Rows(); grid.appendChild(rows); Row row = new Row(); rows.appendChild(row); row.appendChild(fieldResourceType.getLabel().rightAlign()); row.appendChild(fieldResource.getLabel().rightAlign()); row.appendChild(labelFrom.rightAlign()); row.appendChild(labelTo.rightAlign()); row.appendChild(new Label()); row = new Row(); rows.appendChild(row); row.appendChild(fieldResourceType.getComponent()); row.appendChild(fieldResource.getComponent()); Div div = new Div(); div.setStyle("text-align: right;"); div.appendChild(fieldFrom); row.appendChild(div); div = new Div(); div.setStyle("text-align: right;"); div.appendChild(fieldTo); row.appendChild(div); row.appendChild(bNew); layout = new Borderlayout(); layout.setWidth("100%"); layout.setHeight("100%"); if (!isLookup()) { layout.setStyle("position: absolute"); } this.appendChild(layout); North north = new North(); layout.appendChild(north); north.appendChild(grid); Center center = new Center(); layout.appendChild(center); div = new Div(); div.appendChild(contentPanel); if (isLookup()) contentPanel.setWidth("99%"); else contentPanel.setStyle("width: 99%; margin: 0px auto;"); contentPanel.setVflex(true); div.setStyle("width :100%; height: 100%"); center.appendChild(div); div.setVflex("1"); div.setHflex("1"); South south = new South(); layout.appendChild(south); southBody = new Vbox(); southBody.setWidth("100%"); south.appendChild(southBody); southBody.appendChild(confirmPanel); southBody.appendChild(new Separator()); southBody.appendChild(statusBar); }
/** Ststic Init */ void jbInit() throws Exception { label.setText("Label"); Tabs tabs = new Tabs(); tabbox.appendChild(tabs); Tabpanels tabpanels = new Tabpanels(); tabbox.appendChild(tabpanels); tabs.appendChild(new Tab(Msg.getMsg(Env.getCtx(), "PriceHistory"))); tabs.appendChild(new Tab(Msg.translate(Env.getCtx(), "QtyReserved"))); tabs.appendChild(new Tab(Msg.translate(Env.getCtx(), "QtyOrdered"))); tabs.appendChild(new Tab(Msg.getMsg(Env.getCtx(), "QtyUnconfirmed"))); if (m_M_Product_ID != 0) tabs.appendChild(new Tab(Msg.getMsg(Env.getCtx(), "ATP"))); pricePane.setHeight("100%"); pricePane.appendChild(m_tablePrice); tabpanels.appendChild(pricePane); reservedPane.setHeight("100%"); reservedPane.appendChild(m_tableReserved); tabpanels.appendChild(reservedPane); orderedPane.setHeight("100%"); orderedPane.appendChild(m_tableOrdered); tabpanels.appendChild(orderedPane); unconfirmedPane.setHeight("100%"); unconfirmedPane.appendChild(m_tableUnconfirmed); tabpanels.appendChild(unconfirmedPane); if (m_M_Product_ID != 0) { atpPane.setHeight("100%"); atpPane.appendChild(m_tableAtp); tabpanels.appendChild(atpPane); } tabbox.setSelectedIndex(0); tabbox.addEventListener(Events.ON_SELECT, this); confirmPanel.addActionListener(this); Borderlayout borderlayout = new Borderlayout(); this.setWidth("700px"); this.setHeight("400px"); borderlayout.setStyle("border: none; position: relative"); this.appendChild(borderlayout); this.setClosable(true); North north = new North(); north.setStyle("border: none"); borderlayout.appendChild(north); north.appendChild(label); Center center = new Center(); center.setSclass("dialog-content"); center.setAutoscroll(true); borderlayout.appendChild(center); center.appendChild(tabbox); tabbox.setVflex("1"); tabbox.setHflex("1"); South south = new South(); south.setSclass("dialog-footer"); borderlayout.appendChild(south); south.appendChild(confirmPanel); } // jbInit
public void visibilidadSecciones(boolean norte, boolean sur, boolean contcentro) { blNorte.setVisible(norte); blSur.setVisible(sur); contCentro.setVisible(contcentro); }