    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xc.xc_CustomizerFactory

    java.lang.Object
       |
       +----xc.xc_CustomizerFactory

public class xc_CustomizerFactory
extends Object

Factory for generating customizers for displaying and editing XML nodes. Given the name/type of an XML node (or a node itself), it creates a customizer object suitable for displaying and editing it.

##

xc_CustomizerFactory()

##

createCustomizer(String)
  Create a customizer of as an instance of the named class.
createCustomizer(String, int)

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'.

createCustomizer(xg_Node)

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'.

createCustomizer(xg_Node, xc_NodeCustomizer)

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'.

getCustomizerClassName(String, int)
  Get the name of the customizer class suitable for displaying a node whose name is 'InputNodeName'.

##

xc_CustomizerFactory

     public xc_CustomizerFactory()

##

createCustomizer

     public xc_NodeCustomizer createCustomizer(xg_Node InputNode,
                                               xc_NodeCustomizer InputExistingCustomizer) throws xc_CustomizerCreationException

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'. If the InputExistingCustomizer exists and is of the right type (ie. is an instance of the same class which we would construct), then it will be re-used.

  Non-standard customizers can be added by registering them with xm_NodeTypeRegistry.

  Parameters:
    InputNode - The node for which we need a customizer
    InputExistingCustomizer - An existing customizer, to be re-used if possible. It may be null - in which case a new customizer will be created.
  Returns:
    The newly-created customizer for the InputNode
  Throws: xc_CustomizerCreationException
    Either no customizer class is registered or it cannot be instantiated

createCustomizer

     public xc_NodeCustomizer createCustomizer(String InputNodeName,
                                               int InputNodeType) throws xc_CustomizerCreationException

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'. If no customizer is registered for InputNodeName, then a custopmizer suitable for InputNodeType is created. This dual-level scheme allows special customizers to be added, while still creating customizers of the correct standard type the rest of the time.

  Non-standard customizers can be added by registering them with xm_NodeTypeRegistry.

  Parameters:
    InputNodeName - The name of the node for which we need a customizer
    InputNodeType - The type of node for which we need a customizer
  Returns:
    The newly-created customizer for the named entity
  Throws: xc_CustomizerCreationException
    Either no customizer class is registered or it cannot be instantiated

createCustomizer

     public xc_NodeCustomizer createCustomizer(xg_Node InputNode) throws xc_CustomizerCreationException

  Create a customizer of a type suitable for displaying a node whose name is 'InputNodeName'. If no customizer is registered for InputNodeName, then a custopmizer suitable for InputNodeType is created. This dual-level scheme allows special customizers to be added, while still creating customizers of the correct standard type the rest of the time.

  Non-standard customizers can be added by registering them with xm_NodeTypeRegistry.

  Parameters:
    InputNode - The node for which we need a customizer
  Returns:
    The newly-created customizer for the InputNode
  Throws: xc_CustomizerCreationException
    Either no customizer class is registered or it cannot be instantiated

createCustomizer

     public xc_NodeCustomizer createCustomizer(String InputCustomizerClassName) throws xc_CustomizerCreationException

  Create a customizer of as an instance of the named class.

  Parameters:
    InputCustomizerClassName - The name of the customizer class
  Returns:
    The newly-created customizer
  Throws: xc_CustomizerCreationException
    The customizer class cannot be instantiated

getCustomizerClassName

     public String getCustomizerClassName(String InputNodeName,
                                          int InputNodeType) throws xc_CustomizerCreationException

  Get the name of the customizer class suitable for displaying a node whose name is 'InputNodeName'. If no customizer is registered for InputNodeName, get the name of a custopmizer suitable for InputNodeType.

  Parameters:
    InputNodeName - The name of the node for which we need a customizer
    InputNodeType - The type of node for which we need a customizer
  Returns:
    The newly-created customizer for the named entity
  Throws: xc_CustomizerCreationException
    Either no customizer class is registered or it cannot be instantiated

    All Packages  Class Hierarchy  This Package  Previous  Next  Index