當前位置: 首頁>>代碼示例>>Java>>正文


Java Anchor類代碼示例

本文整理匯總了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));
    }
}
 
開發者ID:txazo,項目名稱:struts2,代碼行數:30,代碼來源:AnchorTag.java

示例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());
	}
}
 
開發者ID:lawlite19,項目名稱:JavaEE-SSH-Template,代碼行數:30,代碼來源:AnchorTag.java

示例3: getBean

import org.apache.struts2.components.Anchor; //導入依賴的package包/類
public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    return new Anchor(stack, req, res);
}
 
開發者ID:txazo,項目名稱:struts2,代碼行數:4,代碼來源:AnchorTag.java

示例4: getBean

import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected Component getBean() {
    return new Anchor(stack, req, res);
}
 
開發者ID:txazo,項目名稱:struts2,代碼行數:4,代碼來源:AnchorModel.java

示例5: getBean

import org.apache.struts2.components.Anchor; //導入依賴的package包/類
protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    return new Anchor(stack, req, res);
}
 
開發者ID:txazo,項目名稱:struts2,代碼行數:4,代碼來源:AnchorDirective.java

示例6: getBean

import org.apache.struts2.components.Anchor; //導入依賴的package包/類
public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
	return new Anchor(stack, req, res);
}
 
開發者ID:lawlite19,項目名稱:JavaEE-SSH-Template,代碼行數:4,代碼來源:AnchorTag.java


注:本文中的org.apache.struts2.components.Anchor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。