de.lessvoid.nifty.controls.nullobjects
Class LabelNull

java.lang.Object
  extended by de.lessvoid.nifty.controls.nullobjects.LabelNull
All Implemented Interfaces:
Label, NiftyControl

public class LabelNull
extends Object
implements Label


Constructor Summary
LabelNull()
           
 
Method Summary
 void disable()
           
 void enable()
           
 Color getColor()
          Get the current Label color.
 Element getElement()
           
 int getHeight()
           
 String getId()
           
 String getStyle()
           
 String getText()
          Get the Label text.
 int getWidth()
           
 boolean hasFocus()
           
 boolean isBound()
           
 boolean isEnabled()
           
 void layoutCallback()
           
 void setColor(Color color)
          Set the Label color.
 void setEnabled(boolean enabled)
           
 void setFocus()
           
 void setFocusable(boolean focusable)
           
 void setHeight(SizeValue height)
           
 void setId(String id)
           
 void setStyle(String style)
           
 void setText(String text)
          Change the Label text.
 void setWidth(SizeValue width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelNull

public LabelNull()
Method Detail

getElement

public Element getElement()
Specified by:
getElement in interface NiftyControl

getId

public String getId()
Specified by:
getId in interface NiftyControl

setId

public void setId(String id)
Specified by:
setId in interface NiftyControl

getWidth

public int getWidth()
Specified by:
getWidth in interface NiftyControl

setWidth

public void setWidth(SizeValue width)
Specified by:
setWidth in interface NiftyControl

getHeight

public int getHeight()
Specified by:
getHeight in interface NiftyControl

setHeight

public void setHeight(SizeValue height)
Specified by:
setHeight in interface NiftyControl

getStyle

public String getStyle()
Specified by:
getStyle in interface NiftyControl

setStyle

public void setStyle(String style)
Specified by:
setStyle in interface NiftyControl

enable

public void enable()
Specified by:
enable in interface NiftyControl

disable

public void disable()
Specified by:
disable in interface NiftyControl

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface NiftyControl

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface NiftyControl

setText

public void setText(String text)
Description copied from interface: Label
Change the Label text.

Specified by:
setText in interface Label
Parameters:
text - new text

getText

public String getText()
Description copied from interface: Label
Get the Label text.

Specified by:
getText in interface Label
Returns:
label text

setColor

public void setColor(Color color)
Description copied from interface: Label
Set the Label color.

Specified by:
setColor in interface Label
Parameters:
color - the color

getColor

public Color getColor()
Description copied from interface: Label
Get the current Label color.

Specified by:
getColor in interface Label
Returns:
the current color of the label

setFocus

public void setFocus()
Specified by:
setFocus in interface NiftyControl

setFocusable

public void setFocusable(boolean focusable)
Specified by:
setFocusable in interface NiftyControl

hasFocus

public boolean hasFocus()
Specified by:
hasFocus in interface NiftyControl

layoutCallback

public void layoutCallback()
Specified by:
layoutCallback in interface NiftyControl

isBound

public boolean isBound()
Specified by:
isBound in interface NiftyControl


Copyright © 2011. All Rights Reserved.