All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.formedit.FormFieldRegistry

java.lang.Object
   |
   +----w3c.jigsaw.formedit.FormFieldRegistry

public class FormFieldRegistry
extends Object

Constructor Index

 o FormFieldRegistry()

Method Index

 o getField(Resource, Attribute)
Get a suitable form field to edit the given attribute of the target.
 o getTargetField(ResourceShadower, Attribute)
Get a form field to edit a shadow attribute of target.
 o registerField(Class, Class)
Register a form field to edit the givan class of attributes.
 o registerField(String, String)
Register a form field to edit the givan class of attributes.

Constructors

 o FormFieldRegistry
 public FormFieldRegistry()

Methods

 o registerField
 public static synchronized void registerField(Class acls,
                                               Class fcls)
Register a form field to edit the givan class of attributes.

Parameters:
acls - The class of the editable attribute.
fcls - The class of the form field to use.
 o registerField
 public static synchronized void registerField(String aclsname,
                                               String fclsname)
Register a form field to edit the givan class of attributes.

Parameters:
aclsname - The name of the class of the editable attribute.
fclsname - The name of the class of the form field to use.
Throws: RuntimeException
If the class names can't be resolved.
 o getField
 public static synchronized FormFieldInterface getField(Resource target,
                                                        Attribute a)
Get a suitable form field to edit the given attribute of the target.

Parameters:
target - The target resource to edit.
a - What attribute of the target needs edits.
Returns:
An instance conforming to the FormFieldInterface, or null if no such form field was registered.
 o getTargetField
 public static synchronized FormFieldInterface getTargetField(ResourceShadower target,
                                                              Attribute a)
Get a form field to edit a shadow attribute of target.

Parameters:
target - The shadower resource.
a - The attribute to edit.
Returns:
An instance conforming to the FormFieldInterface, or null if no such form field was registered.

All Packages  Class Hierarchy  This Package  Previous  Next  Index