    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

##

FormFieldRegistry()

##

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

##

FormFieldRegistry

     public FormFieldRegistry()

##

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.

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.

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.

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