Button when accessing NiftyControls.@Deprecated public class ButtonControl extends AbstractController implements Button
| Constructor and Description |
|---|
ButtonControl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties parameter, Attributes controlDefinitionAttributes)
bind in interface Controllerpublic void init(Properties parameter, Attributes controlDefinitionAttributes)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic void onFocus(boolean getFocus)
onFocus in interface ControlleronFocus in class AbstractControllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void activate()
Buttonpublic String getText()
Buttonpublic void setText(String text)
Buttonpublic int getTextWidth()
ButtongetTextWidth in interface Buttonpublic int getTextHeight()
ButtongetTextHeight in interface Buttonpublic RenderFont getFont()
Buttonpublic void setFont(RenderFont fontParam)
Buttonpublic VerticalAlign getTextVAlign()
ButtongetTextVAlign in interface Buttonpublic void setTextVAlign(VerticalAlign newTextVAlign)
ButtonsetTextVAlign in interface ButtonnewTextVAlign - VerticalAlignpublic HorizontalAlign getTextHAlign()
ButtongetTextHAlign in interface Buttonpublic void setTextHAlign(HorizontalAlign newTextHAlign)
ButtonsetTextHAlign in interface ButtonnewTextHAlign - HorizontalAlignpublic Color getTextColor()
ButtongetTextColor in interface Buttonpublic void setTextColor(Color newColor)
ButtonsetTextColor in interface ButtonnewColor - new Color for the button textCopyright © 2013. All Rights Reserved.