de.lessvoid.nifty.controls.window
Class WindowControl
java.lang.Object
de.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.window.WindowControl
- All Implemented Interfaces:
- de.lessvoid.nifty.controls.Controller, de.lessvoid.nifty.controls.NiftyControl, Window
public class WindowControl
- extends de.lessvoid.nifty.controls.AbstractController
- implements Window
Method Summary |
void |
bind(de.lessvoid.nifty.Nifty nifty,
de.lessvoid.nifty.screen.Screen screen,
de.lessvoid.nifty.elements.Element element,
Properties parameter,
de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
|
void |
closeWindow()
Close this Window. |
void |
drag(int mouseX,
int mouseY)
|
void |
dragStart(int mouseX,
int mouseY)
|
void |
dragStop()
|
de.lessvoid.nifty.elements.Element |
getContent()
|
String |
getTitle()
Get the title of the Window. |
boolean |
inputEvent(de.lessvoid.nifty.input.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 |
WindowControl
public WindowControl()
bind
public void bind(de.lessvoid.nifty.Nifty nifty,
de.lessvoid.nifty.screen.Screen screen,
de.lessvoid.nifty.elements.Element element,
Properties parameter,
de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
- Specified by:
bind
in interface de.lessvoid.nifty.controls.Controller
onStartScreen
public void onStartScreen()
- Specified by:
onStartScreen
in interface de.lessvoid.nifty.controls.Controller
inputEvent
public boolean inputEvent(de.lessvoid.nifty.input.NiftyInputEvent inputEvent)
- Specified by:
inputEvent
in interface de.lessvoid.nifty.controls.Controller
onFocus
public void onFocus(boolean getFocus)
- Specified by:
onFocus
in interface de.lessvoid.nifty.controls.Controller
- Overrides:
onFocus
in class de.lessvoid.nifty.controls.AbstractController
dragStart
public void dragStart(int mouseX,
int mouseY)
drag
public void drag(int mouseX,
int mouseY)
dragStop
public void dragStop()
getContent
public de.lessvoid.nifty.elements.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.