org.xulux.api.core
Interface IWidgetConfig


public interface IWidgetConfig


Method Summary
 void add(java.lang.String type, java.lang.Class widgetClass)
          Adds a specific implementation to the widgetConfig
 void addContentHandler(java.lang.String clz, java.lang.String view)
          Adds a contenthandler to a widgetconfiguration.
 void addPropertyHandler(java.lang.String clz, java.lang.String use, java.lang.String name, java.lang.String type)
          Adds a propertyhandler to the widgetconfig.
 void addWidgetTool(java.lang.String type, java.lang.Class clazz)
          Adds a widgettool to the widgetconfig
 void addWidgetTool(java.lang.String type, java.lang.String clazzName)
          Adds a widgettool to the widgetconfig
 java.lang.Class get(java.lang.String type)
           
 IContentHandler getContentHandler(java.lang.Class clazz)
           
 java.util.Map getContentHandlers()
           
 java.lang.Class getCoreClass()
           
 java.util.List getPropertyHandlers(java.lang.String type)
           
 java.util.Map getWidgetDefaults()
           
 java.util.List getWidgetInitializers(java.lang.String type)
           
 void registerWidgetDefault(java.lang.String key, java.lang.Object value)
          Register a property for this widget that needs to be set on creation of the widget
 void setCoreClass(java.lang.Class coreClass)
          Set the coreClass of the widget
 

Method Detail

add

void add(java.lang.String type,
         java.lang.Class widgetClass)
Adds a specific implementation to the widgetConfig

Parameters:
type - the type of gui layer
widgetClass - the widget class

getCoreClass

java.lang.Class getCoreClass()
Returns:
the coreClass of the widget

setCoreClass

void setCoreClass(java.lang.Class coreClass)
Set the coreClass of the widget

Parameters:
coreClass - the coreclass of the widget

get

java.lang.Class get(java.lang.String type)
Parameters:
type - the type of gui layer
Returns:
the Class of the specified widget type

getWidgetInitializers

java.util.List getWidgetInitializers(java.lang.String type)
Parameters:
type - - eg swing, swt, awt, html, etc.
Returns:
the widgetHandler classlist for the specified type

addWidgetTool

void addWidgetTool(java.lang.String type,
                   java.lang.String clazzName)
Adds a widgettool to the widgetconfig

Parameters:
type - the type of gui layer
clazzName - the widgettools class

addWidgetTool

void addWidgetTool(java.lang.String type,
                   java.lang.Class clazz)
Adds a widgettool to the widgetconfig

Parameters:
type - the type of gui layer
clazz - the widgettools class

addContentHandler

void addContentHandler(java.lang.String clz,
                       java.lang.String view)
Adds a contenthandler to a widgetconfiguration.

Parameters:
clz - the clazz of the contenthandler
view - the clazz of the view. If none specified toString handling will be used

getContentHandler

IContentHandler getContentHandler(java.lang.Class clazz)
Parameters:
clazz - the className to get the contenthandler for.
Returns:
the contenthandler found.

getContentHandlers

java.util.Map getContentHandlers()
Returns:
the contenthandlers map or null if no contenthandlers are present

addPropertyHandler

void addPropertyHandler(java.lang.String clz,
                        java.lang.String use,
                        java.lang.String name,
                        java.lang.String type)
Adds a propertyhandler to the widgetconfig. This will be used to initialize A propertyhandler is a system to handle the widget.setProperty system and will be initialized upon creation of the widget.

Parameters:
clz - the class name
use - the type of usage for this propertyhandler. Supported : normal, delayed, refresh
name - the name of the property
type - the type of guilayer

getPropertyHandlers

java.util.List getPropertyHandlers(java.lang.String type)
Parameters:
type - the gui layer type
Returns:
all the property handlers for this widget

registerWidgetDefault

void registerWidgetDefault(java.lang.String key,
                           java.lang.Object value)
Register a property for this widget that needs to be set on creation of the widget

Parameters:
key - the key of the property
value - the value of the property

getWidgetDefaults

java.util.Map getWidgetDefaults()


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