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(); }