com.vinay.ui.vinui.fw.core
Class Context
java.lang.Object
com.vinay.ui.vinui.fw.core.Context
- public class Context
- extends java.lang.Object
The context data structure to which UI element attributes can be bound.
A context attribute can in turn be mapped to an attribute of another context.
for e.g. page context attribute is mapped to an application context attribute.
When such a mapping is established, the attibute values are derived from
the mapped context attribute and the value set to this context is ignored.
- Author:
- Vinay Nath
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addAttribute
public void addAttribute(java.lang.String attr,
java.lang.String value)
removeAttribute
public void removeAttribute(java.lang.String attr)
setAttribute
public void setAttribute(java.lang.String attr,
java.lang.String value)
getAttribute
public java.lang.String getAttribute(java.lang.String attr)
mapTo
public void mapTo(Context ctx)
addMapping
public void addMapping(java.lang.String attr,
java.lang.String mappedAttr)
removeMapping
public java.lang.String removeMapping(java.lang.String attr)
getAttrMap
public java.util.Map getAttrMap()