|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.apache.struts2.components.Component
public class Component
Base class to extend for UI components.
This class is a good extension point when building reuseable UI components.
字段摘要 | |
---|---|
static String |
COMPONENT_STACK
|
构造方法摘要 | |
---|---|
Component(com.opensymphony.xwork2.util.ValueStack stack)
Constructor. |
方法摘要 | |
---|---|
void |
addAllParameters(Map params)
Adds all the given parameters to this component's own parameters. |
void |
addParameter(String key,
Object value)
Adds the given key and value to this component's own parameter. |
boolean |
altSyntax()
Is the altSyntax enabled? |
void |
copyParams(Map params)
Pushes this component's parameter Map as well as the component itself on to the stack and then copies the supplied parameters over. |
boolean |
end(Writer writer,
String body)
Callback for the end tag of this component. |
Stack<Component> |
getComponentStack()
Gets the component stack of this component. |
Map |
getParameters()
Gets the parameters. |
com.opensymphony.xwork2.util.ValueStack |
getStack()
Gets the OGNL value stack assoicated with this component. |
void |
setActionMapper(ActionMapper mapper)
|
void |
setThrowExceptionsOnELFailure(String throwException)
|
void |
setUrlHelper(UrlHelper urlHelper)
|
boolean |
start(Writer writer)
Callback for the start tag of this component. |
boolean |
usesBody()
Overwrite to set if body should be used. |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final String COMPONENT_STACK
构造方法详细信息 |
---|
public Component(com.opensymphony.xwork2.util.ValueStack stack)
stack
- OGNL value stack.方法详细信息 |
---|
public void setActionMapper(ActionMapper mapper)
public void setThrowExceptionsOnELFailure(String throwException)
public void setUrlHelper(UrlHelper urlHelper)
public com.opensymphony.xwork2.util.ValueStack getStack()
public Stack<Component> getComponentStack()
public boolean start(Writer writer)
writer
- the output writer.
public boolean end(Writer writer, String body)
writer
- the output writer.body
- the rendered body.
public boolean altSyntax()
struts.properties
where the altSyntax flag is defined.
public void copyParams(Map params)
params
- the parameters to copy.public Map getParameters()
public void addAllParameters(Map params)
params
- the parameters to add.public void addParameter(String key, Object value)
key
- the key of the new parameter to add.value
- the value assoicated with the key.public boolean usesBody()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |