Gridarta Editor
net.sf.gridarta.gui.dialog.newmap.NewPickmapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Dialog to create a new pickmap file. More...

+ Inheritance diagram for net.sf.gridarta.gui.dialog.newmap.NewPickmapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.dialog.newmap.NewPickmapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

 NewPickmapDialog (@NotNull final ObjectChooser< G, A, R > objectChooser, @NotNull final Component parentComponent, final int defaultWidth, final int defaultHeight, @NotNull final PickmapChooserView< G, A, R > pickmapChooserView)
 Creates a "new pickmap" dialog. More...
 

Protected Member Functions

JPanel createMapNamePanel ()
 
boolean createNew ()
 
boolean isOkButtonEnabled ()
 
- Protected Member Functions inherited from net.sf.gridarta.gui.dialog.newmap.AbstractMapsizeNewMapDialog< G, A, R >
 AbstractMapsizeNewMapDialog ( @Nullable final String widthKey, @Nullable final String heightKey, final int defaultWidth, final int defaultHeight)
 Creates a new instance. More...
 
void addFields ( @NotNull final JPanel panel, @NotNull final GridBagConstraints gbcLabel, @NotNull final GridBagConstraints gbcField)
 
int getMapHeight ()
 Returns the current map height value. More...
 
Size2D getMapSize ()
 Validate the map size fields and return the result. More...
 
int getMapWidth ()
 Returns the current map width value. More...
 
void setMapSizeEnabled (final boolean enabled)
 Enables or disables the map size input fields. More...
 

Private Member Functions

String getPickmapName ()
 Returns the current pickmap name value. More...
 

Private Attributes

final ObjectChooser< G, A, R > objectChooser
 The object chooser instance to use. More...
 
final PickmapChooserView< G, A, R > pickmapChooserView
 The pickmap chooser view. More...
 
final JTextComponent pickmapNameField = new JTextField(16)
 Textfield for the name of the map. More...
 

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 Action Builder. More...
 
static final long serialVersionUID = 1L
 Serial Version UID. More...
 

Detailed Description

Dialog to create a new pickmap file.

Author
Andreas Kirschbaum

Definition at line 45 of file NewPickmapDialog.java.

Constructor & Destructor Documentation

◆ NewPickmapDialog()

net.sf.gridarta.gui.dialog.newmap.NewPickmapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.NewPickmapDialog ( @NotNull final ObjectChooser< G, A, R >  objectChooser,
@NotNull final Component  parentComponent,
final int  defaultWidth,
final int  defaultHeight,
@NotNull final PickmapChooserView< G, A, R >  pickmapChooserView 
)

Member Function Documentation

◆ createMapNamePanel()

◆ createNew()

◆ getPickmapName()

◆ isOkButtonEnabled()

Member Data Documentation

◆ ACTION_BUILDER

◆ objectChooser

◆ pickmapChooserView

◆ pickmapNameField

◆ serialVersionUID

final long net.sf.gridarta.gui.dialog.newmap.NewPickmapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

Serial Version UID.

Definition at line 50 of file NewPickmapDialog.java.


The documentation for this class was generated from the following file: