Lines Matching refs:panel

87    * The panel contained in the dialog.
89 protected StatusGenericPanel panel;
121 * @param panel the panel contained in this dialog.
123 public GenericDialog(JFrame parentFrame, StatusGenericPanel panel)
126 this.panel = panel;
127 if (panel.requiresBorder())
129 setDefaultBorder(panel);
131 JMenuBar menu = panel.getMenuBar();
137 JScrollPane scroll = Utilities.createScrollPane(panel);
146 if (panel.requiresScroll())
152 inputPanel.add(panel, gbc);
154 if (panel.getButtonType() != ButtonType.NO_BUTTON)
158 inputPanel.add(createButtonsPanel(panel), gbc);
185 addFocusListener(focusListener, panel);
192 GenericDialog.this.panel.closeClicked();
204 * Method used to add a focus listeners to all the components in the panel.
239 lastComponentWithFocus = panel.getPreferredFocusComponent();
246 lastComponentWithFocus = panel.getPreferredFocusComponent();
250 updateDefaultButton(panel);
251 panel.toBeDisplayed(visible);
284 * Updates the title of the dialog using the title of the panel.
289 if (panel.getTitle() != null)
293 panel.getTitle().toString()).toString());
303 private JPanel createButtonsPanel(final StatusGenericPanel panel)
307 ButtonType buttonType = panel.getButtonType();
329 panel.okClicked();
332 okButton.setEnabled(panel.isEnableOK());
342 panel.cancelClicked();
345 cancelButton.setEnabled(panel.isEnableCancel());
363 panel.okClicked();
366 okButton.setEnabled(panel.isEnableOK());
382 panel.closeClicked();
385 closeButton.setEnabled(panel.isEnableClose());
397 * generic panel that it contains.
398 * @param panel the generic panel contained in this dialog.
400 private void updateDefaultButton(StatusGenericPanel panel)
402 ButtonType buttonType = panel.getButtonType();