/** * Initialize form panel. */ public void initializeFormPanel() { this.formPanel.setFrame(true); this.formPanel.setLayout(new FlowLayout()); initSizeFormPanel(); addComponentToForm(); addButtons(); }
private void showPanelData(AppEvent event) { if (this.ruleRowEditor.store != null) { this.ruleRowEditor.store.removeAll(); } else { this.ruleRowEditor.createStore(); } if (!this.ruleRowEditor.isRendered()) { this.ruleRowEditor.initGrid(); this.ruleRowEditor.setFrame(true); this.ruleRowEditor.setLayout(new FlowLayout()); this.ruleRowEditor.formPanel.setFrame(true); this.ruleRowEditor.formPanel.setLayout(new FlowLayout()); this.ruleRowEditor.initSizeFormPanel(); this.ruleRowEditor.addComponentToForm(); } this.ruleRowEditor.store.add(((GridStatus) event.getData()).getModel()); this.ruleRowEditor.setClosable(false); this.ruleRowEditor.show(); this.ruleRowEditor.formPanel.show(); this.ruleRowEditor.grid.repaint(); }
private void showPanel(AppEvent event) { if (this.ruleRowEditor.store != null) { this.ruleRowEditor.store.removeAll(); } this.ruleRowEditor.createStore(); this.ruleRowEditor.store.add((RuleModel) event.getData()); this.ruleRowEditor.initGrid(); if (!this.ruleRowEditor.formPanel.isRendered()) { this.ruleRowEditor.formPanel.setFrame(true); this.ruleRowEditor.formPanel.setLayout(new FlowLayout()); } if (!this.ruleRowEditor.isRendered()) { this.ruleRowEditor.initializeFormPanel(); this.ruleRowEditor.setFrame(true); this.ruleRowEditor.setLayout(new FlowLayout()); this.ruleRowEditor.initSizeFormPanel(); } this.ruleRowEditor.setModel((RuleModel) event.getData()); this.ruleRowEditor.addComponentToForm(); this.ruleRowEditor.setClosable(false); this.ruleRowEditor.show(); this.ruleRowEditor.formPanel.show(); this.ruleRowEditor.repaint(); this.ruleRowEditor.formPanel.repaint(); }
@Override protected void onRender(Element target, int index) { super.onRender(target, index); body.setStyleAttribute("background", "none"); form = new El(DOM.createForm()); form.setStyleAttribute("overflow", "hidden"); body.appendChild(form.dom); setMethod(method); setTarget(this.target); if (encoding != null) { setEncoding(encoding); } if (action != null) { setAction(action); } getLayoutTarget().setStyleAttribute("padding", padding + "px"); if (getLayout() == null) { FormLayout layout = new FormLayout(); layout.setDefaultWidth(fieldWidth); layout.setLabelWidth(labelWidth); layout.setLabelAlign(labelAlign); layout.setLabelSeparator(labelSeparator); layout.setHideLabels(hideLabels); setLayout(layout); } form.addEventsSunk(Event.ONLOAD); setAriaRole("region"); }
formPanel.setHeaderVisible(false); formPanel.setFrame(true); formPanel.setLayout(new FlowLayout());