Gridarta 9263
API Documentation

net.sf.gridarta.gui.panel.selectedsquare
Class SelectedSquareActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>

java.lang.Object
  extended by net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareActions<G,A,R>

public class SelectedSquareActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends Object

Implementing actions that operate on SelectedSquareModels.

Author:
Andreas Kirschbaum

Field Summary
private  SelectedSquareModel<G,A,R> selectedSquareModel
          The SelectedSquareModel for this controller.
 
Constructor Summary
SelectedSquareActions(SelectedSquareModel<G,A,R> selectedSquareModel)
          Creates a new instance.
 
Method Summary
 boolean doMoveSquareBottom(boolean performAction)
          Executes the "move square bottom" action.
 boolean doMoveSquareDown(boolean performAction)
          Executes the "move square down" action.
 boolean doMoveSquareEnv(boolean performAction)
          Executes the "move square env" action.
 boolean doMoveSquareInv(boolean performAction)
          Executes the "move square inv" action.
 boolean doMoveSquareNext(boolean performAction)
          Executes the "move square next" action.
 boolean doMoveSquarePrev(boolean performAction)
          Executes the "move square prev" action.
 boolean doMoveSquareTop(boolean performAction)
          Executes the "move square top" action.
 boolean doMoveSquareUp(boolean performAction)
          Executes the "move square up" action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedSquareModel

@NotNull
private final SelectedSquareModel<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> selectedSquareModel
The SelectedSquareModel for this controller.

Constructor Detail

SelectedSquareActions

public SelectedSquareActions(@NotNull
                             SelectedSquareModel<G,A,R> selectedSquareModel)
Creates a new instance.

Parameters:
selectedSquareModel - the selected square model to operate on
Method Detail

doMoveSquarePrev

public boolean doMoveSquarePrev(boolean performAction)
Executes the "move square prev" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareNext

public boolean doMoveSquareNext(boolean performAction)
Executes the "move square next" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareTop

public boolean doMoveSquareTop(boolean performAction)
Executes the "move square top" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareUp

public boolean doMoveSquareUp(boolean performAction)
Executes the "move square up" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareDown

public boolean doMoveSquareDown(boolean performAction)
Executes the "move square down" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareBottom

public boolean doMoveSquareBottom(boolean performAction)
Executes the "move square bottom" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareEnv

public boolean doMoveSquareEnv(boolean performAction)
Executes the "move square env" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

doMoveSquareInv

public boolean doMoveSquareInv(boolean performAction)
Executes the "move square inv" action.

Parameters:
performAction - whether the action should be performed
Returns:
whether the action was or can be performed

Gridarta 9263
API Documentation

SourceForge.net Logo Support This Project freshmeat.net Valid CSS! Feedback: webmaster