|
||||||||||
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 NiftyControl
public String getId()
getId
in interface NiftyControl
public void setId(String id)
setId
in interface NiftyControl
public int getWidth()
getWidth
in interface NiftyControl
public void setWidth(SizeValue width)
setWidth
in interface NiftyControl
public int getHeight()
getHeight
in interface NiftyControl
public void setHeight(SizeValue height)
setHeight
in interface NiftyControl
public String getStyle()
getStyle
in interface NiftyControl
public void setStyle(String style)
setStyle
in interface NiftyControl
public void enable()
enable
in interface NiftyControl
public void disable()
disable
in interface NiftyControl
public void setEnabled(boolean enabled)
setEnabled
in interface NiftyControl
public boolean isEnabled()
isEnabled
in interface NiftyControl
public void activate()
Button
activate
in interface Button
public String getText()
Button
getText
in interface Button
public void setText(String text)
Button
setText
in interface Button
text
- new text to showpublic int getTextWidth()
Button
getTextWidth
in interface Button
public int getTextHeight()
Button
getTextHeight
in interface Button
public RenderFont getFont()
Button
getFont
in interface Button
public void setFont(RenderFont fontParam)
Button
setFont
in interface Button
fontParam
- new fontpublic VerticalAlign getTextVAlign()
Button
getTextVAlign
in interface Button
public void setTextVAlign(VerticalAlign newTextVAlign)
Button
setTextVAlign
in interface Button
newTextVAlign
- VerticalAlignpublic HorizontalAlign getTextHAlign()
Button
getTextHAlign
in interface Button
public void setTextHAlign(HorizontalAlign newTextHAlign)
Button
setTextHAlign
in interface Button
newTextHAlign
- HorizontalAlignpublic Color getTextColor()
Button
getTextColor
in interface Button
public void setTextColor(Color newColor)
Button
setTextColor
in interface Button
newColor
- new Color for the button textpublic void setFocus()
setFocus
in interface NiftyControl
public void setFocusable(boolean focusable)
setFocusable
in interface NiftyControl
public boolean hasFocus()
hasFocus
in interface NiftyControl
public void layoutCallback()
layoutCallback
in interface NiftyControl
public boolean isBound()
isBound
in interface NiftyControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |