/** * Static Init * * @throws Exception */ private void jbInit() throws Exception { Charset[] charsets = Ini.getAvailableCharsets(); for (int i = 0; i < charsets.length; i++) fCharset.appendItem(charsets[i].displayName(), charsets[i]); bFile.setLabel(Msg.getMsg(Env.getCtx(), "FileImportFile")); bFile.setTooltiptext(Msg.getMsg(Env.getCtx(), "FileImportFileInfo")); bFile.addEventListener(Events.ON_CLICK, this); fCharset.setMold("select"); fCharset.setRows(0); fCharset.setTooltiptext(Msg.getMsg(Env.getCtx(), "Charset", false)); info.setValue(" "); labelFormat.setValue(Msg.translate(Env.getCtx(), "AD_ImpFormat_ID")); pickFormat.setMold("select"); pickFormat.setRows(0); bNext.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next")); bNext.setLabel(">"); bNext.addEventListener(Events.ON_CLICK, this); record.setValue("------"); bPrevious.setTooltiptext(Msg.getMsg(Env.getCtx(), "Previous")); bPrevious.setLabel("<"); bPrevious.addEventListener(Events.ON_CLICK, this); northPanel.appendChild(bFile); northPanel.appendChild(fCharset); northPanel.appendChild(info); northPanel.appendChild(labelFormat); northPanel.appendChild(pickFormat); northPanel.appendChild(bPrevious); northPanel.appendChild(record); northPanel.appendChild(bNext); rawData.setWidth("100%"); rawData.setCols(80); rawData.setRows(MAX_SHOWN_LINES); rawData.setHeight("40%"); previewPanel.setWidth("100%"); previewPanel.setHeight("58%"); previewPanel.setStyle("overflow: auto"); centerPanel.setWidth("100%"); // Elaine 2008/11/07 - fix text area is not expanded in IE7 centerPanel.setHeight("100%"); centerPanel.appendChild(rawData); centerPanel.appendChild(new Separator()); centerPanel.appendChild(previewPanel); confirmPanel.addActionListener(Events.ON_CLICK, this); }
/** Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule) */ private void loadBankInfo() { BankInfo bi = (BankInfo) fieldBankAccount.getSelectedItem().getValue(); if (bi == null) return; labelCurrency.setText(bi.Currency); labelBalance.setText(m_format.format(bi.Balance)); // PaymentRule fieldPaymentRule.removeAllItems(); ArrayList<ValueNamePair> paymentRuleData = getPaymentRuleData(bi); for (ValueNamePair vp : paymentRuleData) fieldPaymentRule.appendItem(vp.getName(), vp); fieldPaymentRule.setSelectedIndex(0); } // loadBankInfo
/** * Apply Current Pattern * * @param next next */ private void cmd_applyFormat(boolean next) { if (m_format == null || m_data.size() == 0) return; // set position if (next) m_record++; else m_record--; if (m_record < 0) m_record = 0; else if (m_record >= m_data.size()) m_record = m_data.size() - 1; record.setValue(" " + String.valueOf(m_record + 1) + " "); // Line Info String[] lInfo = m_format.parseLine( m_data.get(m_record).toString(), false, true, false); // no label, trace, no ignore int size = m_format.getRowCount(); if (lInfo.length != size) log.log(Level.SEVERE, "FormatElements=" + size + " != Fields=" + lInfo.length); for (int i = 0; i < size; i++) { m_fields[i].setText(lInfo[i]); // m_fields[i].setCaretPosition(0); } } // cmd_applyFormat
/** Reload/Load file */ private void cmd_reloadFile() { if (m_file_istream == null) return; m_data.clear(); rawData.setText(""); try { // see NaturalAccountMap ListItem listitem = fCharset.getSelectedItem(); Charset charset = null; if (listitem == null) return; charset = (Charset) listitem.getValue(); BufferedReader in = new BufferedReader(new InputStreamReader(m_file_istream, charset), 10240); // not safe see p108 Network pgm String s = null; String concat = ""; while ((s = in.readLine()) != null) { m_data.add(s); concat += s; concat += "\n"; if (m_data.size() < MAX_LOADED_LINES) { rawData.setValue(concat); } } in.close(); } catch (Exception e) { log.log(Level.SEVERE, "", e); bFile.setLabel(Msg.getMsg(Env.getCtx(), "FileImportFile")); } int index = 1; // second line as first may be heading if (m_data.size() == 1) index = 0; int length = 0; if (m_data.size() > 0) length = m_data.get(index).toString().length(); info.setValue( Msg.getMsg(Env.getCtx(), "Records") + "=" + m_data.size() + ", " + Msg.getMsg(Env.getCtx(), "Length") + "=" + length + " "); // setCursor (Cursor.getDefaultCursor()); log.config("Records=" + m_data.size() + ", Length=" + length); } // cmd_loadFile
/** Load Format */ private void cmd_loadFormat() { // clear panel previewPanel.getChildren().clear(); ListItem listitem = pickFormat.getSelectedItem(); String formatName = (String) listitem.getValue(); if (formatName.equals(s_none)) return; m_format = ImpFormat.load(formatName); if (m_format == null) { FDialog.error(m_WindowNo, this, formatName); return; } // pointers int size = m_format.getRowCount(); m_labels = new Label[size]; m_fields = new Textbox[size]; for (int i = 0; i < size; i++) { ImpFormatRow row = m_format.getRow(i); m_labels[i] = new Label(row.getColumnName()); Hbox hbox = new Hbox(); hbox.setWidth("100%"); hbox.setWidths("30%, 70%"); hbox.setStyle("padding-bottom: 3px"); hbox.appendChild(m_labels[i].rightAlign()); int length = row.getEndNo() - row.getStartNo(); if (length <= 5) length = 5; else if (length > 20) length = 20; m_fields[i] = new Textbox(); m_fields[i].setStyle("margin-left: 2px"); hbox.appendChild(m_fields[i]); previewPanel.appendChild(hbox); } m_record = -1; record.setValue("------"); previewPanel.invalidate(); } // cmd_format
public void onEvent(Event e) throws Exception { if (m_setting) return; // Update Assignment ListItem listItem = fResource.getSelectedItem(); KeyNamePair resource = listItem != null ? new KeyNamePair((Integer) listItem.getValue(), listItem.getLabel()) : null; if (resource != null) { int S_Resource_ID = resource.getKey(); m_mAssignment.setS_Resource_ID(S_Resource_ID); } Calendar date = new GregorianCalendar(); getDateAndTimeFrom(date); Timestamp assignDateFrom = new Timestamp(date.getTimeInMillis()); if (assignDateFrom != null) m_mAssignment.setAssignDateFrom(assignDateFrom); if (fQty.getValue() != null) { BigDecimal qty = fQty.getValue(); m_mAssignment.setQty(qty); } m_mAssignment.setName((String) fName.getValue()); m_mAssignment.setDescription((String) fDescription.getValue()); // Resource - Look up UOM if (e.getTarget() == fResource) { Object o = m_lookup.get(fResource.getSelectedItem()); if (o == null) lUOM.setValue(" ? "); else lUOM.setValue(o.toString()); } // Zoom - InfoResource else if (e.getTarget().getId().equals("Zoom")) { InfoSchedule is = new InfoSchedule(m_mAssignment, true); if (is.getMResourceAssignment() != null) { m_mAssignment = is.getMResourceAssignment(); // setDisplay(); detach(); } is = null; } // cancel - return else if (e.getTarget().getId().equals("Cancel")) { m_cancel = true; detach(); } // delete - delete and return else if (e.getTarget().getId().equals("Delete")) { if (m_mAssignment.delete(true)) { m_mAssignment = null; detach(); } else FDialog.error(0, this, "ResourceAssignmentNotDeleted"); } // OK - Save else if (e.getTarget().getId().equals("Ok")) { if (cmd_save()) detach(); } }
/** Calculate selected rows. - add up selected rows */ public void calculateSelection() { dataStatus.setText(calculateSelection(miniTable)); // bGenerate.setEnabled(m_noSelected != 0); } // calculateSelection
/** * Static Init * * @throws Exception */ private void zkInit() throws Exception { // form.appendChild(mainPanel); mainPanel.appendChild(mainLayout); mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0"); mainLayout.setHeight("100%"); mainLayout.setWidth("99%"); parameterPanel.appendChild(parameterLayout); // labelBankAccount.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID")); fieldBankAccount.addActionListener(this); labelBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID")); fieldBPartner.addActionListener(this); bRefresh.addActionListener(this); labelPayDate.setText(Msg.translate(Env.getCtx(), "PayDate")); labelPaymentRule.setText(Msg.translate(Env.getCtx(), "PaymentRule")); fieldPaymentRule.addActionListener(this); labelDtype.setText(Msg.translate(Env.getCtx(), "C_DocType_ID")); fieldDtype.addActionListener(this); // labelBankBalance.setText(Msg.translate(Env.getCtx(), "CurrentBalance")); labelBalance.setText("0"); onlyDue.setText(Msg.getMsg(Env.getCtx(), "OnlyDue")); dataStatus.setText(" "); dataStatus.setPre(true); // bGenerate.addActionListener(this); bCancel.addActionListener(this); // North north = new North(); north.setStyle("border: none"); mainLayout.appendChild(north); north.appendChild(parameterPanel); Rows rows = parameterLayout.newRows(); Row row = rows.newRow(); row.appendChild(labelBankAccount.rightAlign()); row.appendChild(fieldBankAccount); row.appendChild(labelBankBalance.rightAlign()); Panel balancePanel = new Panel(); balancePanel.appendChild(labelCurrency); balancePanel.appendChild(labelBalance); row.appendChild(balancePanel); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(labelBPartner.rightAlign()); row.appendChild(fieldBPartner); row.appendChild(new Space()); row.appendChild(onlyDue); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(labelDtype.rightAlign()); row.appendChild(fieldDtype); row.appendChild(new Space()); row.appendChild(new Space()); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(labelPayDate.rightAlign()); row.appendChild(fieldPayDate.getComponent()); row.appendChild(labelPaymentRule.rightAlign()); row.appendChild(fieldPaymentRule); row.appendChild(bRefresh); South south = new South(); south.setStyle("border: none"); mainLayout.appendChild(south); southPanel = new Panel(); southPanel.appendChild(dataStatus); south.appendChild(southPanel); Center center = new Center(); mainLayout.appendChild(center); center.appendChild(miniTable); // commandPanel.addButton(bGenerate); commandPanel.getButton(ConfirmPanel.A_OK).setVisible(false); } // jbInit
public void addField(MBrowseField field, Row row, String name, String title) { GridFieldVO voBase = GridFieldVO.createStdField(field.getCtx(), p_WindowNo, 0, 0, 0, false, false, false); String uniqueName = field.getAD_View_Column().getColumnSQL(); voBase.isProcess = true; voBase.IsDisplayed = true; voBase.IsReadOnly = false; voBase.IsUpdateable = true; voBase.WindowNo = p_WindowNo; voBase.AD_Column_ID = field.getAD_View_Column().getAD_Column_ID(); voBase.AD_Table_ID = field.getAD_View_Column().getAD_Column().getAD_Table_ID(); voBase.ColumnName = field.getAD_View_Column().getAD_Column().getColumnName(); voBase.displayType = field.getAD_Reference_ID(); voBase.AD_Reference_Value_ID = field.getAD_Reference_Value_ID(); voBase.IsMandatory = field.isMandatory(); voBase.IsAlwaysUpdateable = false; voBase.IsKey = field.isKey(); voBase.DefaultValue = field.getDefaultValue(); voBase.DefaultValue2 = field.getDefaultValue2(); voBase.InfoFactoryClass = field.getInfoFactoryClass(); voBase.FieldLength = field.getFieldLength(); voBase.ReadOnlyLogic = field.getReadOnlyLogic(); voBase.DisplayLogic = field.getDisplayLogic(); voBase.VFormat = field.getVFormat(); voBase.ValueMin = field.getValueMin(); voBase.ValueMax = field.getValueMax(); voBase.ValidationCode = field.getAD_Val_Rule().getCode(); voBase.isRange = field.isRange(); voBase.Description = field.getDescription(); voBase.Help = uniqueName; voBase.Header = title; GridField gField = new GridField(GridFieldVO.createParameter(voBase)); GridField gField2 = null; WEditor editor = WebEditorFactory.getEditor(gField, false); editor.setReadWrite(true); editor.addValueChangeListener(this); editor.dynamicDisplay(); gField.addPropertyChangeListener(editor); Object defaultObject = null; Object defaultObject2 = null; // Set Default if (field.getAD_View_Column().getAD_Column_ID() > 0) { defaultObject = gField.getDefault(); if (defaultObject != null && field.getDefaultValue() != null) { gField.setValue(defaultObject, true); editor.setValue(defaultObject); } } gField.lookupLoadComplete(); m_mFields.add(gField); m_wEditors.add(editor); if (DisplayType.YesNo != field.getAD_Reference_ID()) { Div div = new Div(); div.setAlign("right"); org.adempiere.webui.component.Label label = editor.getLabel(); label.setValue(title); div.appendChild(label); if (label.getDecorator() != null) div.appendChild(label.getDecorator()); row.appendChild(div); } row.appendChild(editor.getComponent()); setParameter(name, editor); if (field.isRange()) { title = Msg.getMsg(Env.getCtx(), "To"); name = name + "_To"; voBase.Header = title; voBase.DefaultValue = field.getDefaultValue2(); gField2 = new GridField(GridFieldVO.createParameter(voBase)); gField2.lookupLoadComplete(); WEditor editor2 = WebEditorFactory.getEditor(gField2, false); editor2.setReadWrite(true); editor2.addValueChangeListener(this); editor2.dynamicDisplay(); // Set Default if (field.getAD_View_Column().getAD_Column_ID() > 0) { defaultObject2 = gField2.getDefault(); if (defaultObject2 != null && field.getDefaultValue2() != null) { gField2.setValue(defaultObject2, true); editor2.setValue(defaultObject2); } } m_mFields2.add(gField2); m_wEditors2.add(editor2); Div div = new Div(); div.setAlign("right"); org.adempiere.webui.component.Label label = editor2.getLabel(); label.setValue(title); div.appendChild(label); if (label.getDecorator() != null) div.appendChild(label.getDecorator()); row.appendChild(div); row.appendChild(editor2.getComponent()); setParameter(name, editor2); } else { m_mFields2.add(null); m_wEditors2.add(null); } if (gField != null) processNewValue(defaultObject, gField.getVO().Help); if (gField2 != null) processNewValue(defaultObject2, gField2.getVO().Help); }
/** * 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); }
/** Set Label to product or bp name */ private void fillLabel(String sql, int parameter) { if (log.isLoggable(Level.FINE)) log.fine(sql + "; Parameter=" + parameter); String retValue = DB.getSQLValueString(null, sql, parameter); if (retValue != null) label.setText(retValue); } // fillLabel
/** 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
private void zkInit() { form.appendChild(mainLayout); mainLayout.setWidth("99%"); mainLayout.setHeight("100%"); parameterPanel.appendChild(parameterLayout); lGroup = new Label(Msg.getMsg(Env.getCtx(), "Group")); lBPartner = new Label(Msg.getMsg(Env.getCtx(), "Teacher")); lDateFrm = new Label(Msg.getMsg(Env.getCtx(), "Date")); lSubject = new Label(Msg.getMsg(Env.getCtx(), "Subject")); North north = new North(); north.setStyle("border: none"); mainLayout.appendChild(north); north.appendChild(parameterPanel); Rows rows = null; Row row = null; parameterLayout.setWidth("800px"); rows = parameterLayout.newRows(); row = rows.newRow(); row.appendChild(lGroup); row.appendChild(fGroup.getComponent()); row.appendChild(lBPartner); row.appendChild(fBPartner.getComponent()); row = rows.newRow(); row.appendChild(lDateFrm); row.appendChild(fDateFrom.getComponent()); row.appendChild(lSubject); row.appendChild(fSubject.getComponent()); row = rows.newRow(); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(new Space()); row.appendChild(periodControl); Span span = new Span(); span.setParent(periodControl); span.setStyle("height: 99%; display: inline-block; width: 20%;"); span.appendChild(bBack); span = new Span(); span.setParent(periodControl); span.setStyle("height: 99%; display: inline-block; width: 10%;"); span.appendChild(lPeriod); span = new Span(); span.setParent(periodControl); span.setStyle("height: 99%; display: inline-block; width: 20%;"); span.appendChild(bNext); row.appendChild(new Space()); row.appendChild(bSave); Center center = new Center(); center.setFlex(true); center.appendChild(mainPanel); span = new Span(); span.setParent(mainPanel); span.setStyle("height: 99%; display: inline-block; width: 10%;"); span.appendChild(labelGrid); labelGrid.setWidth("90%"); rows = labelGrid.newRows(); row = rows.newRow(); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(new Space()); row = rows.newRow(); row.appendChild(lDay.rightAlign()); row = rows.newRow(); row.appendChild(new Space()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lUnit.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lLesson.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lStage.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lActivity.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lHomework.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lValues.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lComments.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lLink.rightAlign()); row = rows.newRow(); row.setHeight("35px"); row.appendChild(lImage.rightAlign()); for (PlanBookDay planDay : planDays) { span = new Span(); span.setParent(mainPanel); span.setStyle("height: 99%; display: inline-block; width: 16%;"); span.appendChild(planDay); } mainLayout.appendChild(center); }
private void initLayout() { txtDocumentNo.setWidth("100%"); txtDescription.setWidth("100%"); txtOrderRef.setWidth("100%"); dateFrom.setWidth("165px"); dateTo.setWidth("165px"); amountFrom.getDecimalbox().setWidth("155px"); amountTo.getDecimalbox().setWidth("155px"); Grid grid = GridFactory.newGridLayout(); Rows rows = new Rows(); grid.appendChild(rows); Row row = new Row(); rows.appendChild(row); row.appendChild(lblDocumentNo.rightAlign()); row.appendChild(txtDocumentNo); row.appendChild(editorBPartner.getLabel().rightAlign()); row.appendChild(editorBPartner.getComponent()); row.appendChild(isSoTrx); row = new Row(); row.setSpans("1, 1, 1, 2"); rows.appendChild(row); row.appendChild(lblDescription.rightAlign()); row.appendChild(txtDescription); row.appendChild(lblDateOrdered.rightAlign()); Hbox hbox = new Hbox(); hbox.appendChild(dateFrom); hbox.appendChild(new Label("-")); hbox.appendChild(dateTo); row.appendChild(hbox); row = new Row(); row.setSpans("1, 1, 1, 2"); rows.appendChild(row); row.appendChild(lblOrderRef.rightAlign()); row.appendChild(txtOrderRef); row.appendChild(lblGrandTotal.rightAlign()); hbox = new Hbox(); hbox.appendChild(amountFrom); hbox.appendChild(new Label("-")); hbox.appendChild(amountTo); row.appendChild(hbox); 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); center.setFlex(true); Div 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); 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); }