de.lessvoid.nifty.controls.shared
Class EmptyNiftyControlImpl

java.lang.Object
  extended by de.lessvoid.nifty.controls.shared.EmptyNiftyControlImpl
All Implemented Interfaces:
de.lessvoid.nifty.controls.NiftyControl
Direct Known Subclasses:
CheckBoxImpl, ListBoxImpl

public abstract class EmptyNiftyControlImpl
extends Object
implements de.lessvoid.nifty.controls.NiftyControl

The methods that NiftyControl provides are implemented in the Control class but also in the *Impl classes where we would only add empty methods. This class is only abstract to prevent instantiation.

Author:
void

Constructor Summary
EmptyNiftyControlImpl()
           
 
Method Summary
 void disable()
           
 void enable()
           
 de.lessvoid.nifty.elements.Element getElement()
           
 int getHeight()
           
 String getId()
           
 String getStyle()
           
 int getWidth()
           
 boolean hasFocus()
           
 boolean isBound()
           
 boolean isEnabled()
           
 void layoutCallback()
           
 void setEnabled(boolean enabled)
           
 void setFocus()
           
 void setFocusable(boolean focusable)
           
 void setHeight(de.lessvoid.nifty.tools.SizeValue height)
           
 void setId(String id)
           
 void setStyle(String style)
           
 void setWidth(de.lessvoid.nifty.tools.SizeValue width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyNiftyControlImpl

public EmptyNiftyControlImpl()
Method Detail

getElement

public de.lessvoid.nifty.elements.Element getElement()
Specified by:
getElement in interface de.lessvoid.nifty.controls.NiftyControl

enable

public void enable()
Specified by:
enable in interface de.lessvoid.nifty.controls.NiftyControl

disable

public void disable()
Specified by:
disable in interface de.lessvoid.nifty.controls.NiftyControl

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface de.lessvoid.nifty.controls.NiftyControl

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface de.lessvoid.nifty.controls.NiftyControl

getId

public String getId()
Specified by:
getId in interface de.lessvoid.nifty.controls.NiftyControl

setId

public void setId(String id)
Specified by:
setId in interface de.lessvoid.nifty.controls.NiftyControl

getWidth

public int getWidth()
Specified by:
getWidth in interface de.lessvoid.nifty.controls.NiftyControl

setWidth

public void setWidth(de.lessvoid.nifty.tools.SizeValue width)
Specified by:
setWidth in interface de.lessvoid.nifty.controls.NiftyControl

getHeight

public int getHeight()
Specified by:
getHeight in interface de.lessvoid.nifty.controls.NiftyControl

setHeight

public void setHeight(de.lessvoid.nifty.tools.SizeValue height)
Specified by:
setHeight in interface de.lessvoid.nifty.controls.NiftyControl

getStyle

public String getStyle()
Specified by:
getStyle in interface de.lessvoid.nifty.controls.NiftyControl

setStyle

public void setStyle(String style)
Specified by:
setStyle in interface de.lessvoid.nifty.controls.NiftyControl

setFocus

public void setFocus()
Specified by:
setFocus in interface de.lessvoid.nifty.controls.NiftyControl

setFocusable

public void setFocusable(boolean focusable)
Specified by:
setFocusable in interface de.lessvoid.nifty.controls.NiftyControl

hasFocus

public boolean hasFocus()
Specified by:
hasFocus in interface de.lessvoid.nifty.controls.NiftyControl

layoutCallback

public void layoutCallback()
Specified by:
layoutCallback in interface de.lessvoid.nifty.controls.NiftyControl

isBound

public boolean isBound()
Specified by:
isBound in interface de.lessvoid.nifty.controls.NiftyControl


Copyright © 2011. All Rights Reserved.