![]() |
Gridarta Editor
|
This dialog manages the find action. More...
Public Member Functions | |
void | display (@NotNull final MapView< G, A, R > mapView) |
Replace objects on the map. More... | |
void | dispose (@NotNull final MapView< G, A, R > mapView) |
Disposes the find dialog. More... | |
boolean | findAgain (@NotNull final MapView< G, A, R > mapView, final boolean forward, final boolean performAction) |
Re-executes the previous find operation. More... | |
void | findCancel () |
Action method for Cancel button. More... | |
FindDialog (@NotNull final Component parent) | |
Creates a new instance. More... | |
void | findOk () |
Action method for Ok button. More... | |
Private Member Functions | |
int | doFind (@NotNull final Iterable< MatchCriteria< G, A, R >> matchCriterias, final boolean forward) |
This method performs the actual find action on a map. More... | |
boolean | doFind (final boolean forward) |
Executes one find operation. More... | |
void | selectMapSquares (@NotNull final Iterable< MapSquare< G, A, R >> mapSquares) |
Selects a set of MapSquares on the map. More... | |
void | setMapCursor (final boolean forward, @NotNull final List< G > gameObjects) |
Moves the cursor to the next or previous matching game object. More... | |
Private Attributes | |
final JDialog | dialog |
The dialog instance. More... | |
final AbstractButton | findArchCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereArch")) |
The checkbox for matching archetype names. More... | |
final AbstractButton | findFaceCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereFace")) |
The checkbox for matching 'face' or 'animation' attributes. More... | |
final JTextComponent | findInput = new JTextField(20) |
The text input field for the string to find. More... | |
final AbstractButton | findMsgCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereMsg")) |
The checkbox for matching 'msg' attributes. More... | |
final AbstractButton | findNameCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereName")) |
The checkbox for matching 'name' attributes. More... | |
final AbstractButton | findOtherCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereOther")) |
The checkbox for matching all other attributes. More... | |
final AbstractButton | findSlayingCheckbox = new JCheckBox(ActionBuilderUtils.getString(ACTION_BUILDER, "findWhereSlaying")) |
The checkbox for matching 'slaying' attributes. More... | |
boolean | isBuilt |
Whether this find dialog has been displayed. More... | |
MapView< G, A, R > | mapView |
The MapView to operate on. More... | |
final Component | parent |
The parent component for dialogs. 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... | |
This dialog manages the find action.
Definition at line 67 of file FindDialog.java.
net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.FindDialog | ( | @NotNull final Component | parent | ) |
Creates a new instance.
parent | the parent component for dialogs |
Definition at line 149 of file FindDialog.java.
void net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.display | ( | @NotNull final MapView< G, A, R > | mapView | ) |
Replace objects on the map.
mapView | map view of the active map where the action was invoked |
Definition at line 162 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialogManager< G, A, R >.showDialog().
void net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.dispose | ( | @NotNull final MapView< G, A, R > | mapView | ) |
Disposes the find dialog.
mapView | the map view to dispose the dialog of; do nothing if no |
Definition at line 362 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialogManager< G, A, R >.disposeDialog().
|
private |
This method performs the actual find action on a map.
matchCriterias | the matching criterias to find |
forward | whether to search forward ( true
false
|
Definition at line 290 of file FindDialog.java.
|
private |
Executes one find operation.
forward | whether to search forward ( true
false
|
Definition at line 258 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.findAgain(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.findOk().
boolean net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findAgain | ( | @NotNull final MapView< G, A, R > | mapView, |
final boolean | forward, | ||
final boolean | performAction | ||
) |
Re-executes the previous find operation.
mapView | the map view to operate on |
forward | whether to search forward ( true
false
|
performAction | whether the action should be performed |
Definition at line 224 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialogManager< G, A, R >.findNext(), and net.sf.gridarta.gui.dialog.find.FindDialogManager< G, A, R >.findPrev().
void net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findCancel | ( | ) |
Action method for Cancel button.
Definition at line 248 of file FindDialog.java.
void net.sf.gridarta.gui.dialog.find.FindDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findOk | ( | ) |
Action method for Ok button.
Definition at line 238 of file FindDialog.java.
|
private |
Selects a set of MapSquares on the map.
mapSquares | the map squares to select |
Definition at line 318 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
Moves the cursor to the next or previous matching game object.
forward | whether to move the cursor forward ( true
false
|
gameObjects | the game objects to consider |
Definition at line 335 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
staticprivate |
Action Builder.
Definition at line 78 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display().
|
private |
The dialog instance.
Definition at line 84 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.dispose(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.findCancel(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.FindDialog(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.findOk().
|
private |
The checkbox for matching archetype names.
Definition at line 119 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
The checkbox for matching 'face' or 'animation' attributes.
Definition at line 131 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
The text input field for the string to find.
Definition at line 107 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.FindDialog().
|
private |
The checkbox for matching 'msg' attributes.
Definition at line 125 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
The checkbox for matching 'name' attributes.
Definition at line 113 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
The checkbox for matching all other attributes.
Definition at line 143 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
The checkbox for matching 'slaying' attributes.
Definition at line 137 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind().
|
private |
Whether this find dialog has been displayed.
Definition at line 95 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display().
|
private |
The MapView to operate on.
Definition at line 101 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.dispose(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.doFind(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.findAgain(), net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.selectMapSquares(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.setMapCursor().
|
private |
The parent component for dialogs.
Definition at line 90 of file FindDialog.java.
Referenced by net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.display(), and net.sf.gridarta.gui.dialog.find.FindDialog< G, A, R >.FindDialog().
|
staticprivate |
Serial Version UID.
Definition at line 72 of file FindDialog.java.