本文整理了Java中org.apache.wicket.markup.parser.XmlTag.setName()
方法的一些代码示例,展示了XmlTag.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlTag.setName()
方法的具体详情如下:
包路径:org.apache.wicket.markup.parser.XmlTag
类名称:XmlTag
方法名:setName
[英]Sets the tag name.
[中]设置标记名。
代码示例来源:origin: apache/wicket
/**
* @see org.apache.wicket.markup.parser.XmlTag#setName(String)
* @param name
* New tag name
*/
public final void setName(String name)
{
xmlTag.setName(name);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
XmlTag closeTag = new XmlTag();
closeTag.setType(XmlTag.CLOSE);
closeTag.setName(tag.getName());
closeTag.setNamespace(tag.getNamespace());
closeTag.closes(tag);
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* @see org.apache.wicket.markup.parser.XmlTag#setName(String)
* @param name
* New tag name
*/
public final void setName(String name)
{
xmlTag.setName(name);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* @see org.apache.wicket.markup.parser.XmlTag#setName(String)
* @param name
* New tag name
*/
public final void setName(String name)
{
xmlTag.setName(name);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* @see org.apache.wicket.markup.parser.XmlTag#setName(String)
* @param name
* New tag name
*/
public final void setName(String name)
{
xmlTag.setName(name);
}
代码示例来源:origin: org.wicketstuff/wicketstuff-minis
private static XmlTag createXmlTag(final String name, final XmlTag.TagType type)
{
final XmlTag xmlTag = new XmlTag();
xmlTag.setType(type);
xmlTag.setName(name);
return xmlTag;
}
代码示例来源:origin: org.wicketstuff/minis
private static XmlTag createXmlTag(final String name, final XmlTag.Type type)
{
final XmlTag xmlTag = new XmlTag();
xmlTag.setType(type);
xmlTag.setName(name);
return xmlTag;
}
代码示例来源:origin: apache/wicket
/**
* Automatically create a XmlTag, assign the name and the type, and construct a ComponentTag
* based on this XmlTag.
*
* @param name
* The name of html tag
* @param type
* The type of tag
*/
public ComponentTag(final String name, final XmlTag.TagType type)
{
final XmlTag tag = new XmlTag();
tag.setName(name);
tag.setType(type);
xmlTag = tag;
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Automatically create a XmlTag, assign the name and the type, and construct a ComponentTag
* based on this XmlTag.
*
* @param name
* The name of html tag
* @param type
* The type of tag
*/
public ComponentTag(final String name, final XmlTag.TagType type)
{
final XmlTag tag = new XmlTag();
tag.setName(name);
tag.setType(type);
xmlTag = tag;
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Automatically create a XmlTag, assign the name and the type, and construct a ComponentTag
* based on this XmlTag.
*
* @param name
* The name of html tag
* @param type
* The type of tag
*/
public ComponentTag(final String name, final XmlTag.Type type)
{
final XmlTag tag = new XmlTag();
tag.setName(name);
tag.setType(type);
xmlTag = tag;
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Automatically create a XmlTag, assign the name and the type, and construct a ComponentTag
* based on this XmlTag.
*
* @param name
* The name of html tag
* @param type
* The type of tag
*/
public ComponentTag(final String name, final XmlTag.Type type)
{
final XmlTag tag = new XmlTag();
tag.setName(name);
tag.setType(type);
xmlTag = tag;
}
代码示例来源:origin: org.wicketstuff/tinymce
/**
* Create image xml tag which represets image html tag with proper url generated.
* @param pImageFileDescription - image file description.
* @param pUrl - component url.
* @return image xml tag which represets image html tag with proper url generated.
*/
public static XmlTag createImageTag(ImageFileDescription pImageFileDescription, CharSequence pUrl) {
XmlTag tag = new XmlTag();
tag.setName("img");
tag.setType(XmlTag.OPEN_CLOSE);
tag.put(IMAGE_FILE_NAME, pImageFileDescription.getName());
StringBuilder sb = new StringBuilder(pUrl);
sb.append("&").append(IMAGE_FILE_NAME).append("=").append(pImageFileDescription.getName());
sb.append("&").append(IMAGE_CONTENT_TYPE).append("=").append(pImageFileDescription.getContentType());
tag.put("src", RequestCycle.get().getOriginalResponse().encodeURL(
Strings.replaceAll(sb.toString(), "&", "&")));
return tag;
}
}
代码示例来源:origin: org.wicketstuff/wicketstuff-tinymce
/**
* Create image xml tag which represets image html tag with proper url generated.
*
* @param pImageFileDescription
* - image file description.
* @param pUrl
* - component url.
* @return image xml tag which represets image html tag with proper url generated.
*/
public static XmlTag createImageTag(ImageFileDescription pImageFileDescription,
CharSequence pUrl)
{
XmlTag tag = new XmlTag();
tag.setName("img");
tag.setType(XmlTag.TagType.OPEN_CLOSE);
tag.put(IMAGE_FILE_NAME, pImageFileDescription.getName());
StringBuilder sb = new StringBuilder(pUrl);
sb.append("&").append(IMAGE_FILE_NAME).append("=").append(pImageFileDescription.getName());
sb.append("&")
.append(IMAGE_CONTENT_TYPE)
.append("=")
.append(pImageFileDescription.getContentType());
tag.put(
"src",
RequestCycle.get()
.getOriginalResponse()
.encodeURL(sb.toString()));
return tag;
}
}
代码示例来源:origin: org.wicketstuff/wicketstuff-tinymce4
/**
* Create image xml tag which represets image html tag with proper url generated.
*
* @param pImageFileDescription
* - image file description.
* @param pUrl
* - component url.
* @return image xml tag which represets image html tag with proper url generated.
*/
public static XmlTag createImageTag(ImageFileDescription pImageFileDescription,
CharSequence pUrl)
{
XmlTag tag = new XmlTag();
tag.setName("img");
tag.setType(XmlTag.TagType.OPEN_CLOSE);
tag.put(IMAGE_FILE_NAME, pImageFileDescription.getName());
StringBuilder sb = new StringBuilder(pUrl);
sb.append("&").append(IMAGE_FILE_NAME).append("=").append(pImageFileDescription.getName());
sb.append("&")
.append(IMAGE_CONTENT_TYPE)
.append("=")
.append(pImageFileDescription.getContentType());
tag.put(
"src",
RequestCycle.get()
.getOriginalResponse()
.encodeURL(sb.toString()));
return tag;
}
}
代码示例来源:origin: org.wicketstuff/wicketstuff-tinymce3
/**
* Create image xml tag which represets image html tag with proper url generated.
*
* @param pImageFileDescription
* - image file description.
* @param pUrl
* - component url.
* @return image xml tag which represets image html tag with proper url generated.
*/
public static XmlTag createImageTag(ImageFileDescription pImageFileDescription,
CharSequence pUrl)
{
XmlTag tag = new XmlTag();
tag.setName("img");
tag.setType(XmlTag.TagType.OPEN_CLOSE);
tag.put(IMAGE_FILE_NAME, pImageFileDescription.getName());
StringBuilder sb = new StringBuilder(pUrl);
sb.append("&").append(IMAGE_FILE_NAME).append("=").append(pImageFileDescription.getName());
sb.append("&")
.append(IMAGE_CONTENT_TYPE)
.append("=")
.append(pImageFileDescription.getContentType());
tag.put(
"src",
RequestCycle.get()
.getOriginalResponse()
.encodeURL(sb.toString()));
return tag;
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
headOpenTag.setName("head");
headOpenTag.setType(TagType.OPEN);
final ComponentTag openTag = new ComponentTag(headOpenTag);
headCloseTag.setName(headOpenTag.getName());
headCloseTag.setType(TagType.CLOSE);
final ComponentTag closeTag = new ComponentTag(headCloseTag);
代码示例来源:origin: apache/wicket
headOpenTag.setName("head");
headOpenTag.setType(TagType.OPEN);
final ComponentTag openTag = new ComponentTag(headOpenTag);
headCloseTag.setName(headOpenTag.getName());
headCloseTag.setType(TagType.CLOSE);
final ComponentTag closeTag = new ComponentTag(headCloseTag);
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
headOpenTag.setName("head");
headOpenTag.setType(XmlTag.OPEN);
final ComponentTag openTag = new ComponentTag(headOpenTag);
headCloseTag.setName(headOpenTag.getName());
headCloseTag.setType(XmlTag.CLOSE);
final ComponentTag closeTag = new ComponentTag(headCloseTag);
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
headOpenTag.setName("head");
headOpenTag.setType(XmlTag.OPEN);
final ComponentTag openTag = new ComponentTag(headOpenTag);
headCloseTag.setName(headOpenTag.getName());
headCloseTag.setType(XmlTag.CLOSE);
final ComponentTag closeTag = new ComponentTag(headCloseTag);
内容来源于网络,如有侵权,请联系作者删除!