public class ButtonNull extends Object implements Button
| Constructor and Description |
|---|
ButtonNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate/Click this button.
|
void |
disable() |
void |
enable() |
Element |
getElement() |
RenderFont |
getFont()
Get the current Font of the button text.
|
int |
getHeight() |
String |
getId() |
String |
getStyle() |
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.
|
int |
getWidth() |
boolean |
hasFocus() |
boolean |
isBound() |
boolean |
isEnabled() |
void |
layoutCallback() |
void |
setEnabled(boolean enabled) |
void |
setFocus() |
void |
setFocusable(boolean focusable) |
void |
setFont(RenderFont fontParam)
Set the Font of the button text.
|
void |
setHeight(SizeValue height) |
void |
setId(String id) |
void |
setStyle(String style) |
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.
|
void |
setWidth(SizeValue width) |
public Element getElement()
getElement in interface NiftyControlpublic String getId()
getId in interface NiftyControlpublic void setId(String id)
setId in interface NiftyControlpublic int getWidth()
getWidth in interface NiftyControlpublic void setWidth(SizeValue width)
setWidth in interface NiftyControlpublic int getHeight()
getHeight in interface NiftyControlpublic void setHeight(SizeValue height)
setHeight in interface NiftyControlpublic String getStyle()
getStyle in interface NiftyControlpublic void setStyle(String style)
setStyle in interface NiftyControlpublic void enable()
enable in interface NiftyControlpublic void disable()
disable in interface NiftyControlpublic void setEnabled(boolean enabled)
setEnabled in interface NiftyControlpublic boolean isEnabled()
isEnabled in interface NiftyControlpublic 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 textpublic void setFocus()
setFocus in interface NiftyControlpublic void setFocusable(boolean focusable)
setFocusable in interface NiftyControlpublic boolean hasFocus()
hasFocus in interface NiftyControlpublic void layoutCallback()
layoutCallback in interface NiftyControlpublic boolean isBound()
isBound in interface NiftyControlCopyright © 2013. All Rights Reserved.