de.lessvoid.nifty.examples.defaultcontrols.chatcontrol
Class ChatControlDialogController

java.lang.Object
  extended by de.lessvoid.nifty.examples.defaultcontrols.chatcontrol.ChatControlDialogController
All Implemented Interfaces:
Controller

public class ChatControlDialogController
extends Object
implements Controller

The ChatControlDialogController registers a new control with Nifty that represents the whole Dialog. This gives us later an appropriate ControlBuilder to actual construct the Dialog (as a control).

Author:
void

Constructor Summary
ChatControlDialogController()
           
 
Method Summary
 void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
           
 void init(Properties parameter, Attributes controlDefinitionAttributes)
           
 boolean inputEvent(NiftyInputEvent inputEvent)
           
 void onChatTextSendEvent(String id, ChatTextSendEvent event)
           
 void onFocus(boolean getFocus)
           
 void onStartScreen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatControlDialogController

public ChatControlDialogController()
Method Detail

bind

public void bind(Nifty nifty,
                 Screen screen,
                 Element element,
                 Properties parameter,
                 Attributes controlDefinitionAttributes)
Specified by:
bind in interface Controller

init

public void init(Properties parameter,
                 Attributes controlDefinitionAttributes)
Specified by:
init in interface Controller

onStartScreen

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

onFocus

public void onFocus(boolean getFocus)
Specified by:
onFocus in interface Controller

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Specified by:
inputEvent in interface Controller

onChatTextSendEvent

public void onChatTextSendEvent(String id,
                                ChatTextSendEvent event)


Copyright © 2012. All Rights Reserved.