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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void init(Properties parameter, Attributes controlDefinitionAttributes)
init
in interface Controller
init
in class AbstractController
public void onStartScreen()
onStartScreen
in interface Controller
public void onFocus(boolean getFocus)
onFocus
in interface Controller
onFocus
in class AbstractController
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void activate()
Button
public String getText()
Button
public void setText(String text)
Button
public int getTextWidth()
Button
getTextWidth
in interface Button
public int getTextHeight()
Button
getTextHeight
in interface Button
public RenderFont getFont()
Button
public void setFont(RenderFont fontParam)
Button
public VerticalAlign getTextVAlign()
Button
getTextVAlign
in interface Button
public void setTextVAlign(VerticalAlign newTextVAlign)
Button
setTextVAlign
in interface Button
newTextVAlign
- VerticalAlignpublic HorizontalAlign getTextHAlign()
Button
getTextHAlign
in interface Button
public void setTextHAlign(HorizontalAlign newTextHAlign)
Button
setTextHAlign
in interface Button
newTextHAlign
- HorizontalAlignpublic Color getTextColor()
Button
getTextColor
in interface Button
public void setTextColor(Color newColor)
Button
setTextColor
in interface Button
newColor
- new Color for the button textCopyright © 2013. All Rights Reserved.