public interface ComponentLoader<T extends Component>
Modifier and Type | Interface and Description |
---|---|
static interface |
ComponentLoader.Context |
static interface |
ComponentLoader.InitTask
For internal use only.
|
static interface |
ComponentLoader.InjectTask
For internal use only.
|
static interface |
ComponentLoader.PostInitTask
PostInitTasks are used to perform deferred initialization of visual components.
|
static interface |
ComponentLoader.PostWrapTask
PostInitTasks are used to perform deferred initialization of visual components that requires window controller.
|
Modifier and Type | Method and Description |
---|---|
void |
createComponent()
Creates result component by XML-element and loads its Id.
|
ComponentLoader.Context |
getContext() |
org.dom4j.Element |
getElement(org.dom4j.Element element) |
ComponentsFactory |
getFactory() |
LayoutLoaderConfig |
getLayoutLoaderConfig() |
java.util.Locale |
getLocale() |
java.lang.String |
getMessagesPack() |
Component |
getResultComponent()
Returns previously created instance of component.
|
void |
loadComponent()
Loads component properties by XML definition.
|
void |
setContext(ComponentLoader.Context context) |
void |
setElement(org.dom4j.Element element) |
void |
setFactory(ComponentsFactory factory) |
void |
setLayoutLoaderConfig(LayoutLoaderConfig config) |
void |
setLocale(java.util.Locale locale) |
void |
setMessagesPack(java.lang.String name) |
ComponentLoader.Context getContext()
void setContext(ComponentLoader.Context context)
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
java.lang.String getMessagesPack()
void setMessagesPack(java.lang.String name)
ComponentsFactory getFactory()
void setFactory(ComponentsFactory factory)
LayoutLoaderConfig getLayoutLoaderConfig()
void setLayoutLoaderConfig(LayoutLoaderConfig config)
org.dom4j.Element getElement(org.dom4j.Element element)
void setElement(org.dom4j.Element element)
void createComponent()
getResultComponent()
void loadComponent()
getElement(Element)
Component getResultComponent()
createComponent()