1 package cz
.cvut
.promod
.gui
.settings
.utils
;
3 import com
.jidesoft
.dialog
.AbstractDialogPage
;
8 import cz
.cvut
.promod
.services
.ModelerSession
;
11 * ProMod, master thesis project
12 * User: Petr Zverina, petr.zverina@gmail.com
13 * Date: 16:32:45, 24.1.2010
16 * Basic settings of the host application for the settings dialog.
18 public class BasicSettingPage
extends AbstractDialogPage
{
20 private static final String SETTINGS_LABEL
= ModelerSession
.getCommonResourceBundle().getString("modeler.settings");
22 private final JLabel label
= ModelerSession
.getComponentFactoryService().createLabel("");
25 public BasicSettingPage(final String name
) {
29 public BasicSettingPage(final String name
, final Icon icon
) {
33 public void lazyInitialize() {
34 label
.setText("[" + getName() + "] " + SETTINGS_LABEL
);
39 public void initLayout() {
40 setLayout(new BorderLayout());
42 label
.setHorizontalAlignment(JLabel
.CENTER
);
44 add(label
, BorderLayout
.CENTER
);