|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.nullobjects.ButtonNull
public class ButtonNull
| Constructor Summary | |
|---|---|
ButtonNull()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonNull()
| Method Detail |
|---|
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()
Button
activate in interface Buttonpublic String getText()
Button
getText in interface Buttonpublic void setText(String text)
Button
setText in interface Buttontext - new text to showpublic int getTextWidth()
Button
getTextWidth in interface Buttonpublic int getTextHeight()
Button
getTextHeight in interface Buttonpublic RenderFont getFont()
Button
getFont in interface Buttonpublic void setFont(RenderFont fontParam)
Button
setFont in interface ButtonfontParam - new fontpublic VerticalAlign getTextVAlign()
Button
getTextVAlign in interface Buttonpublic void setTextVAlign(VerticalAlign newTextVAlign)
Button
setTextVAlign in interface ButtonnewTextVAlign - VerticalAlignpublic HorizontalAlign getTextHAlign()
Button
getTextHAlign in interface Buttonpublic void setTextHAlign(HorizontalAlign newTextHAlign)
Button
setTextHAlign in interface ButtonnewTextHAlign - HorizontalAlignpublic Color getTextColor()
Button
getTextColor in interface Buttonpublic void setTextColor(Color newColor)
Button
setTextColor 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 NiftyControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||