|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.FocusHandler
public class FocusHandler
FocusHandler.
Constructor Summary | |
---|---|
FocusHandler()
|
Method Summary | |
---|---|
void |
addElement(Element element)
add the given element to the focushandler (as the last element). |
void |
addElement(Element element,
Element focusableInsertBeforeElement)
add an element to the focus handler. |
boolean |
canProcessMouseEvents(Element element)
|
Element |
findElement(String defaultFocusElementId)
|
Element |
getFirstFocusElement()
get first entry. |
Element |
getKeyboardFocusElement()
|
Element |
getMouseFocusElement()
|
Element |
getNext(Element current)
get next element. |
Element |
getPrev(Element current)
get prev element. |
boolean |
hasAnyElementTheKeyboardFocus()
|
boolean |
hasExclusiveMouseFocus(Element element)
|
boolean |
keyEvent(KeyboardInputEvent inputEvent)
|
void |
lostKeyboardFocus(Element elementThatLostFocus)
|
void |
lostMouseFocus(Element elementThatLostFocus)
|
void |
popState()
restore all states. |
void |
pushState()
save all states. |
void |
remove(Element element)
remove this element. |
void |
requestExclusiveMouseFocus(Element newFocusElement)
|
void |
resetFocusElements()
|
void |
setKeyFocus(Element newFocusElement)
set the focus to the given element. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FocusHandler()
Method Detail |
---|
public void addElement(Element element)
element
- element to addpublic void addElement(Element element, Element focusableInsertBeforeElement)
element
- element to addfocusableInsertBeforeElement
- the element before which to add the new elementpublic Element getNext(Element current)
current
- current element
public Element getPrev(Element current)
current
- current element
public void remove(Element element)
element
- elementpublic Element getFirstFocusElement()
public void pushState()
public void popState()
public void resetFocusElements()
public void setKeyFocus(Element newFocusElement)
newFocusElement
- new focus elementpublic void lostKeyboardFocus(Element elementThatLostFocus)
public boolean keyEvent(KeyboardInputEvent inputEvent)
public void requestExclusiveMouseFocus(Element newFocusElement)
public boolean hasExclusiveMouseFocus(Element element)
public boolean canProcessMouseEvents(Element element)
public void lostMouseFocus(Element elementThatLostFocus)
public String toString()
toString
in class Object
public boolean hasAnyElementTheKeyboardFocus()
public Element findElement(String defaultFocusElementId)
public Element getKeyboardFocusElement()
public Element getMouseFocusElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |