Lines Matching refs:panel

81   /** The panel contained in the frame. */
82 protected StatusGenericPanel panel;
87 * @param panel the panel contained in this frame.
89 public GenericFrame(StatusGenericPanel panel)
92 this.panel = panel;
93 if (panel.requiresBorder())
95 setDefaultBorder(panel);
97 JMenuBar menu = panel.getMenuBar();
103 JScrollPane scroll = Utilities.createScrollPane(panel);
112 if (panel.requiresScroll())
118 inputPanel.add(panel, gbc);
120 if (panel.getButtonType() != ButtonType.NO_BUTTON)
124 inputPanel.add(createButtonsPanel(panel), gbc);
147 addFocusListener(focusListener, panel);
152 GenericFrame.this.panel.closeClicked();
165 * Method used to add a focus listeners to all the components in the panel.
198 lastComponentWithFocus = panel.getPreferredFocusComponent();
204 updateDefaultButton(panel);
205 panel.toBeDisplayed(visible);
238 * Updates the title of the frame using the title of the panel.
243 if (panel.getTitle() != null)
247 panel.getTitle()).toString());
257 private JPanel createButtonsPanel(final StatusGenericPanel panel)
261 ButtonType buttonType = panel.getButtonType();
283 panel.okClicked();
286 okButton.setEnabled(panel.isEnableOK());
296 panel.cancelClicked();
299 cancelButton.setEnabled(panel.isEnableCancel());
317 panel.okClicked();
320 okButton.setEnabled(panel.isEnableOK());
336 panel.closeClicked();
339 closeButton.setEnabled(panel.isEnableClose());
351 * generic panel that it contains.
352 * @param panel the generic panel contained in this frame.
354 private void updateDefaultButton(StatusGenericPanel panel)
356 ButtonType buttonType = panel.getButtonType();