 |
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 javax.swing.AbstractButton;
25 import javax.swing.Box;
26 import javax.swing.JCheckBox;
27 import javax.swing.JComponent;
28 import javax.swing.JPanel;
29 import javax.swing.JTextField;
30 import javax.swing.border.Border;
31 import javax.swing.border.CompoundBorder;
32 import javax.swing.border.TitledBorder;
33 import javax.swing.text.JTextComponent;
40 import net.
sf.japi.swing.action.ActionBuilder;
41 import net.
sf.japi.swing.action.ActionBuilderFactory;
42 import net.
sf.japi.swing.prefs.AbstractPrefs;
43 import org.jetbrains.annotations.NotNull;
61 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
128 add(Box.createVerticalGlue());
179 final JComponent panel =
new JPanel(
new GridBagLayout());
193 final JComponent panel =
new JPanel(
new GridBagLayout());
208 final JComponent panel =
new JPanel(
new GridBagLayout());
Swing FileFilter implementation that filters map files.
JTextComponent exitArchetypeName
The archetype name for auto-creating exits.
boolean AUTO_CREATE_EXIT_DEFAULT
The default value for isAutoCreateExit().
void setExitArchetypeName(@NotNull String exitArchetypeName)
Sets the archetype name for creating exit game objects.
static boolean isPerformingRealChecks()
Get whether to actually perform real checks or just file endings.
Helper class for preference panes.
AbstractButton pasteExitName
Check box to set whether the map name should be pasted into exit game objects.
Base package of all Gridarta classes.
Defines common UI constants used in different dialogs.
void setPasteExitName(boolean pasteExitName)
Sets whether the exit name should be updated.
boolean PASTE_EXIT_NAME_DEFAULT
The default value for isPasteExitName().
final ProjectSettings projectSettings
The ProjectSettings to affect.
void setUserName(@NotNull String userName)
Sets the user name.
MiscPreferences(@NotNull final ExitConnectorModel exitConnectorModel, @NotNull final ProjectSettings projectSettings, @NotNull final EditorSettings editorSettings)
Creates a new instance.
static Border createTitledBorder(@NotNull final String title)
Creates a titled border.
static JLabel newLabel(@NotNull final ActionBuilder actionBuilder, @NotNull final String key)
Creates a new JLabel from a resource key.
final EditorSettings editorSettings
The EditorSettings to affect.
Graphical User Interface of Gridarta.
static final long serialVersionUID
The serial version UID.
Settings that apply to the editor.
JTextComponent userField
TextField for user / artist name.
String getUserName()
Returns the user name.
Component createCheckMapsPanel()
Creates the sub-panel with the check maps settings.
Component createUserPanel()
Creates the sub-panel with the user settings.
String EXIT_ARCHETYPE_NAME_DEFAULT
The default value for getExitArchetypeName().
static final ActionBuilder ACTION_BUILDER
Action Builder.
void setAutoCreateExit(boolean autoCreateExit)
Sets whether exit game objects should be auto-created when needed.
Preferences Module for miscellaneous preferences.
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Returns the value of a key.
String getExitArchetypeName()
Returns the archetype name when creating exit game objects.
Settings that apply to a project.
AbstractButton checkMaps
Check box to set whether map files should be really checked.
Component createExitConnectorPanel()
Creates the sub-panel with the exit connector settings.
static void setPerformingRealChecks(final boolean performingRealChecks)
Set whether to actually perform real checks or just file endings.
boolean isAutoCreateExit()
Returns whether exit game objects should be auto-created when needed.
Utility class for ActionBuilder related functions.
Stores information needed by the exit connector.
AbstractButton autoCreateExit
Check box to set whether exit game objects should be auto-created.
String getUserNameDefault()
Returns the default user name.
boolean isPasteExitName()
Returns whether the exit name should be updated.
Border DIALOG_BORDER
The Border object to be used when creating dialogs.
void addComponent(@NotNull final Component component)
Adds a component to the container.
final ExitConnectorModel exitConnectorModel
The ExitConnectorModel to affect.