Lines Matching refs:panel

86    * The panel contained in the dialog.
88 protected StatusGenericPanel panel;
120 * @param panel the panel contained in this dialog.
122 public GenericDialog(JFrame parentFrame, StatusGenericPanel panel)
125 this.panel = panel;
126 if (panel.requiresBorder())
128 setDefaultBorder(panel);
130 JMenuBar menu = panel.getMenuBar();
136 JScrollPane scroll = Utilities.createScrollPane(panel);
145 if (panel.requiresScroll())
151 inputPanel.add(panel, gbc);
153 if (panel.getButtonType() != ButtonType.NO_BUTTON)
157 inputPanel.add(createButtonsPanel(panel), gbc);
184 addFocusListener(focusListener, panel);
191 GenericDialog.this.panel.closeClicked();
203 * Method used to add a focus listeners to all the components in the panel.
238 lastComponentWithFocus = panel.getPreferredFocusComponent();
245 lastComponentWithFocus = panel.getPreferredFocusComponent();
249 updateDefaultButton(panel);
250 panel.toBeDisplayed(visible);
283 * Updates the title of the dialog using the title of the panel.
288 if (panel.getTitle() != null)
292 panel.getTitle().toString()).toString());
302 private JPanel createButtonsPanel(final StatusGenericPanel panel)
306 ButtonType buttonType = panel.getButtonType();
328 panel.okClicked();
331 okButton.setEnabled(panel.isEnableOK());
341 panel.cancelClicked();
344 cancelButton.setEnabled(panel.isEnableCancel());
362 panel.okClicked();
365 okButton.setEnabled(panel.isEnableOK());
381 panel.closeClicked();
384 closeButton.setEnabled(panel.isEnableClose());
396 * generic panel that it contains.
397 * @param panel the generic panel contained in this dialog.
399 private void updateDefaultButton(StatusGenericPanel panel)
401 ButtonType buttonType = panel.getButtonType();