|
Gridarta Editor
|
A dialog to ask the user for a map to open. More...
Collaboration diagram for net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | goMapApply () |
| Action method for apply. More... | |
| void | goMapCancel () |
| Action method for cancel. More... | |
| GoMapDialog (@NotNull final Window parent, @NotNull final MapsIndex mapsIndex, @NotNull final MapViewsManager< G, A, R > mapViewsManager) | |
| Creates a new instance. More... | |
| void | goMapScrollBottom () |
| Action method for scroll bottom. More... | |
| void | goMapScrollDown () |
| Action method for scroll down. More... | |
| void | goMapScrollPageDown () |
| Action method for scroll page down. More... | |
| void | goMapScrollPageUp () |
| Action method for scroll page up. More... | |
| void | goMapScrollTop () |
| Action method for scroll top. More... | |
| void | goMapScrollUp () |
| Action method for scroll up. More... | |
| void | goMapSelectDown () |
| Action method for select down. More... | |
| void | goMapSelectUp () |
| Action method for select up. More... | |
| void | showDialog () |
| Opens the dialog. More... | |
Private Member Functions | |
| void | doSearch () |
| Updates the maps display from the map name input field. More... | |
| boolean | goMap () |
| Opens the selected maps. More... | |
Private Attributes | |
| final DelayedChangeManager | delayedChangeManager |
| A DelayedChangeManager for updating search results after mapsIndex changes. More... | |
| final JDialog | dialog |
| The JDialog instance. More... | |
| boolean | dialogShown |
| Whether dialog is currently shown. More... | |
| final IndexListener< MapFile > | indexListener |
| The IndexListener attached to mapsIndex to update search results after index changes. More... | |
| final JTextComponent | input |
| The map name input field. More... | |
| final JList< MapFile > | list = new JList<>(listModel) |
| The JList showing the matching maps. More... | |
| final DefaultListModel< MapFile > | listModel = new DefaultListModel<>() |
| The list model containing the search results. More... | |
| final Comparator< MapFile > | mapNameComparator |
| A Comparator that orders map files by map name. More... | |
| final MapsIndex | mapsIndex |
| The MapsIndex for looking up maps. More... | |
| final MapViewsManager< G, A, R > | mapViewsManager |
| The MapViewsManager for opening maps. More... | |
| final WindowListener | windowListener |
| The WindowListener attached to dialog to track opening/closing the dialog. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The ActionBuilder. More... | |
A dialog to ask the user for a map to open.
Definition at line 71 of file GoMapDialog.java.
| net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GoMapDialog | ( | @NotNull final Window | parent, |
| @NotNull final MapsIndex | mapsIndex, | ||
| @NotNull final MapViewsManager< G, A, R > | mapViewsManager | ||
| ) |
Creates a new instance.
| parent | the parent component for this dialog |
| mapsIndex | the maps index to use |
| mapViewsManager | the map views manager for opening maps |
Definition at line 273 of file GoMapDialog.java.
References net.sf.gridarta.gui.utils.SwingUtils.addAction(), net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSearch(), net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapApply(), net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapsIndex, net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewsManager, net.sf.gridarta.utils.ActionBuilderUtils.newLabel(), and net.sf.gridarta.gui.utils.TextComponentUtils.setAutoSelectOnFocus().
Here is the call graph for this function:
|
private |
Updates the maps display from the map name input field.
Definition at line 373 of file GoMapDialog.java.
References net.sf.gridarta.model.index.AbstractIndex< V extends Serializable >.findPartialName(), and net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapNameComparator.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Opens the selected maps.
Definition at line 537 of file GoMapDialog.java.
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapApply | ( | ) |
Action method for apply.
Definition at line 407 of file GoMapDialog.java.
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapCancel | ( | ) |
Action method for cancel.
Definition at line 418 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollBottom | ( | ) |
Action method for scroll bottom.
Definition at line 501 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollDown | ( | ) |
Action method for scroll down.
Definition at line 438 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollPageDown | ( | ) |
Action method for scroll page down.
Definition at line 470 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollPageUp | ( | ) |
Action method for scroll page up.
Definition at line 449 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollTop | ( | ) |
Action method for scroll top.
Definition at line 491 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapScrollUp | ( | ) |
Action method for scroll up.
Definition at line 427 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapSelectDown | ( | ) |
Action method for select down.
Definition at line 524 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.goMapSelectUp | ( | ) |
Action method for select up.
Definition at line 511 of file GoMapDialog.java.
| void net.sf.gridarta.gui.dialog.gomap.GoMapDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.showDialog | ( | ) |
Opens the dialog.
Definition at line 366 of file GoMapDialog.java.
|
staticprivate |
The ActionBuilder.
Definition at line 77 of file GoMapDialog.java.
|
private |
A DelayedChangeManager for updating search results after mapsIndex changes.
Definition at line 243 of file GoMapDialog.java.
|
private |
|
private |
Whether dialog is currently shown.
Definition at line 118 of file GoMapDialog.java.
|
private |
The IndexListener attached to mapsIndex to update search results after index changes.
The listener is attached only if dialogShown is set; if the dialog is closed, changes are not tracked.
Definition at line 156 of file GoMapDialog.java.
|
private |
The map name input field.
Definition at line 89 of file GoMapDialog.java.
|
private |
The JList showing the matching maps.
Definition at line 113 of file GoMapDialog.java.
|
private |
The list model containing the search results.
Definition at line 107 of file GoMapDialog.java.
|
private |
A Comparator that orders map files by map name.
Definition at line 124 of file GoMapDialog.java.
|
private |
The MapsIndex for looking up maps.
Definition at line 95 of file GoMapDialog.java.
|
private |
The MapViewsManager for opening maps.
Definition at line 101 of file GoMapDialog.java.
|
private |
The WindowListener attached to dialog to track opening/closing the dialog.
Registers indexListener to mapsIndex when the dialog is opened and de-registers when the dialog is closed.
Definition at line 192 of file GoMapDialog.java.