|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.errai.widgets.client.DefaultFocusManager
public class DefaultFocusManager
A "classic" implementation of FocusManager. A start cell is first selected and corresponding movements from the start cell either extend or diminish the focus range. Left movements relative to the left of the start cell extend the focus range whereas left movements relative to the right of the start cell diminish the focus range. Likewise for the remaining three directions.
| Constructor Summary | |
|---|---|
DefaultFocusManager(WSGrid dataGrid)
|
|
| Method Summary | |
|---|---|
WSGrid.WSCell |
getStartCell()
Return the starting cell. |
boolean |
isInitialised()
Returns true if the start cell has been set. |
int |
moveDownwards()
A move downwards. |
int |
moveLeft()
A move left. |
int |
moveRight()
A move right. |
int |
moveUpwards()
A move upwards. |
void |
reset()
Remove the start cell returning the manager to an uninitialised state |
void |
setStartCell(WSGrid.WSCell cell)
The start cell represents the initial selection of a single cell in a range from which the edges can be thought to extend to encompass a greater range |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFocusManager(WSGrid dataGrid)
| Method Detail |
|---|
public int moveLeft()
FocusManager
moveLeft in interface FocusManagerFocusManager.moveLeft()public int moveRight()
FocusManager
moveRight in interface FocusManagerFocusManager.moveRight()public int moveUpwards()
FocusManager
moveUpwards in interface FocusManagerFocusManager.moveUpwards()public int moveDownwards()
FocusManager
moveDownwards in interface FocusManagerFocusManager.moveDownwards()public void setStartCell(WSGrid.WSCell cell)
FocusManager
setStartCell in interface FocusManagerFocusManager#setStartCell(WSCell)public WSGrid.WSCell getStartCell()
FocusManager
getStartCell in interface FocusManagerFocusManager.getStartCell()public boolean isInitialised()
FocusManager
isInitialised in interface FocusManagerFocusManager.isInitialised()public void reset()
FocusManager
reset in interface FocusManagerFocusManager.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||