Component
share the same sort of relationship as the relation between classes and instances in Java. Normally, there is only one ComponentFactory created for any particular category.
The String arguments passed to the methods #createLabel(String)
, #createTitle(String)
, and #createSeparator(String, int)
can contain an optional mnemonic marker. The mnemonic and mnemonic index are indicated by a single ampersand (&). For example "&Save", or "Save &as". To use the ampersand itself duplicate it, for example "Look&&Feel".
@author Karsten Lentzsch
@version $Revision: 1.8 $
@see DefaultComponentFactory
@see com.jgoodies.forms.builder.PanelBuilder
This interface must be implemented by all UIComponent factories. This enabled UIComponents to be created via a consistent interface. This is critical to classes such as {@link com.sun.jsftemplating.component.TemplateComponentBase}and {@link LayoutComponent}.
@author Ken Paulsen (ken.paulsen@sun.com)This interface is at the very heart of the Wicket Objects' model, being an usage of the chain-of-responsibility design pattern. The available {@link ComponentFactory}s are registered through {@link ComponentFactoryRegistry} (bootstrapped from theWicketObjectsApplication); various adapters make it easy to lookup {@link Component}s from this registry.
Usually the component or ComponentBundle will just be loaded from a particular ClassLoader. However if a developer wanted to dynamically assemble applications they could implement a custom factory that created components via non-standard mechanisms (say by wrapping remote, CORBA, or other style objects).
The methods take a implementationKey
parameter and usually this represents the class name of the component. However in alternative component systems this may designate objects via different mechanisms.
ServiceFactory
is responsible for instantiating a component.
@author Jason van Zyl
@author Michal Maczka
@version $Id: ComponentFactory.java 1323 2004-12-20 23:00:59Z jvanzyl $
|
|
|
|
|
|
|
|
|
|