public interface Button extends NiftyControl
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate/Click this button.
|
RenderFont |
getFont()
Get the current Font of the button text.
|
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.
|
void |
setFont(RenderFont fontParam)
Set the Font of the button text.
|
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.
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
void activate()
String getText()
void setText(String text)
text
- new text to showint getTextWidth()
int getTextHeight()
RenderFont getFont()
void setFont(RenderFont fontParam)
fontParam
- new fontVerticalAlign getTextVAlign()
void setTextVAlign(VerticalAlign newTextVAlign)
newTextVAlign
- VerticalAlignHorizontalAlign getTextHAlign()
void setTextHAlign(HorizontalAlign newTextHAlign)
newTextHAlign
- HorizontalAlignColor getTextColor()
void setTextColor(Color newColor)
newColor
- new Color for the button textCopyright © 2013. All Rights Reserved.