 |
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;
25 import javax.swing.Box;
26 import javax.swing.JComponent;
27 import javax.swing.JFileChooser;
28 import javax.swing.JPanel;
29 import javax.swing.border.Border;
30 import javax.swing.border.CompoundBorder;
31 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;
57 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
93 add(Box.createVerticalGlue());
138 final JComponent panel =
new JPanel(
new GridBagLayout());
Maintains the application preferences state.
boolean isFile(@NotNull final File file)
Returns whether the input field contains the given file.
Helper class for preference panes.
Base package of all Gridarta classes.
Defines common UI constants used in different dialogs.
static Border createTitledBorder(@NotNull final String titleKey)
Creates a titled border.
static final ActionBuilder ACTION_BUILDER
Action Builder.
static JLabel newLabel(@NotNull final ActionBuilder actionBuilder, @NotNull final String key)
Creates a new JLabel from a resource key.
String getClientDefault()
Returns the client setting's default value.
JFileField clientField
TextField for client executable.
Graphical User Interface of Gridarta.
String getServer()
Returns the server setting.
static void setEditor(@NotNull final CharSequence editor)
Sets the editor setting.
String getEditorDefault()
Returns the editor setting's default value.
A component for selecting files.
Preferences Module for application preferences.
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Returns the value of a key.
JFileField serverField
TextField for server executable.
static void setClient(@NotNull final CharSequence client)
Sets the client setting.
String getServerDefault()
Returns the server setting's default value.
String getEditor()
Returns the editor setting.
String getClient()
Returns the client setting.
AppPreferences(@NotNull final AppPreferencesModel appPreferencesModel)
Creates a new instance.
Component createAppPanel()
Creates the sub-panel with the external applications.
Utility class for ActionBuilder related functions.
static void setServer(@NotNull final CharSequence server)
Sets the server setting.
static final long serialVersionUID
The serial version UID.
final AppPreferencesModel appPreferencesModel
The model.
void setFile(@NotNull final File file)
Sets the currently selected file.
File getFile()
Returns the currently selected file.
JFileField editorField
TextField for external editor executable.
Border DIALOG_BORDER
The Border object to be used when creating dialogs.
void addComponent(@NotNull final Component component)
Adds a component to the container.