本文整理了Java中org.apache.wicket.markup.html.WebMarkupContainer.onComponentTag()
方法的一些代码示例,展示了WebMarkupContainer.onComponentTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMarkupContainer.onComponentTag()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebMarkupContainer
类名称:WebMarkupContainer
方法名:onComponentTag
暂无
代码示例来源:origin: apache/wicket
/**
* builds the component tag and checks the tag to be a picture
*/
@Override
protected void onComponentTag(ComponentTag tag)
{
this.checkComponentTag(tag, "picture");
super.onComponentTag(tag);
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
// force this into an open-close tag rather than a self-closing tag
tag.setType(TagType.OPEN);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("class", "tab-row");
}
}
代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core
@Override
protected void onComponentTag(ComponentTag tag) {
Attribute.setClass(tag, "breadcrumbs");
super.onComponentTag(tag);
}
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag )
*/
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("onclick", "return false");
}
};
代码示例来源:origin: apache/wicket
@Override
protected void onComponentTag(final ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("class", getTabContainerCssClass());
}
};
代码示例来源:origin: apache/wicket
@Override
protected void onComponentTag(final ComponentTag tag)
{
if (tag.isOpenClose())
{
tag.setType(XmlTag.TagType.OPEN);
}
super.onComponentTag(tag);
}
代码示例来源:origin: de.alpharogroup/jaulp.wicket.components
/**
* {@inheritDoc}
*/
@Override
protected void onComponentTag(final ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("class", getTabContainerCssClass());
}
};
代码示例来源:origin: org.wicketstuff/wicketstuff-html5
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("class", this.getMarkupId());
}
代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core
@Override
protected void onComponentTag(ComponentTag tag) {
Attribute.addAttribute(tag, "data-dropdown-content");
Attribute.addClass(tag, "f-dropdown");
super.onComponentTag(tag);
}
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
@Override
protected void onComponentTag(final ComponentTag tag)
{
if (tag.isOpenClose())
{
tag.setType(XmlTag.OPEN);
}
super.onComponentTag(tag);
}
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
protected void onComponentTag(final ComponentTag tag)
{
// Convert open-close to open-body-close
if (tag.isOpenClose())
{
tag.setType(TagType.OPEN);
tag.setModified(true);
}
super.onComponentTag(tag);
}
代码示例来源:origin: apache/wicket
@Override
protected void onComponentTag(final ComponentTag tag)
{
// Convert open-close to open-body-close
if (tag.isOpenClose())
{
tag.setType(TagType.OPEN);
tag.setModified(true);
}
super.onComponentTag(tag);
}
代码示例来源:origin: org.wicketstuff/yui
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
if (!Strings.isEmpty(elementId))
{
tag.put("id", elementId);
}
tag.put("class", "yuimenu");
}
};
代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core
@Override
protected void onComponentTag(ComponentTag tag) {
TopBarMenuLayout layout = menuLayoutModel.getObject();
Attribute.addClass(tag, "toggle-topbar");
if (layout.equals(TopBarMenuLayout.ICON) || layout.equals(TopBarMenuLayout.TITLE_AND_ICON)) {
Attribute.addClass(tag, "menu-icon");
}
super.onComponentTag(tag);
}
代码示例来源:origin: com.premiumminds/pm-wicket-utils
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
if(new FeedbackCollector(getPage()).collect(filter).size() > 0) tag.append("class", "has-error", " ");
}
代码示例来源:origin: org.wicketstuff/wicketstuff-html5
@Override
protected void onComponentTag(final ComponentTag tag)
{
super.onComponentTag(tag);
checkComponentTag(tag, "progress");
if(isDeterminate())
{
tag.put("value", String.valueOf(getValue()));
tag.put("max", String.valueOf(getMax()));
}
}
代码示例来源:origin: org.onehippo.jcr.console/hippo-jcr-console-api
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("style", "background-image: url('" + RequestCycle.get().urlFor(getMenuIcon(node)) + "')");
}
};
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
@Override
protected void onComponentTag(final ComponentTag tag) {
final Response response = RequestCycle.get().getResponse();
final String svgMarkup = getSvgMarkup(size, getExtraCssClasses());
response.write(svgMarkup);
super.onComponentTag(tag);
}
};
代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core
@Override
protected void onComponentTag(ComponentTag tag) {
Attribute.addAttribute(tag, "data-dropdown-content");
Attribute.addClass(tag, "f-dropdown");
Attribute.addClass(tag, "content");
Attribute.addAttribute(tag, "aria-hidden", true);
Attribute.addAttribute(tag, "tabindex", -1);
super.onComponentTag(tag);
}
内容来源于网络,如有侵权,请联系作者删除!