de.lessvoid.nifty.controls.nullobjects
Class ButtonNull

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

public class ButtonNull
extends Object
implements Button


Constructor Summary
ButtonNull()
           
 
Method Summary
 void activate()
          Activate/Click this button.
 void disable()
           
 void enable()
           
 de.lessvoid.nifty.elements.Element getElement()
           
 de.lessvoid.nifty.spi.render.RenderFont getFont()
          Get the current Font of the button text.
 int getHeight()
           
 String getId()
           
 String getStyle()
           
 String getText()
          Get the current text the button shows.
 de.lessvoid.nifty.tools.Color getTextColor()
          Get the text color of the Button Text.
 de.lessvoid.nifty.layout.align.HorizontalAlign getTextHAlign()
          Get the Horizontal Align of the Button text.
 int getTextHeight()
          Get the height of the text.
 de.lessvoid.nifty.layout.align.VerticalAlign getTextVAlign()
          Get the Vertical Align of the Button text.
 int getTextWidth()
          Get the width of the text.
 int getWidth()
           
 boolean hasFocus()
           
 boolean isBound()
           
 boolean isEnabled()
           
 void layoutCallback()
           
 void setEnabled(boolean enabled)
           
 void setFocus()
           
 void setFocusable(boolean focusable)
           
 void setFont(de.lessvoid.nifty.spi.render.RenderFont fontParam)
          Set the Font of the button text.
 void setHeight(de.lessvoid.nifty.tools.SizeValue height)
           
 void setId(String id)
           
 void setStyle(String style)
           
 void setText(String text)
          Set the current text the button shows.
 void setTextColor(de.lessvoid.nifty.tools.Color newColor)
          Set the text color of the Button Text.
 void setTextHAlign(de.lessvoid.nifty.layout.align.HorizontalAlign newTextHAlign)
          Set the Horizontal Align of the Button text.
 void setTextVAlign(de.lessvoid.nifty.layout.align.VerticalAlign newTextVAlign)
          Set the Vertical Align of the Button text.
 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

ButtonNull

public ButtonNull()
Method Detail

getElement

public de.lessvoid.nifty.elements.Element getElement()
Specified by:
getElement 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

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

activate

public void activate()
Description copied from interface: Button
Activate/Click this button.

Specified by:
activate in interface Button

getText

public String getText()
Description copied from interface: Button
Get the current text the button shows.

Specified by:
getText in interface Button
Returns:
text

setText

public void setText(String text)
Description copied from interface: Button
Set the current text the button shows.

Specified by:
setText in interface Button
Parameters:
text - new text to show

getTextWidth

public int getTextWidth()
Description copied from interface: Button
Get the width of the text.

Specified by:
getTextWidth in interface Button
Returns:
width of text in px

getTextHeight

public int getTextHeight()
Description copied from interface: Button
Get the height of the text.

Specified by:
getTextHeight in interface Button
Returns:
height of text in px

getFont

public de.lessvoid.nifty.spi.render.RenderFont getFont()
Description copied from interface: Button
Get the current Font of the button text.

Specified by:
getFont in interface Button
Returns:
the current Font

setFont

public void setFont(de.lessvoid.nifty.spi.render.RenderFont fontParam)
Description copied from interface: Button
Set the Font of the button text.

Specified by:
setFont in interface Button
Parameters:
fontParam - new font

getTextVAlign

public de.lessvoid.nifty.layout.align.VerticalAlign getTextVAlign()
Description copied from interface: Button
Get the Vertical Align of the Button text.

Specified by:
getTextVAlign in interface Button
Returns:
VerticalAlign

setTextVAlign

public void setTextVAlign(de.lessvoid.nifty.layout.align.VerticalAlign newTextVAlign)
Description copied from interface: Button
Set the Vertical Align of the Button text.

Specified by:
setTextVAlign in interface Button
Parameters:
newTextVAlign - VerticalAlign

getTextHAlign

public de.lessvoid.nifty.layout.align.HorizontalAlign getTextHAlign()
Description copied from interface: Button
Get the Horizontal Align of the Button text.

Specified by:
getTextHAlign in interface Button
Returns:
HorizontalAlign

setTextHAlign

public void setTextHAlign(de.lessvoid.nifty.layout.align.HorizontalAlign newTextHAlign)
Description copied from interface: Button
Set the Horizontal Align of the Button text.

Specified by:
setTextHAlign in interface Button
Parameters:
newTextHAlign - HorizontalAlign

getTextColor

public de.lessvoid.nifty.tools.Color getTextColor()
Description copied from interface: Button
Get the text color of the Button Text.

Specified by:
getTextColor in interface Button
Returns:
Color of the Text

setTextColor

public void setTextColor(de.lessvoid.nifty.tools.Color newColor)
Description copied from interface: Button
Set the text color of the Button Text.

Specified by:
setTextColor in interface Button
Parameters:
newColor - new Color for the button text

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.