@Component(value="cuba_NotificationFacetProvider") public class NotificationFacetProvider extends java.lang.Object implements FacetProvider<NotificationFacet>
Modifier and Type | Field and Description |
---|---|
protected MessageTools |
messageTools |
static java.lang.String |
NAME |
protected WebConfig |
webConfig |
Constructor and Description |
---|
NotificationFacetProvider() |
Modifier and Type | Method and Description |
---|---|
NotificationFacet |
create() |
java.lang.Class<NotificationFacet> |
getFacetClass() |
java.lang.String |
getFacetTag() |
protected void |
loadCaption(NotificationFacet facet,
org.dom4j.Element element,
ComponentLoader.ComponentContext context) |
protected void |
loadContentMode(NotificationFacet facet,
org.dom4j.Element element) |
protected void |
loadDelay(NotificationFacet facet,
org.dom4j.Element element) |
protected void |
loadDescription(NotificationFacet facet,
org.dom4j.Element element,
ComponentLoader.ComponentContext context) |
void |
loadFromXml(NotificationFacet facet,
org.dom4j.Element element,
ComponentLoader.ComponentContext context)
Loads properties of the facet from XML.
|
protected void |
loadHtmlSanitizerEnabled(NotificationFacet facet,
org.dom4j.Element element) |
protected void |
loadId(NotificationFacet facet,
org.dom4j.Element element) |
protected void |
loadPosition(NotificationFacet facet,
org.dom4j.Element element) |
protected java.lang.String |
loadResourceString(ComponentLoader.ComponentContext context,
java.lang.String caption) |
protected void |
loadStyleName(NotificationFacet facet,
org.dom4j.Element element) |
protected void |
loadTarget(NotificationFacet facet,
org.dom4j.Element element,
ComponentLoader.ComponentContext context) |
protected void |
loadType(NotificationFacet facet,
org.dom4j.Element element) |
public static final java.lang.String NAME
@Inject protected MessageTools messageTools
@Inject protected WebConfig webConfig
public java.lang.Class<NotificationFacet> getFacetClass()
getFacetClass
in interface FacetProvider<NotificationFacet>
public NotificationFacet create()
create
in interface FacetProvider<NotificationFacet>
public java.lang.String getFacetTag()
getFacetTag
in interface FacetProvider<NotificationFacet>
public void loadFromXml(NotificationFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context)
FacetProvider
loadFromXml
in interface FacetProvider<NotificationFacet>
facet
- facetelement
- XML elementcontext
- loading contextprotected void loadId(NotificationFacet facet, org.dom4j.Element element)
protected void loadCaption(NotificationFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context)
protected void loadDescription(NotificationFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context)
protected void loadType(NotificationFacet facet, org.dom4j.Element element)
protected void loadDelay(NotificationFacet facet, org.dom4j.Element element)
protected void loadContentMode(NotificationFacet facet, org.dom4j.Element element)
protected void loadStyleName(NotificationFacet facet, org.dom4j.Element element)
protected void loadPosition(NotificationFacet facet, org.dom4j.Element element)
protected void loadTarget(NotificationFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context)
protected void loadHtmlSanitizerEnabled(NotificationFacet facet, org.dom4j.Element element)
protected java.lang.String loadResourceString(ComponentLoader.ComponentContext context, java.lang.String caption)