de.lessvoid.nifty.controls.window
Class WindowControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.window.WindowControl
All Implemented Interfaces:
Controller, NiftyControl, Window

public class WindowControl
extends AbstractController
implements Window


Constructor Summary
WindowControl()
           
 
Method Summary
 void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
           
 void closeWindow()
          Close this Window.
 void drag(int mouseX, int mouseY)
           
 void dragStart(int mouseX, int mouseY)
           
 void dragStop()
           
 Element getContent()
           
 String getTitle()
          Get the title of the Window.
 boolean inputEvent(NiftyInputEvent inputEvent)
           
 void onFocus(boolean getFocus)
           
 void onStartScreen()
           
 void setTitle(String title)
          Set the title of the Window.
 
Methods inherited from class de.lessvoid.nifty.controls.AbstractController
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Constructor Detail

WindowControl

public WindowControl()
Method Detail

bind

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

onStartScreen

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

inputEvent

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

onFocus

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

dragStart

public void dragStart(int mouseX,
                      int mouseY)

drag

public void drag(int mouseX,
                 int mouseY)

dragStop

public void dragStop()

getContent

public Element getContent()

getTitle

public String getTitle()
Description copied from interface: Window
Get the title of the Window.

Specified by:
getTitle in interface Window
Returns:
title the title of the window

setTitle

public void setTitle(String title)
Description copied from interface: Window
Set the title of the Window.

Specified by:
setTitle in interface Window
Parameters:
title - the new title to be displayed in the Title bar

closeWindow

public void closeWindow()
Description copied from interface: Window
Close this Window.

Specified by:
closeWindow in interface Window


Copyright © 2011. All Rights Reserved.