public class FocusNavigationState
extends com.jme3.app.state.BaseAppState
| Constructor and Description |
|---|
FocusNavigationState(InputMapper inputMapper,
FocusManagerState focusState) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(com.jme3.app.Application app) |
protected static <T> T |
getControl(com.jme3.scene.Spatial s,
java.lang.Class<T> type)
Utillity method to get the control for a spatial when we don't
care if the interface implements control.
|
protected com.jme3.scene.Spatial |
getCurrentFocus() |
com.jme3.scene.Spatial |
getDefaultFocus(com.jme3.scene.Spatial spatial)
Returns the default focus element for the specified spatial
if it is a focus container, else it returns the spatial directly.
|
protected com.jme3.scene.Spatial |
getFocusContainer(com.jme3.scene.Spatial spatial) |
static FocusTraversal |
getFocusTraversal(com.jme3.scene.Spatial s) |
protected void |
initialize(com.jme3.app.Application app) |
protected void |
navigate(FocusTraversal.TraversalDirection dir) |
protected void |
navigateDown() |
protected void |
navigateLeft() |
protected void |
navigateRight() |
protected void |
navigateUp() |
protected void |
onDisable() |
protected void |
onEnable() |
com.jme3.scene.Spatial |
requestChangeFocus(com.jme3.scene.Spatial spatial,
FocusTraversal.TraversalDirection dir)
Attempts to navigate to the next focusable element as specified
by the traversal direction.
|
public FocusNavigationState(InputMapper inputMapper, FocusManagerState focusState)
public com.jme3.scene.Spatial getDefaultFocus(com.jme3.scene.Spatial spatial)
public com.jme3.scene.Spatial requestChangeFocus(com.jme3.scene.Spatial spatial,
FocusTraversal.TraversalDirection dir)
protected void initialize(com.jme3.app.Application app)
initialize in class com.jme3.app.state.BaseAppStateprotected void cleanup(com.jme3.app.Application app)
cleanup in class com.jme3.app.state.BaseAppStateprotected void onEnable()
onEnable in class com.jme3.app.state.BaseAppStateprotected void onDisable()
onDisable in class com.jme3.app.state.BaseAppStateprotected com.jme3.scene.Spatial getCurrentFocus()
protected static <T> T getControl(com.jme3.scene.Spatial s,
java.lang.Class<T> type)
public static FocusTraversal getFocusTraversal(com.jme3.scene.Spatial s)
protected com.jme3.scene.Spatial getFocusContainer(com.jme3.scene.Spatial spatial)
protected void navigate(FocusTraversal.TraversalDirection dir)
protected void navigateLeft()
protected void navigateRight()
protected void navigateUp()
protected void navigateDown()