| java.lang.Object net.xoetrope.optional.registry.ComponentAdapter
ComponentAdapter | public class ComponentAdapter (Code) | | An adapter of component properties and settings
Copyright (c) Xoetrope Ltd., 2002-2004
$Revision: 1.7 $
License: see License.txt
|
Constructor Summary | |
public | ComponentAdapter(String clazzName, String ui) Construct a new adapter for the specified class.
Parameters: clazzName - the class name e.g. | public | ComponentAdapter(ClassLoader cl, String clazzName, String ui) Construct a new adapter for the specified class.
Parameters: cl - the class loader to use to load the class Parameters: clazzName - the class name e.g. |
ComponentAdapter | public ComponentAdapter(String clazzName, String ui) throws ClassNotFoundException(Code) | | Construct a new adapter for the specified class.
Parameters: clazzName - the class name e.g. com.myorg.MyClass Parameters: ui - the type of user interface this component supports, e.g. "swing" throws: ClassNotFoundException - |
ComponentAdapter | public ComponentAdapter(ClassLoader cl, String clazzName, String ui) throws ClassNotFoundException(Code) | | Construct a new adapter for the specified class.
Parameters: cl - the class loader to use to load the class Parameters: clazzName - the class name e.g. com.myorg.MyClass Parameters: ui - the type of user interface this component supports, e.g. "swing" throws: ClassNotFoundException - |
addProperty | public Method addProperty(String type, String name, String methodName, String paramType, boolean attributed)(Code) | | Try to get and register a method
Parameters: type - either "get" or "set" Parameters: name - the name by which the method is referred to in the page XML Parameters: methodName - the method name Parameters: paramType - the type of parameter (String, int, double, boolean, Object) Parameters: attributed - is the property set via the XAttributedComponent interface the method or null if not found |
getProperty | public Object getProperty(Component comp, String propertyName)(Code) | | Get a property value. If the method has not been registered an attempt
will be made to get the method using the bean naming convention.
Parameters: comp - the comp whose property is to be retrieved Parameters: propertyName - the name of the property |
getUI | public String getUI()(Code) | | Get the UI type for this component e.g. "swing" or "awt"
the UI name |
setProperty | public void setProperty(Component comp, String propertyName, String content, String paramType)(Code) | | Set a property value. If the method has not been registered an attempt
will be made to get the method using the bean naming convention.
Parameters: comp - the comp whose property is set Parameters: propertyName - the name of the property Parameters: paramType - the type of parameter (String, int, double, boolean, Object) or null for no parameter Parameters: content - the value to set |
|
|