Package com.microstrategy.web.tags
Class WebBlockEditTagImpl
- java.lang.Object
-
- com.microstrategy.web.tags.TagImpl
-
- com.microstrategy.web.tags.WebBlockEditTagImpl
-
- All Implemented Interfaces:
DynamicTag,EnumHTMLTags,LayoutParserAware,Tag,java.io.Serializable
- Direct Known Subclasses:
WebBlockEditBlockTagImpl,WebBlockEditListTagImpl
public abstract class WebBlockEditTagImpl extends TagImpl
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringresolvedMethodName-
Fields inherited from interface com.microstrategy.web.tags.DynamicTag
ATTR_NAME_METHOD, ATTR_NAME_METHOD_BASE, ATTR_NAME_NAME, METHOD_SOURCE_BEAN, METHOD_SOURCE_BEAN_NAME, METHOD_SOURCE_OBJECT, METHOD_SOURCE_TRANSFORM, METHOD_SOURCE_TRANSFORM_NAME
-
Fields inherited from interface com.microstrategy.web.tags.EnumHTMLTags
ATT_ACTION, ATT_ALIGN, ATT_ALT, ATT_AUTOCOMPLETE, ATT_BORDER, ATT_CELLPADDING, ATT_CELLSPACING, ATT_CHECKED, ATT_CLASS, ATT_CMD_FORMAT_TYPE, ATT_CMDID, ATT_CMDLVL, ATT_COLS, ATT_COLSPAN, ATT_DG, ATT_DIALOG, ATT_DISABLED, ATT_FOR, ATT_HEIGHT, ATT_HREF, ATT_HSPACE, ATT_ID, ATT_IFRAME, ATT_LANGUAGE, ATT_MAXLENGTH, ATT_METHOD, ATT_MODAL, ATT_NAME, ATT_NOWRAP, ATT_ONCHANGE, ATT_ONCLICK, ATT_ONFOCUS, ATT_ONKEYDOWN, ATT_ONKEYUP, ATT_ONMOUSEOUT, ATT_ONMOUSEOVER, ATT_ONSUBMIT, ATT_PARAM, ATT_PLACEHOLDER, ATT_READONLY, ATT_REL, ATT_ROWS, ATT_ROWSPAN, ATT_SCRIPT_CLASS, ATT_SELECTED, ATT_SIZE, ATT_SRC, ATT_STYLE, ATT_SUMMARY, ATT_TARGET, ATT_TITLE, ATT_TY, ATT_TYPE, ATT_VALIGN, ATT_VALUE, ATT_VALUE_ABSBOTTOM, ATT_VALUE_ABSMIDDLE, ATT_VALUE_BOTTOM, ATT_VALUE_BUTTON, ATT_VALUE_CHECKBOX, ATT_VALUE_DEFAULT, ATT_VALUE_EMBED, ATT_VALUE_FALSE, ATT_VALUE_HIDDEN, ATT_VALUE_IMAGE, ATT_VALUE_JAVASCRIPT, ATT_VALUE_LEFT, ATT_VALUE_MAX, ATT_VALUE_MIDDLE, ATT_VALUE_MIN, ATT_VALUE_NUMBER, ATT_VALUE_POST, ATT_VALUE_RADIO, ATT_VALUE_SUBMIT, ATT_VALUE_TEXT, ATT_VALUE_TOP, ATT_VALUE_TRUE, ATT_VSPACE, ATT_WIDTH, TAG_NAME_ANCHOR, TAG_NAME_CELL, TAG_NAME_DIV, TAG_NAME_HEADER, TAG_NAME_IFRAME, TAG_NAME_IMAGE, TAG_NAME_INPUT, TAG_NAME_LABEL, TAG_NAME_MAP, TAG_NAME_OPTION, TAG_NAME_ROW, TAG_NAME_SCRIPT, TAG_NAME_SELECT, TAG_NAME_SPAN, TAG_NAME_STYLE, TAG_NAME_TABLE, TAG_NAME_TBODY, TAG_NAME_TEXTAREA, TAG_NAME_THEAD
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddArgument(ArgumentTag tag)Adds anArgumentTagas a child of the current tag.TagaddChild(Tag tag)Adds a child tag.voidaddOnException(OnExceptionTag tag)Adds anOnExceptionTagas a child of the current tag.voidchildrenAdded()voiddoEndTag(LayoutContext context)This method is called after the rendering methodTag.renderCloseTag(MarkupOutput)is called to render the closing part of a tag, such as "".voiddoStartTag(LayoutContext context)This method is called before the rendering methodTag.renderOpenTag(MarkupOutput, LayoutContext)is called to render the opening part of a tag, such as "".java.util.EnumerationgetArguments()Returns anEnumerationover all the arguments of the method from which the dynamic contents are generated.protected java.util.ListgetCachedArguments()protected abstract java.lang.ObjectgetEditObject(BlockTarget pathTarget)protected java.util.ListgetExceptions()protected java.lang.Object[]getInvocationArguments(MarkupOutput markup, LayoutContext context)protected java.lang.Object[]getInvocationArgumentsFromContext(MarkupOutput markup, LayoutContext context)java.lang.StringgetMethodName()Returns the method name from which the dynamic contents are generated.protected abstract java.lang.ClassgetMethodParameterClass()protected java.lang.ObjectgetMethodParameterObject(BlockTarget pathTarget)protected java.lang.Class[]getMethodParameters()This method returns the array of method parameter class.protected java.lang.Class[]getMethodParametersFromContext(LayoutContext context)This method returns the method parameters class array from context.intgetMethodSource()Returns the method source in which the method is defined.java.util.EnumerationgetOnExceptions()Returns anEnumerationover all the exception tags associated with the method from which the dynamic contents are generated.protected java.lang.StringgetResolvedMethodName()java.lang.ObjectinvokeMethod(MarkupOutput markup, LayoutContext context)Invokes the method to generate the dynamic contents.voidsetAttribute(java.lang.String attrName, java.lang.String attrValue)Sets a new value to the attribute with the specified attribute name.voidsetMethodName(java.lang.String methodName)Sets the method name from which the dynamic contents are generated.voidsetMethodSource(java.lang.String source)Sets the method source in which the method is defined.protected voidsetMethodSourceInternal(int source)-
Methods inherited from class com.microstrategy.web.tags.TagImpl
addChild, addChild, addTextChild, addTextChild, checkEmptyString, checkModifiable, checkNullObject, generateErrorMessage, getAttribute, getAttributeNames, getAttributeNamesCollection, getAttributesCollection, getChildren, getChildrenCollection, getContent, getCssClass, getDeepCopy, getDynamicAttributesCollection, getId, getLineNumber, getPreserveCase, getRootTag, getSealed, getStyle, getTagName, isClosedRequired, isContentInline, isDynamic, removeAttribute, removeChildren, render, render, renderAllAttributes, renderChildTags, renderCloseTag, renderCloseTag, renderOpenTag, renderOpenTag, replaceContent, setAttributes, setCssClass, setDynamic, setDynamicInternal, setId, setIsClosedRequired, setIsContentInline, setLineNumber, setPreserveCase, setRootTag, setSealed, setStyle, setTagName, shouldCloseTag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.tags.Tag
addChild, addChild, addTextChild, addTextChild, getAttribute, getAttributeNames, getChildren, getContent, getCssClass, getDeepCopy, getId, getLineNumber, getPreserveCase, getRootTag, getSealed, getStyle, getTagName, isClosedRequired, isContentInline, isDynamic, removeChildren, render, render, renderCloseTag, renderOpenTag, renderOpenTag, replaceContent, setAttributes, setCssClass, setDynamic, setId, setIsClosedRequired, setIsContentInline, setLineNumber, setPreserveCase, setRootTag, setSealed, setStyle, setTagName
-
-
-
-
Method Detail
-
doStartTag
public void doStartTag(LayoutContext context)
Description copied from interface:TagThis method is called before the rendering methodTag.renderOpenTag(MarkupOutput, LayoutContext)is called to render the opening part of a tag, such as "". It is recommended to put all the preparations in this method that does not require rendering to the
". It is recommended to put all the cleaning work in this method that does not require rendering to theMarkupOutputobject.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classTagImpl- Parameters:
context- theLayoutContextobject within which the rendering occurs.
-
doEndTag
public void doEndTag(LayoutContext context)
Description copied from interface:TagThis method is called after the rendering methodTag.renderCloseTag(MarkupOutput)is called to render the closing part of a tag, such as "
MarkupOutputobject.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagImpl- Parameters:
context- theLayoutContextobject within which the rendering occurs.
-
getMethodParametersFromContext
protected java.lang.Class[] getMethodParametersFromContext(LayoutContext context) throws TypeUnsupportedException
This method returns the method parameters class array from context. Default behavior is to retrieve it from cache.- Parameters:
context- The layout context.- Returns:
- The array of parameter classes.
- Throws:
TypeUnsupportedException
-
getInvocationArgumentsFromContext
protected java.lang.Object[] getInvocationArgumentsFromContext(MarkupOutput markup, LayoutContext context) throws ArgumentUnresolvedException, EmptyListException
-
getMethodParameterClass
protected abstract java.lang.Class getMethodParameterClass()
-
getMethodParameterObject
protected java.lang.Object getMethodParameterObject(BlockTarget pathTarget) throws ArgumentUnresolvedException
- Throws:
ArgumentUnresolvedException
-
getEditObject
protected abstract java.lang.Object getEditObject(BlockTarget pathTarget) throws ArgumentUnresolvedException
- Throws:
ArgumentUnresolvedException
-
getMethodName
public java.lang.String getMethodName()
Description copied from interface:DynamicTagReturns the method name from which the dynamic contents are generated. The method name is actually the value of the attibuteDynamicTag.ATTR_NAME_METHOD.- Specified by:
getMethodNamein interfaceDynamicTag- Returns:
- the method name.
-
setMethodName
public void setMethodName(java.lang.String methodName) throws UnmodifiableExceptionDescription copied from interface:DynamicTagSets the method name from which the dynamic contents are generated. The method name is actually the value of the attibuteDynamicTag.ATTR_NAME_METHOD.- Specified by:
setMethodNamein interfaceDynamicTag- Parameters:
methodName- the method name.- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
getArguments
public java.util.Enumeration getArguments()
Description copied from interface:DynamicTagReturns anEnumerationover all the arguments of the method from which the dynamic contents are generated.- Specified by:
getArgumentsin interfaceDynamicTag- Returns:
- an
Enumerationover all the arguments.
-
addArgument
public void addArgument(ArgumentTag tag) throws UnmodifiableException
Description copied from interface:DynamicTagAdds anArgumentTagas a child of the current tag.- Specified by:
addArgumentin interfaceDynamicTag- Parameters:
tag- anArgumentTagto be added.- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
addOnException
public void addOnException(OnExceptionTag tag) throws UnmodifiableException
Description copied from interface:DynamicTagAdds anOnExceptionTagas a child of the current tag.- Specified by:
addOnExceptionin interfaceDynamicTag- Parameters:
tag- anOnExceptionTagto be added.- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
getOnExceptions
public java.util.Enumeration getOnExceptions()
Description copied from interface:DynamicTagReturns anEnumerationover all the exception tags associated with the method from which the dynamic contents are generated.- Specified by:
getOnExceptionsin interfaceDynamicTag- Returns:
- an
Enumerationover all theOnExceptionTagtags.
-
getMethodSource
public int getMethodSource()
Description copied from interface:DynamicTagReturns the method source in which the method is defined. Method source can be one of the following- Specified by:
getMethodSourcein interfaceDynamicTag- Returns:
- the method source.
-
setMethodSource
public void setMethodSource(java.lang.String source) throws UnmodifiableExceptionDescription copied from interface:DynamicTagSets the method source in which the method is defined. Method source can be one of the following- Specified by:
setMethodSourcein interfaceDynamicTag- Parameters:
source- the method source.- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
invokeMethod
public java.lang.Object invokeMethod(MarkupOutput markup, LayoutContext context) throws MalformedMethodException, EmptyListException
Description copied from interface:DynamicTagInvokes the method to generate the dynamic contents.- Specified by:
invokeMethodin interfaceDynamicTag- Parameters:
markup- aMarkupOutputobject which could be the first parameter of the method if the current tag is aRenderTag.context- aLayoutContextobject from which the method source and list values are cached.- Returns:
- the return value of the method call.
- Throws:
MalformedMethodException- thrown if there is any exception making the method call.EmptyListException- thrown if theListcached in theLayoutContextis empty.
-
addChild
public Tag addChild(Tag tag) throws UnmodifiableException
Description copied from interface:TagAdds a child tag.- Specified by:
addChildin interfaceTag- Overrides:
addChildin classTagImpl- Parameters:
tag- the child tag to be added.- Returns:
- the child tag just being added.
- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.String attrValue) throws UnmodifiableExceptionDescription copied from interface:TagSets a new value to the attribute with the specified attribute name. If the specified attribute does not exist in the current tag, adds it. If the specified attribute value is null, removes the attribute from the current tag.- Specified by:
setAttributein interfaceTag- Overrides:
setAttributein classTagImpl- Parameters:
attrName- the name of the attributeattrValue- the value of the attribute- Throws:
UnmodifiableException- thrown if the current tag is read-only.
-
getCachedArguments
protected java.util.List getCachedArguments()
-
getExceptions
protected java.util.List getExceptions()
-
getResolvedMethodName
protected java.lang.String getResolvedMethodName()
-
getMethodParameters
protected java.lang.Class[] getMethodParameters() throws TypeUnsupportedExceptionThis method returns the array of method parameter class. The default behavior is to compute from argument tags.- Returns:
- The array of method parameter class.
- Throws:
TypeUnsupportedException
-
getInvocationArguments
protected java.lang.Object[] getInvocationArguments(MarkupOutput markup, LayoutContext context) throws ArgumentUnresolvedException, EmptyListException
-
setMethodSourceInternal
protected void setMethodSourceInternal(int source)
-
childrenAdded
public void childrenAdded()
- Specified by:
childrenAddedin interfaceLayoutParserAware
-
-