|
|||||||||
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(java.lang.Class gxpClass)
|
protected |
AbstractGxp(java.lang.Class gxpClass,
java.lang.reflect.Method writeMethod,
java.lang.reflect.Method getGxpClosureMethod)
|
Method Summary | |
---|---|
protected java.lang.Object[] |
getArgs(java.lang.Appendable out,
com.google.gxp.base.GxpContext gxpContext,
java.util.Map overrides)
|
java.lang.Class |
getGxpClass()
|
static java.lang.Class |
getGxpClassForPath(java.lang.String gxpPath)
Returns generated GXP class given an absolute path to a GXP file. |
T |
getGxpClosure()
Creates GXP closure. |
protected T |
getGxpClosure(T body,
java.util.Map params)
Creates GXP closure. |
protected java.lang.Object |
getGxpInstance()
|
protected java.util.Map |
getOverrides(T body,
java.util.Map params)
|
java.util.List<Param> |
getParams()
Returns list of parameters requested by GXP. |
protected static java.lang.reflect.Method |
lookupMethodByName(java.lang.Class clazz,
java.lang.String name)
Returns first method with the given name. |
void |
setValueStackFactory(ValueStackFactory valueStackFactory)
|
void |
write(java.lang.Appendable out,
com.google.gxp.base.GxpContext gxpContext)
Writes GXP. |
protected void |
write(java.lang.Appendable out,
com.google.gxp.base.GxpContext gxpContext,
java.util.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(java.lang.Class gxpClass)
protected AbstractGxp(java.lang.Class gxpClass, java.lang.reflect.Method writeMethod, java.lang.reflect.Method getGxpClosureMethod)
Method Detail |
---|
public void write(java.lang.Appendable out, com.google.gxp.base.GxpContext gxpContext)
protected void write(java.lang.Appendable out, com.google.gxp.base.GxpContext gxpContext, java.util.Map overrides)
overrides
- parameter map pushed onto the value stackprotected java.lang.Object[] getArgs(java.lang.Appendable out, com.google.gxp.base.GxpContext gxpContext, java.util.Map overrides)
protected java.lang.Object getGxpInstance()
null
public T getGxpClosure()
protected T getGxpClosure(T body, java.util.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 java.util.Map getOverrides(T body, java.util.Map params)
protected static java.lang.reflect.Method lookupMethodByName(java.lang.Class clazz, java.lang.String name)
public java.lang.Class getGxpClass()
public java.util.List<Param> getParams()
public static java.lang.Class getGxpClassForPath(java.lang.String gxpPath)
public void setValueStackFactory(ValueStackFactory valueStackFactory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |