|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JAXXContext
The JAXXContext contract defines a generic context.
setContextValue(Object) and getContextValue(Class) to reteave a
such entry.
setContextValue(Object,String) and getContextValue(Class,String)
to reteave a such entry.
| Method Summary | ||
|---|---|---|
|
getContextValue(java.lang.Class<T> clazz)
Seek for a unamed entry in the context This is an exemple to call a method in JAXX : <JButton onActionPerformed='{getContextValue(Action.class).method(args[])}'/> |
|
|
getContextValue(java.lang.Class<T> clazz,
java.lang.String name)
Seek for a named entry in the context |
|
|
removeContextValue(java.lang.Class<T> klazz)
Remove from context the value with the given klazz as an unamed entry |
|
|
removeContextValue(java.lang.Class<T> klazz,
java.lang.String name)
Remove from context the value with the given klazz as an unamed (if name is null) or named entry |
|
|
setContextValue(T o)
Push in the context a new unamed entry. |
|
|
setContextValue(T o,
java.lang.String name)
* Push in the context a new amed entry. |
|
| Method Detail |
|---|
<T> void setContextValue(T o)
T - type of data to set in contexto - the value to push in context
<T> void setContextValue(T o,
java.lang.String name)
T - type of data to set in contexto - the value to push in contextname - the name of the new entry<T> void removeContextValue(java.lang.Class<T> klazz)
T - type of data to remove from contextklazz - the klazz entry
<T> void removeContextValue(java.lang.Class<T> klazz,
java.lang.String name)
T - type of data to remove from contextklazz - the klazz entryname - extra name of the entry<T> T getContextValue(java.lang.Class<T> clazz)
<JButton onActionPerformed='{getContextValue(Action.class).method(args[])}'/>
T - type of data to obtain from contextclazz - the class of unamed entry to seek in context
null if no such entry.
<T> T getContextValue(java.lang.Class<T> clazz,
java.lang.String name)
T - type of data to obtain from contextclazz - the class of named entry to seek in contextname - the name of the entry to seek in context
null if no such entry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||