|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INativeWidgetHandler
Interface to handle native widgets. You should register the implementation via eg the guidefaults xml file.
Method Summary | |
---|---|
void |
addWidgetToParent(IWidget widget,
java.lang.Object parentWidget)
Adds a widget to the parent, which is a native. |
IWidget |
getWidget(java.lang.Object object,
IWidget parent)
Returns the widget passed in (as convenience) and adds the native widget to the parent. |
IWidget |
getWidget(java.lang.String clazz,
IWidget parent)
Returns the widget passed in (as convenience) and adds the native widget to the parent. |
void |
refresh(java.lang.Object widget)
Should refresh the gui when needed. |
void |
setLocationOnWidget(IWidget parent,
int x,
int y)
Set the location on the last native widget added |
void |
setLocationOnWidget(java.lang.Object widget,
int x,
int y)
Set the location on the last native widget added |
Method Detail |
---|
IWidget getWidget(java.lang.String clazz, IWidget parent)
clazz
- - the className of the native widgetparent
- - the nyx parent widget
IWidget getWidget(java.lang.Object object, IWidget parent)
object
- - the native widgetparent
- - the nyx parent widget
void setLocationOnWidget(IWidget parent, int x, int y)
parent
- the parent widget to set the location onx
- the x positiony
- the y positionvoid setLocationOnWidget(java.lang.Object widget, int x, int y)
widget
- the native widget to set the location onx
- the x positiony
- the y positionvoid addWidgetToParent(IWidget widget, java.lang.Object parentWidget)
widget
- the widget to addparentWidget
- the parent to add the widget tovoid refresh(java.lang.Object widget)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |