|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
public abstract class AbstractController
| Constructor Summary | |
|---|---|
AbstractController()
|
|
| Method Summary | |
|---|---|
protected void |
bind(Element element)
|
void |
disable()
Disable the control. |
void |
enable()
Enable the control. |
Element |
getElement()
Get the attached internal Nifty element for this Nifty control. |
int |
getHeight()
Get height as SizeValue. |
String |
getId()
Get the id. |
String |
getStyle()
Get current style. |
int |
getWidth()
Get width as SizeValue. |
boolean |
hasFocus()
Returns true if this control has the focus. |
void |
init(Properties parameter,
Attributes controlDefinitionAttributes)
Init the Controller. |
boolean |
isBound()
Returns true when this NiftyControl is already bound (e.g. its Controllers bind() method has been called). |
boolean |
isEnabled()
Get the current enabled state of the control. |
void |
layoutCallback()
This method is called after the element this control is attached too has been layouted. |
void |
onFocus(boolean getFocus)
This controller gets the focus. |
void |
setEnabled(boolean enabled)
Set the enabled state from the given boolean. |
void |
setFocus()
Set the focus to this control. |
void |
setFocusable(boolean focusable)
Change if this control is focusable (if it can get the focus or not). |
void |
setHeight(SizeValue height)
Set Height as SizeValue. |
void |
setId(String id)
Set the id. |
void |
setStyle(String style)
Set style. |
void |
setWidth(SizeValue width)
Set width as SizeValue. |
| 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.Controller |
|---|
bind, inputEvent, onStartScreen |
| Constructor Detail |
|---|
public AbstractController()
| Method Detail |
|---|
protected void bind(Element element)
public void init(Properties parameter,
Attributes controlDefinitionAttributes)
Controller
init in interface Controllerpublic Element getElement()
NiftyControl
getElement in interface NiftyControlpublic void enable()
NiftyControl
enable in interface NiftyControlpublic void disable()
NiftyControl
disable in interface NiftyControlpublic void setEnabled(boolean enabled)
NiftyControl
setEnabled in interface NiftyControlenabled - the new enabled statepublic boolean isEnabled()
NiftyControl
isEnabled in interface NiftyControlpublic String getId()
NiftyControl
getId in interface NiftyControlpublic void setId(String id)
NiftyControl
setId in interface NiftyControlid - new idpublic int getWidth()
NiftyControl
getWidth in interface NiftyControlpublic void setWidth(SizeValue width)
NiftyControl
setWidth in interface NiftyControlwidth - widthpublic int getHeight()
NiftyControl
getHeight in interface NiftyControlpublic void setHeight(SizeValue height)
NiftyControl
setHeight in interface NiftyControlheight - new heightpublic String getStyle()
NiftyControl
getStyle in interface NiftyControlpublic void setStyle(String style)
NiftyControl
setStyle in interface NiftyControlstyle - new style to applypublic void setFocus()
NiftyControl
setFocus in interface NiftyControlpublic void setFocusable(boolean focusable)
NiftyControl
setFocusable in interface NiftyControlfocusable - true when this element can get the focus and false when notpublic void onFocus(boolean getFocus)
Controller
onFocus in interface ControllergetFocus - get focus (true) or loose focus (false)public boolean hasFocus()
NiftyControl
hasFocus in interface NiftyControlpublic void layoutCallback()
NiftyControl
layoutCallback in interface NiftyControlpublic boolean isBound()
NiftyControl
isBound in interface NiftyControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||