|
||||||||||
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 Controller
init
in class AbstractController
public void onStartScreen()
onStartScreen
in interface Controller
public void onFocus(boolean getFocus)
onFocus
in interface Controller
onFocus
in class AbstractController
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
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 text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |