org.xulux.api.gui
Interface IPropertyHandler


public interface IPropertyHandler

The interface for propertyhandlers..

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

Field Summary
static java.lang.String DELAYED
          Wait for initialisation of the widget and then call the handler
static java.lang.String IMMIDIATE
          When a property needs to change immidiately.
static java.lang.String INIT
          Initialize the native widget
static java.lang.String NORMAL
          Only call the property handler when the property is set.
static java.lang.String POST_INIT
          Post Initialize the native widget
static java.lang.String PRE_INIT
          Pre Initialize the native widget
static java.lang.String REFRESH
          call property on refresh (which is essntially always the case)
 
Method Summary
 void destroy()
          Destroys the property handler and all it's resources
 java.lang.Object getValue()
           
 boolean handleProperty(IWidget widget, IProperty property)
          Handle the property for the widget specified.
 void init()
          Initialises the propertyhandler
 

Field Detail

REFRESH

static final java.lang.String REFRESH
call property on refresh (which is essntially always the case)

See Also:
Constant Field Values

NORMAL

static final java.lang.String NORMAL
Only call the property handler when the property is set.

See Also:
Constant Field Values

DELAYED

static final java.lang.String DELAYED
Wait for initialisation of the widget and then call the handler

See Also:
Constant Field Values

PRE_INIT

static final java.lang.String PRE_INIT
Pre Initialize the native widget

See Also:
Constant Field Values

INIT

static final java.lang.String INIT
Initialize the native widget

See Also:
Constant Field Values

POST_INIT

static final java.lang.String POST_INIT
Post Initialize the native widget

See Also:
Constant Field Values

IMMIDIATE

static final java.lang.String IMMIDIATE
When a property needs to change immidiately.

See Also:
Constant Field Values
Method Detail

init

void init()
Initialises the propertyhandler


handleProperty

boolean handleProperty(IWidget widget,
                       IProperty property)
Handle the property for the widget specified. You can choose to use the registered property name(s) or just figure out the naming yourself.

Parameters:
widget - - the widget to handle the property for.
property - - the property to handle
Returns:
true when the property has been succesfully handled

getValue

java.lang.Object getValue()
Returns:
the value that is associated with propertyhandler. If this is not used, it will just return null. Normally this is a value that is needed across properties and within the widget

destroy

void destroy()
Destroys the property handler and all it's resources



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