 |
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.JComboBox;
29 import javax.swing.JComponent;
30 import javax.swing.JPanel;
31 import javax.swing.border.Border;
32 import javax.swing.border.CompoundBorder;
33 import javax.swing.border.TitledBorder;
38 import net.
sf.japi.swing.action.ActionBuilder;
39 import net.
sf.japi.swing.action.ActionBuilderFactory;
40 import net.
sf.japi.swing.action.ActionMethod;
41 import net.
sf.japi.swing.prefs.AbstractPrefs;
42 import org.jetbrains.annotations.NotNull;
60 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
88 add(Box.createVerticalGlue());
130 final JComponent panel =
new JPanel(
new GridBagLayout());
Preferences Module for update preferences.
static final Preferences PREFERENCES
Preferences.
Helper class for preference panes.
static Border createTitledBorder(@NotNull final String titleKey)
Creates a titled border.
Base package of all Gridarta classes.
Defines common UI constants used in different dialogs.
static final String INTERVAL_KEY
Preferences key for selected update interval.
static final ActionBuilder ACTION_BUILDER
Action Builder.
Component createUpdatePanel()
Creates the sub-panel with the update settings.
Graphical User Interface of Gridarta.
boolean isAutoUpdate()
Returns the auto-update state.
UpdatePreferences()
Creates a new instance.
void setAutoUpdate(final boolean autoUpdate)
Sets the auto-update state.
static final boolean AUTO_CHECK_DEFAULT
Preferences default value for AUTO_CHECK_KEY.
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Returns the value of a key.
static final long serialVersionUID
The serial version UID.
This class handles updating the map editor.
static final String AUTO_CHECK_KEY
Preferences key whether to automatically check for updates.
static final int INTERVAL_DEFAULT
Preferences default value for INTERVAL_KEY.
Component createComboBox()
Creates the component with update choices.
Utility class for ActionBuilder related functions.
AbstractButton autoUpdate
Checkbox whether to automatically check for updates on startup.
JComboBox< String > interval
ComboBox with selected interval.
Border DIALOG_BORDER
The Border object to be used when creating dialogs.
void addComponent(@NotNull final Component component)
Adds a component to the container.
Interface used as preferences location.