|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.button.ButtonControl
Button when accessing NiftyControls.
@Deprecated public class ButtonControl
Implementation of the TextButton Control.
| Constructor Summary | |
|---|---|
ButtonControl()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
activate()
Deprecated. Activate/Click this button. |
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated. |
RenderFont |
getFont()
Deprecated. Get the current Font of the button text. |
String |
getText()
Deprecated. Get the current text the button shows. |
Color |
getTextColor()
Deprecated. Get the text color of the Button Text. |
HorizontalAlign |
getTextHAlign()
Deprecated. Get the Horizontal Align of the Button text. |
int |
getTextHeight()
Deprecated. Get the height of the text. |
VerticalAlign |
getTextVAlign()
Deprecated. Get the Vertical Align of the Button text. |
int |
getTextWidth()
Deprecated. Get the width of the text. |
void |
init(Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated. |
boolean |
inputEvent(NiftyInputEvent inputEvent)
Deprecated. |
void |
onFocus(boolean getFocus)
Deprecated. |
void |
onStartScreen()
Deprecated. |
void |
setFont(RenderFont fontParam)
Deprecated. Set the Font of the button text. |
void |
setText(String text)
Deprecated. Set the current text the button shows. |
void |
setTextColor(Color newColor)
Deprecated. Set the text color of the Button Text. |
void |
setTextHAlign(HorizontalAlign newTextHAlign)
Deprecated. Set the Horizontal Align of the Button text. |
void |
setTextVAlign(VerticalAlign newTextVAlign)
Deprecated. Set the Vertical Align of the Button text. |
| Methods inherited from class de.lessvoid.nifty.controls.AbstractController |
|---|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public ButtonControl()
| Method Detail |
|---|
public void bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Properties parameter,
Attributes controlDefinitionAttributes)
bind in interface Controller
public void init(Properties parameter,
Attributes controlDefinitionAttributes)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic void onFocus(boolean getFocus)
onFocus in interface ControlleronFocus in class AbstractControllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic 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 text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||