Lines Matching refs:panel

81   /** The panel contained in the dialog. */
82 protected StatusGenericPanel panel;
101 * @param panel the panel contained in this dialog.
103 public GenericDialog(JFrame parentFrame, StatusGenericPanel panel)
106 this.panel = panel;
107 if (panel.requiresBorder())
109 setDefaultBorder(panel);
111 JMenuBar menu = panel.getMenuBar();
117 JScrollPane scroll = Utilities.createScrollPane(panel);
126 if (panel.requiresScroll())
132 inputPanel.add(panel, gbc);
134 if (panel.getButtonType() != ButtonType.NO_BUTTON)
138 inputPanel.add(createButtonsPanel(panel), gbc);
161 addFocusListener(focusListener, panel);
166 GenericDialog.this.panel.closeClicked();
178 * Method used to add a focus listeners to all the components in the panel.
211 lastComponentWithFocus = panel.getPreferredFocusComponent();
217 lastComponentWithFocus = panel.getPreferredFocusComponent();
221 updateDefaultButton(panel);
222 panel.toBeDisplayed(visible);
254 /** Updates the title of the dialog using the title of the panel. */
257 if (panel.getTitle() != null)
260 DynamicConstants.PRODUCT_NAME, panel.getTitle()).toString());
269 private JPanel createButtonsPanel(final StatusGenericPanel panel)
273 ButtonType buttonType = panel.getButtonType();
295 panel.okClicked();
298 okButton.setEnabled(panel.isEnableOK());
308 panel.cancelClicked();
311 cancelButton.setEnabled(panel.isEnableCancel());
329 panel.okClicked();
332 okButton.setEnabled(panel.isEnableOK());
348 panel.closeClicked();
351 closeButton.setEnabled(panel.isEnableClose());
363 * generic panel that it contains.
364 * @param panel the generic panel contained in this dialog.
366 private void updateDefaultButton(StatusGenericPanel panel)
368 ButtonType buttonType = panel.getButtonType();