|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Button
A TextButton Control.
Method Summary | |
---|---|
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. |
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Method Detail |
---|
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 text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |