org.xulux.api.gui
Interface IWidgetInitializer


public interface IWidgetInitializer

This interface is to be able to add custom destroyers and initializers to widgets. If you want to eg customize the a native combo box, you should register the specific widgetinitializer in the widgetconfig or the guidefaults.xml file.

Version:
$Id: IWidgetInitializer.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 boolean addToParent(IWidget widget)
          Adds the native peer to the native parent
 void destroy(IWidget widget)
          Destroy will be called before the widget starts destroying itself.
 java.lang.Object getNativeWidget()
           
 void initialize(IWidget widget)
          Initialize will be called after the widget is finished it internal processed and after creation of the native widget.
 void setNativeWidget(java.lang.Object object)
          Set the native widget.
 

Method Detail

initialize

void initialize(IWidget widget)
Initialize will be called after the widget is finished it internal processed and after creation of the native widget.

Parameters:
widget - the widget to proces initialization on

destroy

void destroy(IWidget widget)
Destroy will be called before the widget starts destroying itself. You should destroy everything you've done on initialization in this method

Parameters:
widget - the widget to clean up after

getNativeWidget

java.lang.Object getNativeWidget()
Returns:
the native widget

addToParent

boolean addToParent(IWidget widget)
Adds the native peer to the native parent

Parameters:
widget - - the child widget
Returns:
true if adding was handled, false if it wasn't

setNativeWidget

void setNativeWidget(java.lang.Object object)
Set the native widget. Useful if you want to set the native widget from a propertyhandler

Parameters:
object - the native widget


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.