org.starobjects.wicket.ui.app.registry
Interface ComponentFactoryRegistry


public interface ComponentFactoryRegistry

API for finding registered ComponentFactorys.

Ultimately all requests to locate ComponentFactorys are routed through to an object implementing this interface.


Method Summary
 org.apache.wicket.Component addOrReplaceComponent(org.apache.wicket.MarkupContainer markupContainer, ComponentType componentType, org.apache.wicket.model.IModel<?> model)
          As per addOrReplaceComponent(MarkupContainer, ComponentType, IModel), but with the wicket id derived from the ComponentType.
 org.apache.wicket.Component addOrReplaceComponent(org.apache.wicket.MarkupContainer markupContainer, String id, ComponentType componentType, org.apache.wicket.model.IModel<?> model)
          Creates the relevant Component for the provided arguments, and adds to the provided MarkupContainer; the wicket id is as specified.
 org.apache.wicket.Component createComponent(ComponentType componentType, org.apache.wicket.model.IModel<?> model)
          As per createComponent(ComponentType, String, IModel), but with the wicket id derived from the ComponentType.
 org.apache.wicket.Component createComponent(ComponentType componentType, String id, org.apache.wicket.model.IModel<?> model)
          Create the Component matching the specified ComponentType and IModel to the provided MarkupContainer; the id is specified explicitly.
 List<ComponentFactory> findComponentFactories(ComponentType componentType, org.apache.wicket.model.IModel<?> model)
           
 ComponentFactory findComponentFactory(ComponentType componentType, org.apache.wicket.model.IModel<?> model)
          Finds the "best" ComponentFactory for the viewId.
 ComponentFactory findComponentFactoryElseFailFast(ComponentType componentType, org.apache.wicket.model.IModel<?> model)
           
 

Method Detail

findComponentFactories

List<ComponentFactory> findComponentFactories(ComponentType componentType,
                                              org.apache.wicket.model.IModel<?> model)

findComponentFactory

ComponentFactory findComponentFactory(ComponentType componentType,
                                      org.apache.wicket.model.IModel<?> model)
Finds the "best" ComponentFactory for the viewId.


addOrReplaceComponent

org.apache.wicket.Component addOrReplaceComponent(org.apache.wicket.MarkupContainer markupContainer,
                                                  ComponentType componentType,
                                                  org.apache.wicket.model.IModel<?> model)
As per addOrReplaceComponent(MarkupContainer, ComponentType, IModel), but with the wicket id derived from the ComponentType.


addOrReplaceComponent

org.apache.wicket.Component addOrReplaceComponent(org.apache.wicket.MarkupContainer markupContainer,
                                                  String id,
                                                  ComponentType componentType,
                                                  org.apache.wicket.model.IModel<?> model)
Creates the relevant Component for the provided arguments, and adds to the provided MarkupContainer; the wicket id is as specified.

If none can be found, will fail fast.


createComponent

org.apache.wicket.Component createComponent(ComponentType componentType,
                                            org.apache.wicket.model.IModel<?> model)
As per createComponent(ComponentType, String, IModel), but with the wicket id derived from the ComponentType.

See Also:
createComponent(ComponentType, String, IModel)

createComponent

org.apache.wicket.Component createComponent(ComponentType componentType,
                                            String id,
                                            org.apache.wicket.model.IModel<?> model)
Create the Component matching the specified ComponentType and IModel to the provided MarkupContainer; the id is specified explicitly.

If none can be found, will fail fast.


findComponentFactoryElseFailFast

ComponentFactory findComponentFactoryElseFailFast(ComponentType componentType,
                                                  org.apache.wicket.model.IModel<?> model)


Copyright © 2009-2010 Dan Haywood. All Rights Reserved.