private void adjustAppearanceToFitDialog(final FormT form) { if (!form.isRendered()) { form.setHeaderVisible(false); form.setFrame(false); } }
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(); }