 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.dialog.plugin.parameter;
22 import java.awt.Component;
23 import javax.swing.JComponent;
24 import javax.swing.JFileChooser;
25 import javax.swing.JOptionPane;
26 import javax.swing.JPanel;
27 import javax.swing.event.DocumentEvent;
28 import javax.swing.event.DocumentListener;
38 import org.jetbrains.annotations.NotNull;
57 private final JComponent
config =
new JPanel();
71 public void insertUpdate(
final DocumentEvent e) {
76 public void removeUpdate(
final DocumentEvent e) {
81 public void changedUpdate(
final DocumentEvent e) {
88 private void setFile() {
92 JOptionPane.showMessageDialog(parent,
"Invalid file: " + ex.getMessage());
Base package of all Gridarta classes.
void addDocumentListener(@NotNull final DocumentListener documentListener)
Adds a DocumentListener to the text input field.
JComponent getValueComponent()
Returns a JComponent for editing the parameter value.
This class contains methods for converting relative map paths to absolute map paths and vice versa.
Reflects a game object (object on a map).
Utility class for MapPath related functions.
final JFileField value
The component for editing the parameter's value.
Graphical User Interface of Gridarta.
GameObjects are the objects based on Archetypes found on maps.
JComponent getConfigComponent()
Returns a JComponent for editing the parameter configuration.
File getMapsDir()
Returns the base directory this map file is part of.
A component for selecting files.
Interface for MapArchObjects.
static AbsoluteMapPath newAbsoluteMapPath(@NotNull final String string)
Creates an AbsoluteMapPath instance from string representation.
File getFile()
Returns a File for this map file.
MapPathParameterView(@NotNull final Component parent, @NotNull final MapPathParameter< G, A, R > parameter, @NotNull final PathManager pathManager)
Creates a new instance.
An exception that is thrown if the string representation of value in a {} cannot be converted to an o...
The location of a map file with a map directory.
Reading and writing of maps, handling of paths.
final JComponent config
The component for editing the parameter's configuration.
A PluginParameter that holds a path with in the maps directory.
Interface for views that display plugin parameters.
File getFile()
Returns the currently selected file.
A PluginParameterView that displays a MapPathParameter.