public class ConsoleSameScreenStartScreen extends Object implements ScreenController, KeyInputHandler, NiftyExample
| Constructor and Description |
|---|
ConsoleSameScreenStartScreen() |
| Modifier and Type | Method and Description |
|---|---|
void |
back() |
void |
bind(Nifty newNifty,
Screen newScreen) |
String |
getMainXML()
The resource path of the XML file that is supposed to be load for the example.
|
String |
getStartScreen()
The start screen that is supposed to be load initial.
|
String |
getTitle()
The title of this demonstration example.
|
boolean |
keyEvent(NiftyInputEvent inputEvent) |
void |
onConsoleCommand(String id,
ConsoleExecuteCommandEvent command) |
void |
onEndScreen() |
void |
onStartScreen() |
void |
prepareStart(Nifty nifty)
This function is called right before the example itself is executed.
|
public void bind(Nifty newNifty, Screen newScreen)
bind in interface ScreenControllerpublic void onStartScreen()
onStartScreen in interface ScreenControllerpublic void onEndScreen()
onEndScreen in interface ScreenControllerpublic void back()
public boolean keyEvent(NiftyInputEvent inputEvent)
keyEvent in interface KeyInputHandlerpublic void onConsoleCommand(String id, ConsoleExecuteCommandEvent command)
public String getStartScreen()
NiftyExamplegetStartScreen in interface NiftyExamplepublic String getMainXML()
NiftyExamplegetMainXML in interface NiftyExamplenull in case no XML file is supposed to be loadpublic String getTitle()
NiftyExamplegetTitle in interface NiftyExamplepublic void prepareStart(Nifty nifty)
NiftyExampleprepareStart in interface NiftyExamplenifty - the used instance of the Nifty-GUICopyright © 2013. All Rights Reserved.