|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.views.gxp.AbstractGxp<T>
public abstract class AbstractGxp<T extends com.google.gxp.base.MarkupClosure>
Struts2 to GXP adapter. Can be used to write a GXP or create a
MarkupClosure
. Pulls GXP parameters from Struts2 value stack.
Constructor Summary | |
---|---|
protected |
AbstractGxp(Class gxpClass)
|
protected |
AbstractGxp(Class gxpClass,
Method writeMethod,
Method getGxpClosureMethod)
|
Method Summary | |
---|---|
protected Object[] |
getArgs(Appendable out,
com.google.gxp.base.GxpContext gxpContext,
Map overrides)
|
Class |
getGxpClass()
|
static Class |
getGxpClassForPath(String gxpPath)
Returns generated GXP class given an absolute path to a GXP file. |
T |
getGxpClosure()
Creates GXP closure. |
protected T |
getGxpClosure(T body,
Map params)
Creates GXP closure. |
protected Object |
getGxpInstance()
|
protected Map |
getOverrides(T body,
Map params)
|
List<Param> |
getParams()
Returns list of parameters requested by GXP. |
protected static Method |
lookupMethodByName(Class clazz,
String name)
Returns first method with the given name. |
void |
setValueStackFactory(com.opensymphony.xwork2.util.ValueStackFactory valueStackFactory)
|
void |
write(Appendable out,
com.google.gxp.base.GxpContext gxpContext)
Writes GXP. |
protected void |
write(Appendable out,
com.google.gxp.base.GxpContext gxpContext,
Map overrides)
Writes GXP. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractGxp(Class gxpClass)
protected AbstractGxp(Class gxpClass, Method writeMethod, Method getGxpClosureMethod)
Method Detail |
---|
public void write(Appendable out, com.google.gxp.base.GxpContext gxpContext)
protected void write(Appendable out, com.google.gxp.base.GxpContext gxpContext, Map overrides)
overrides
- parameter map pushed onto the value stackprotected Object[] getArgs(Appendable out, com.google.gxp.base.GxpContext gxpContext, Map overrides)
protected Object getGxpInstance()
null
public T getGxpClosure()
protected T getGxpClosure(T body, Map params)
body
- is pushed onto the stack if this GXP has a
MarkupClosure
(or subclass) parameter named "body".params
- comes first on the value stack.protected Map getOverrides(T body, Map params)
protected static Method lookupMethodByName(Class clazz, String name)
public Class getGxpClass()
public List<Param> getParams()
public static Class getGxpClassForPath(String gxpPath)
public void setValueStackFactory(com.opensymphony.xwork2.util.ValueStackFactory valueStackFactory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |