public abstract class MetawidgetTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Class and Description |
---|---|
protected class |
MetawidgetTag.MetawidgetTagPipeline |
Constructor and Description |
---|
MetawidgetTag() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
beforeBuildCompoundWidget(Element element) |
int |
doEndTag() |
int |
doStartTag() |
<T> T |
getClientProperty(Object key)
Storage area for WidgetProcessors, Layouts, and other stateless clients.
|
protected abstract String |
getDefaultConfiguration() |
FacetTag |
getFacet(String name) |
String |
getLabelString(Map<String,String> attributes)
Returns a label for the given set of attributes.
|
Layout<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> |
getLayout()
Useful for WidgetBuilders.
|
String |
getLocalizedKey(String key) |
javax.servlet.jsp.PageContext |
getPageContext()
This method is public for use by WidgetBuilders to perform nested inspections (eg.
|
String |
getPath() |
String |
getPathPrefix() |
StubTag |
getStub(String path)
Fetch a
StubTag with the given path. |
protected void |
initNestedMetawidget(MetawidgetTag nestedMetawidget,
Map<String,String> attributes) |
protected Element |
inspect() |
String |
inspect(Object toInspect,
String type,
String... names)
Useful for WidgetBuilders to perform nested inspections (eg.
|
boolean |
isReadOnly() |
protected W3CPipeline<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> |
newPipeline()
Instantiate the Pipeline used by this Metawidget.
|
void |
putClientProperty(Object key,
Object value)
Storage area for WidgetProcessors, Layouts, and other stateless clients.
|
protected void |
setBundle(ResourceBundle bundle)
Sets the ResourceBundle used to localize labels.
|
void |
setConfig(String config) |
void |
setFacet(String name,
FacetTag facetTag) |
void |
setInspectionResultProcessors(InspectionResultProcessor<MetawidgetTag>... inspectionResultProcessors) |
void |
setInspector(Inspector inspector) |
void |
setLayout(Layout<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> layout) |
void |
setPageContext(javax.servlet.jsp.PageContext newPageContext) |
protected void |
setPathInternal(String path)
Sets the path.
|
protected void |
setPathPrefix(String pathPrefix) |
void |
setReadOnly(boolean readOnly) |
void |
setStub(String path,
StubTag stubTag) |
void |
setWidgetBuilder(WidgetBuilder<Object,? extends MetawidgetTag> widgetBuilder) |
void |
setWidgetProcessors(WidgetProcessor<javax.servlet.jsp.tagext.Tag,MetawidgetTag>... widgetProcessors) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
public void setPageContext(javax.servlet.jsp.PageContext newPageContext)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
setPageContext
in class javax.servlet.jsp.tagext.TagSupport
public String getPath()
public String getPathPrefix()
public void setConfig(String config)
public String getLabelString(Map<String,String> attributes)
The label is determined using the following algorithm:
public String getLocalizedKey(String key)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public void setInspector(Inspector inspector)
public String inspect(Object toInspect, String type, String... names)
public void setInspectionResultProcessors(InspectionResultProcessor<MetawidgetTag>... inspectionResultProcessors)
public void setWidgetBuilder(WidgetBuilder<Object,? extends MetawidgetTag> widgetBuilder)
public void setWidgetProcessors(WidgetProcessor<javax.servlet.jsp.tagext.Tag,MetawidgetTag>... widgetProcessors)
public Layout<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> getLayout()
public void setLayout(Layout<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> layout)
public javax.servlet.jsp.PageContext getPageContext()
public void putClientProperty(Object key, Object value)
public <T> T getClientProperty(Object key)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public StubTag getStub(String path)
StubTag
with the given path.
This is an internal API exposed for OverriddenWidgetBuilder. Clients should not call it directly.
protected void setPathInternal(String path)
Set by subclasses according to what they prefer to call it (eg. name
for Struts,
property
for Spring).
protected void setPathPrefix(String pathPrefix)
protected void setBundle(ResourceBundle bundle)
This will need to be exposed in framework-specific ways. For example, JSTL can use
LocalizationContext
s, though these are not necessarily available to a Struts
app.
protected W3CPipeline<javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.BodyTag,MetawidgetTag> newPipeline()
Subclasses wishing to use their own Pipeline should override this method to instantiate their version.
protected abstract void beforeBuildCompoundWidget(Element element)
protected void initNestedMetawidget(MetawidgetTag nestedMetawidget, Map<String,String> attributes)
protected Element inspect()
protected abstract String getDefaultConfiguration()
Copyright © 2015. All Rights Reserved.