本文整理匯總了Java中org.apache.struts2.components.Anchor類的典型用法代碼示例。如果您正苦於以下問題:Java Anchor類的具體用法?Java Anchor怎麽用?Java Anchor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Anchor類屬於org.apache.struts2.components包,在下文中一共展示了Anchor類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: populateParams
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected void populateParams() {
super.populateParams();
Anchor tag = (Anchor) component;
tag.setHref(href);
tag.setIncludeParams(includeParams);
tag.setScheme(scheme);
tag.setValue(value);
tag.setMethod(method);
tag.setNamespace(namespace);
tag.setAction(action);
tag.setPortletMode(portletMode);
tag.setPortletUrlType(portletUrlType);
tag.setWindowState(windowState);
tag.setAnchor(anchor);
if (encode != null) {
tag.setEncode(BooleanUtils.toBoolean(encode));
}
if (includeContext != null) {
tag.setIncludeContext(BooleanUtils.toBoolean(includeContext));
}
if (escapeAmp != null) {
tag.setEscapeAmp(BooleanUtils.toBoolean(escapeAmp));
}
if (forceAddSchemeHostAndPort != null) {
tag.setForceAddSchemeHostAndPort(BooleanUtils.toBoolean(forceAddSchemeHostAndPort));
}
}
示例2: populateParams
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected void populateParams() {
super.populateParams();
Anchor tag = (Anchor) component;
tag.setHref(href);
tag.setIncludeParams(includeParams);
tag.setScheme(scheme);
tag.setValue(value);
tag.setMethod(method);
tag.setNamespace(namespace);
tag.setAction(action);
tag.setPortletMode(portletMode);
tag.setPortletUrlType(portletUrlType);
tag.setWindowState(windowState);
tag.setAnchor(anchor);
if (encode != null) {
tag.setEncode(Boolean.valueOf(encode).booleanValue());
}
if (includeContext != null) {
tag.setIncludeContext(Boolean.valueOf(includeContext).booleanValue());
}
if (escapeAmp != null) {
tag.setEscapeAmp(Boolean.valueOf(escapeAmp).booleanValue());
}
if (forceAddSchemeHostAndPort != null) {
tag.setForceAddSchemeHostAndPort(Boolean.valueOf(forceAddSchemeHostAndPort).booleanValue());
}
}
示例3: getBean
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
return new Anchor(stack, req, res);
}
示例4: getBean
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected Component getBean() {
return new Anchor(stack, req, res);
}
示例5: getBean
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
return new Anchor(stack, req, res);
}
示例6: getBean
import org.apache.struts2.components.Anchor; //導入依賴的package包/類
public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
return new Anchor(stack, req, res);
}