@Scope(value="prototype")
@Component(value="cuba_LayoutLoader")
public class LayoutLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BeanLocator |
beanLocator |
protected LayoutLoaderConfig |
config |
protected ComponentLoader.Context |
context |
protected UiComponents |
factory |
protected java.util.Locale |
locale |
protected java.lang.String |
messagesPack |
static java.lang.String |
NAME |
Constructor and Description |
---|
LayoutLoader(ComponentLoader.Context context) |
Modifier and Type | Method and Description |
---|---|
ComponentLoader |
createComponent(org.dom4j.Element element) |
ComponentLoader<Fragment> |
createFragmentContent(Fragment fragment,
org.dom4j.Element rootWindowElement,
java.lang.String fragmentId) |
com.haulmont.bali.datastruct.Pair<ComponentLoader,org.dom4j.Element> |
createFrameComponent(java.lang.String resourcePath,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params) |
ComponentLoader<Window> |
createWindowContent(Window window,
org.dom4j.Element rootWindowElement,
java.lang.String windowId) |
protected com.haulmont.cuba.gui.xml.layout.loaders.FragmentLoader |
getFragmentLoader(org.dom4j.Element element) |
protected ComponentLoader |
getLoader(org.dom4j.Element element) |
java.util.Locale |
getLocale() |
java.lang.String |
getMessagesPack() |
protected com.haulmont.cuba.gui.xml.layout.loaders.WindowLoader |
getWindowLoader(org.dom4j.Element element) |
protected ComponentLoader |
initLoader(org.dom4j.Element element,
java.lang.Class<? extends ComponentLoader> loaderClass) |
void |
setBeanLocator(BeanLocator beanLocator) |
void |
setConfig(LayoutLoaderConfig config) |
void |
setFactory(UiComponents factory) |
void |
setLocale(java.util.Locale locale) |
void |
setMessagesPack(java.lang.String messagesPack) |
public static final java.lang.String NAME
protected ComponentLoader.Context context
protected UiComponents factory
protected LayoutLoaderConfig config
protected java.util.Locale locale
protected java.lang.String messagesPack
protected BeanLocator beanLocator
public LayoutLoader(ComponentLoader.Context context)
@Inject public void setBeanLocator(BeanLocator beanLocator)
@Inject public void setFactory(UiComponents factory)
@Inject public void setConfig(LayoutLoaderConfig config)
public java.lang.String getMessagesPack()
public void setMessagesPack(java.lang.String messagesPack)
protected ComponentLoader getLoader(org.dom4j.Element element)
protected com.haulmont.cuba.gui.xml.layout.loaders.FragmentLoader getFragmentLoader(org.dom4j.Element element)
protected com.haulmont.cuba.gui.xml.layout.loaders.WindowLoader getWindowLoader(org.dom4j.Element element)
protected ComponentLoader initLoader(org.dom4j.Element element, java.lang.Class<? extends ComponentLoader> loaderClass)
public com.haulmont.bali.datastruct.Pair<ComponentLoader,org.dom4j.Element> createFrameComponent(java.lang.String resourcePath, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params)
public ComponentLoader createComponent(org.dom4j.Element element)
public ComponentLoader<Fragment> createFragmentContent(Fragment fragment, org.dom4j.Element rootWindowElement, java.lang.String fragmentId)
public ComponentLoader<Window> createWindowContent(Window window, org.dom4j.Element rootWindowElement, java.lang.String windowId)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)