|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.NiftyInputControl
public class NiftyInputControl
NiftyInputControl.
Constructor Summary | |
---|---|
NiftyInputControl(Controller controllerParam,
NiftyInputMapping inputMapperParam)
|
Method Summary | ||
---|---|---|
void |
addInputHandler(KeyInputHandler handler)
|
|
void |
addPreInputHandler(KeyInputHandler handler)
|
|
void |
bindControl(Nifty nifty,
Screen screen,
Element element,
Attributes attributes)
|
|
|
getControl(Class<T> requestedControlClass)
Get control when it matches the given class. |
|
Controller |
getController()
get controller. |
|
|
getNiftyControl(Class<T> requestedControlClass)
|
|
void |
initControl(Attributes attributes)
|
|
boolean |
keyEvent(Nifty nifty,
KeyboardInputEvent inputEvent,
String elementId)
keyboard event. |
|
void |
onEndScreen(Nifty nifty,
Screen screen,
String elementId)
|
|
void |
onFocus(boolean getFocus)
forward the onForward method to the controller. |
|
void |
onStartScreen(Nifty nifty,
Screen screen)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NiftyInputControl(Controller controllerParam, NiftyInputMapping inputMapperParam)
controllerParam
- controllerinputMapperParam
- input mapperMethod Detail |
---|
public boolean keyEvent(Nifty nifty, KeyboardInputEvent inputEvent, String elementId)
nifty
- niftyinputEvent
- keyboard event
public void addInputHandler(KeyInputHandler handler)
public void addPreInputHandler(KeyInputHandler handler)
public void onStartScreen(Nifty nifty, Screen screen)
public void onEndScreen(Nifty nifty, Screen screen, String elementId)
public void onFocus(boolean getFocus)
getFocus
- get focuspublic Controller getController()
public <T extends Controller> T getControl(Class<T> requestedControlClass)
T
- type of classrequestedControlClass
- class that is requested
public <T extends NiftyControl> T getNiftyControl(Class<T> requestedControlClass)
public void bindControl(Nifty nifty, Screen screen, Element element, Attributes attributes)
public void initControl(Attributes attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |