de.lessvoid.nifty.controls.button
Class ButtonControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.button.ButtonControl
All Implemented Interfaces:
Button, Controller, NiftyControl

Deprecated. Please use Button when accessing NiftyControls.

@Deprecated
public class ButtonControl
extends AbstractController
implements Button

Implementation of the TextButton Control.

Author:
void

Constructor Summary
ButtonControl()
          Deprecated.  
 
Method Summary
 void activate()
          Deprecated. Activate/Click this button.
 void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties parameter, Attributes controlDefinitionAttributes)
          Deprecated.  
 RenderFont getFont()
          Deprecated. Get the current Font of the button text.
 String getText()
          Deprecated. Get the current text the button shows.
 Color getTextColor()
          Deprecated. Get the text color of the Button Text.
 HorizontalAlign getTextHAlign()
          Deprecated. Get the Horizontal Align of the Button text.
 int getTextHeight()
          Deprecated. Get the height of the text.
 VerticalAlign getTextVAlign()
          Deprecated. Get the Vertical Align of the Button text.
 int getTextWidth()
          Deprecated. Get the width of the text.
 void init(Properties parameter, Attributes controlDefinitionAttributes)
          Deprecated.  
 boolean inputEvent(NiftyInputEvent inputEvent)
          Deprecated.  
 void onFocus(boolean getFocus)
          Deprecated.  
 void onStartScreen()
          Deprecated.  
 void setFont(RenderFont fontParam)
          Deprecated. Set the Font of the button text.
 void setText(String text)
          Deprecated. Set the current text the button shows.
 void setTextColor(Color newColor)
          Deprecated. Set the text color of the Button Text.
 void setTextHAlign(HorizontalAlign newTextHAlign)
          Deprecated. Set the Horizontal Align of the Button text.
 void setTextVAlign(VerticalAlign newTextVAlign)
          Deprecated. Set the Vertical Align of the Button text.
 
Methods inherited from class de.lessvoid.nifty.controls.AbstractController
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, 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
 

Constructor Detail

ButtonControl

public ButtonControl()
Deprecated. 
Method Detail

bind

public void bind(Nifty niftyParam,
                 Screen screenParam,
                 Element newElement,
                 Properties parameter,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
bind in interface Controller

init

public void init(Properties parameter,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
init in interface Controller
Overrides:
init in class AbstractController

onStartScreen

public void onStartScreen()
Deprecated. 
Specified by:
onStartScreen in interface Controller

onFocus

public void onFocus(boolean getFocus)
Deprecated. 
Specified by:
onFocus in interface Controller
Overrides:
onFocus in class AbstractController

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Deprecated. 
Specified by:
inputEvent in interface Controller

activate

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

Specified by:
activate in interface Button

getText

public String getText()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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()
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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


Copyright © 2011. All Rights Reserved.