public class FocusTraversalAdapter extends java.lang.Object implements FocusTraversal
FocusTraversal.TraversalDirection
Constructor and Description |
---|
FocusTraversalAdapter(GuiLayout layout) |
Modifier and Type | Method and Description |
---|---|
com.jme3.scene.Spatial |
getDefaultFocus()
Returns the focusable element that should receive focus when first
entering this container level.
|
protected com.jme3.scene.Spatial |
getFirst() |
protected com.jme3.scene.Spatial |
getLast() |
GuiLayout |
getLayout() |
protected com.jme3.scene.Spatial |
getNext(com.jme3.scene.Spatial from) |
protected com.jme3.scene.Spatial |
getPrevious(com.jme3.scene.Spatial from) |
com.jme3.scene.Spatial |
getRelativeFocus(com.jme3.scene.Spatial from,
FocusTraversal.TraversalDirection direction)
Returns the relative focusable element from the specified element in the
specified direction as defined by this focus container's implementation
of that direction's policy.
|
boolean |
isFocusRoot()
Returns true if this is the root of a focus container hierarchy and
navigation should not be permitted out of the container.
|
void |
setFocusRoot(boolean b) |
void |
setLayout(GuiLayout layout) |
public FocusTraversalAdapter(GuiLayout layout)
public void setLayout(GuiLayout layout)
public GuiLayout getLayout()
public com.jme3.scene.Spatial getDefaultFocus()
FocusTraversal
getDefaultFocus
in interface FocusTraversal
public com.jme3.scene.Spatial getRelativeFocus(com.jme3.scene.Spatial from, FocusTraversal.TraversalDirection direction)
FocusTraversal
getRelativeFocus
in interface FocusTraversal
public void setFocusRoot(boolean b)
public boolean isFocusRoot()
FocusTraversal
isFocusRoot
in interface FocusTraversal
protected com.jme3.scene.Spatial getFirst()
protected com.jme3.scene.Spatial getLast()
protected com.jme3.scene.Spatial getNext(com.jme3.scene.Spatial from)
protected com.jme3.scene.Spatial getPrevious(com.jme3.scene.Spatial from)