de.lessvoid.nifty.examples.defaultcontrols
Class ControlsDemoScreenController

java.lang.Object
  extended by de.lessvoid.nifty.examples.defaultcontrols.ControlsDemoScreenController
All Implemented Interfaces:
KeyInputHandler, ScreenController

public class ControlsDemoScreenController
extends Object
implements ScreenController, KeyInputHandler


Constructor Summary
ControlsDemoScreenController(String... mapping)
           
 
Method Summary
 void bind(Nifty nifty, Screen screen)
           
 boolean keyEvent(NiftyInputEvent inputEvent)
           
 void onConsoleEvent(String id, ConsoleExecuteCommandEvent executeCommandEvent)
           
 void onCreditsBackClick(String id, ButtonClickedEvent event)
           
 void onEndScreen()
           
 void onMenuButtonListBoxClick(String id, NiftyMousePrimaryClickedEvent clickedEvent)
           
 void onResolution(String id, DropDownSelectionChangedEvent<org.lwjgl.opengl.DisplayMode> event)
           
 void onSliderChanged(String id, SliderChangedEvent sliderChangedEvent)
           
 void onStartScreen()
           
 void onTestButtonClick(String id, ButtonClickedEvent clickedEvent)
           
 void openLink(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlsDemoScreenController

public ControlsDemoScreenController(String... mapping)
Method Detail

bind

public void bind(Nifty nifty,
                 Screen screen)
Specified by:
bind in interface ScreenController

onStartScreen

public void onStartScreen()
Specified by:
onStartScreen in interface ScreenController

onEndScreen

public void onEndScreen()
Specified by:
onEndScreen in interface ScreenController

keyEvent

public boolean keyEvent(NiftyInputEvent inputEvent)
Specified by:
keyEvent in interface KeyInputHandler

openLink

public void openLink(String url)

onMenuButtonListBoxClick

public void onMenuButtonListBoxClick(String id,
                                     NiftyMousePrimaryClickedEvent clickedEvent)

onCreditsBackClick

public void onCreditsBackClick(String id,
                               ButtonClickedEvent event)

onTestButtonClick

public void onTestButtonClick(String id,
                              ButtonClickedEvent clickedEvent)

onConsoleEvent

public void onConsoleEvent(String id,
                           ConsoleExecuteCommandEvent executeCommandEvent)

onResolution

public void onResolution(String id,
                         DropDownSelectionChangedEvent<org.lwjgl.opengl.DisplayMode> event)

onSliderChanged

public void onSliderChanged(String id,
                            SliderChangedEvent sliderChangedEvent)


Copyright © 2011. All Rights Reserved.