Button, Controller, NiftyControlButton when accessing NiftyControls.@Deprecated public class ButtonControl extends AbstractController implements Button
| Constructor | Description |
|---|---|
ButtonControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate() |
Deprecated.
Activate/Click this button.
|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Parameters parameter) |
Deprecated.
|
RenderFont |
getFont() |
Deprecated.
Get the current Font of the button text.
|
java.lang.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.
|
boolean |
inputEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
boolean |
onClick() |
Deprecated.
|
void |
onFocus(boolean getFocus) |
Deprecated.
|
boolean |
onRelease() |
Deprecated.
|
void |
onStartScreen() |
Deprecated.
|
void |
setFont(RenderFont fontParam) |
Deprecated.
Set the Font of the button text.
|
void |
setText(java.lang.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, init, isBound, isEnabled, layoutCallback, onEndScreen, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(@Nonnull
Nifty niftyParam,
@Nonnull
Screen screenParam,
@Nonnull
Element newElement,
@Nonnull
Parameters parameter)
bind in interface Controllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic void onFocus(boolean getFocus)
onFocus in interface ControlleronFocus in class AbstractControllerpublic boolean onClick()
public boolean onRelease()
public boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void activate()
Button@Nonnull public java.lang.String getText()
Buttonpublic void setText(@Nonnull
java.lang.String text)
Buttonpublic int getTextWidth()
ButtongetTextWidth in interface Buttonpublic int getTextHeight()
ButtongetTextHeight in interface Button@Nullable public RenderFont getFont()
Buttonpublic void setFont(@Nullable
RenderFont fontParam)
Button@Nonnull public VerticalAlign getTextVAlign()
ButtongetTextVAlign in interface Buttonpublic void setTextVAlign(@Nonnull
VerticalAlign newTextVAlign)
ButtonsetTextVAlign in interface ButtonnewTextVAlign - VerticalAlign@Nonnull public HorizontalAlign getTextHAlign()
ButtongetTextHAlign in interface Buttonpublic void setTextHAlign(@Nonnull
HorizontalAlign newTextHAlign)
ButtonsetTextHAlign in interface ButtonnewTextHAlign - HorizontalAlign@Nonnull public Color getTextColor()
ButtongetTextColor in interface Buttonpublic void setTextColor(@Nonnull
Color newColor)
ButtonsetTextColor in interface ButtonnewColor - new Color for the button textCopyright © 2018. All rights reserved.