public class ActivationEvent
extends java.util.EventObject
| Constructor and Description |
|---|
ActivationEvent(Cell current,
boolean forward,
boolean horizontal)
Initializes a new instance of the ActivationEvent class.
|
ActivationEvent(Cell current,
Cell next,
boolean forward,
boolean horizontal)
Initializes a new instance of the ActivationEvent class.
|
| Modifier and Type | Method and Description |
|---|---|
Cell |
getCurrentCell()
Gets the current cell.
|
Cell |
getNextCell()
Gets the cell that is being activated.
|
boolean |
isForward()
Gets if navigation is in forward direction.
|
boolean |
isHorizontal()
Gets if navigation is in horizontal direction.
|
void |
setCurrentCell(Cell value)
Sets the current cell.
|
void |
setForward(boolean value)
Sets if navigation is in forward direction.
|
void |
setHorizontal(boolean value)
Sets if navigation is in horizontal direction.
|
void |
setNextCell(Cell value)
Sets the cell that will be activated.
|
public ActivationEvent(Cell current, Cell next, boolean forward, boolean horizontal)
current - A reference to the current Cell.next - A reference to the Cell that is being activated.forward - Specifies if navigation is in forward direction.horizontal - Specifies if navigation is in horizontal direction.public ActivationEvent(Cell current, boolean forward, boolean horizontal)
current - A reference to the current Cell.forward - Specifies if navigation is in forward direction.horizontal - Specifies if navigation is in horizontal direction.public Cell getNextCell()
public void setNextCell(Cell value)
value - A Cell reference.public Cell getCurrentCell()
public void setCurrentCell(Cell value)
value - A Cell reference.public boolean isForward()
public void setForward(boolean value)
value - true is cell is moving forward due to TAB, right or down keys, or false otherwise.public boolean isHorizontal()
public void setHorizontal(boolean value)
value - true is moving on same row due to TAB, left or right keys, or false otherwise.