public interface NiftyControl
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
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.
|
Element getElement()
String getId()
void setId(String id)
id
- new idint getWidth()
void setWidth(SizeValue width)
width
- widthint getHeight()
void setHeight(SizeValue height)
height
- new heightString getStyle()
void setStyle(String style)
style
- new style to applyvoid enable()
void disable()
void setEnabled(boolean enabled)
enabled
- the new enabled stateboolean isEnabled()
void setFocus()
void setFocusable(boolean focusable)
focusable
- true when this element can get the focus and false when notboolean hasFocus()
void layoutCallback()
boolean isBound()
Copyright © 2013. All Rights Reserved.