de.lessvoid.nifty.controls.nullobjects
Class ButtonNull

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

public class ButtonNull
extends Object
implements Button


Constructor Summary
ButtonNull()
           
 
Method Summary
 void activate()
          Activate/Click this button.
 void disable()
           
 void enable()
           
 Element getElement()
           
 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.
 Color getTextColor()
          Get the text color of the Button Text.
 HorizontalAlign getTextHAlign()
          Get the Horizontal Align of the Button text.
 int getTextHeight()
          Get the height of the text.
 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(RenderFont fontParam)
          Set the Font of the button text.
 void setHeight(SizeValue height)
           
 void setId(String id)
           
 void setStyle(String style)
           
 void setText(String text)
          Set the current text the button shows.
 void setTextColor(Color newColor)
          Set the text color of the Button Text.
 void setTextHAlign(HorizontalAlign newTextHAlign)
          Set the Horizontal Align of the Button text.
 void setTextVAlign(VerticalAlign newTextVAlign)
          Set the Vertical Align of the Button 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

ButtonNull

public ButtonNull()
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

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 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(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 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(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 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(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 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(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 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.