 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.dialog.prefs;
22 import java.awt.Component;
23 import java.awt.GridBagLayout;
24 import java.util.prefs.Preferences;
25 import javax.swing.AbstractButton;
26 import javax.swing.Box;
27 import javax.swing.JCheckBox;
28 import javax.swing.JComponent;
29 import javax.swing.JPanel;
30 import javax.swing.border.Border;
31 import javax.swing.border.CompoundBorder;
32 import javax.swing.border.TitledBorder;
36 import net.
sf.japi.swing.action.ActionBuilder;
37 import net.
sf.japi.swing.action.ActionBuilderFactory;
38 import net.
sf.japi.swing.prefs.AbstractPrefs;
39 import org.jetbrains.annotations.NotNull;
68 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
90 add(Box.createVerticalGlue());
129 final JComponent panel =
new JPanel(
new GridBagLayout());
static final ActionBuilder ACTION_BUILDER
Action Builder.
Helper class for preference panes.
Preferences Module for developer preferences.
Base package of all Gridarta classes.
Defines common UI constants used in different dialogs.
AbstractButton systemExit
Use System.exit() for exiting the program.
Graphical User Interface of Gridarta.
static Border createTitledBorder(@NotNull final String titleKey)
Creates a titled border.
static final long serialVersionUID
The serial version UID.
DevPreferences()
Creates a new instance.
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Returns the value of a key.
static final String PREFERENCES_SYSTEM_EXIT
Preferences key for using System.exit().
static final boolean PREFERENCES_SYSTEM_EXIT_DEFAULT
Preferences default value for using System.exit().
Utility class for ActionBuilder related functions.
Border DIALOG_BORDER
The Border object to be used when creating dialogs.
void addComponent(@NotNull final Component component)
Adds a component to the container.
Component createMiscPanel()
Creates the sub-panel with the misc settings.
static final Preferences PREFERENCES
Preferences.
Interface used as preferences location.