public interface JAXXContext
JAXXContext contract defines a generic context.
A context contains two king of entries :
setContextValue(Object) and getContextValue(Class) to reteave a
such entry.
setContextValue(Object, String) and getContextValue(Class, String)
to reteave a such entry.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getContextValue(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[])}'/> |
<T> T |
getContextValue(Class<T> clazz,
String name)
Seek for a named entry in the context
|
<T> void |
removeContextValue(Class<T> klazz)
Remove from context the value with the given klazz as an unamed entry
|
<T> void |
removeContextValue(Class<T> klazz,
String name)
Remove from context the value with the given klazz as an unamed (if name is null) or named entry
|
<T> void |
setContextValue(T o)
Push in the context a new unamed entry.
|
<T> void |
setContextValue(T o,
String name)
* Push in the context a new amed entry.
|
<T> void setContextValue(T o)
T - type of data to set in contexto - the value to push in context<T> void setContextValue(T o,
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(Class<T> klazz)
T - type of data to remove from contextklazz - the klazz entry<T> void removeContextValue(Class<T> klazz, String name)
T - type of data to remove from contextklazz - the klazz entryname - extra name of the entry<T> T getContextValue(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 contextnull if no such entry.<T> T getContextValue(Class<T> clazz, 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 contextnull if no such entry.Copyright © 2008–2019 Ultreia.io. All rights reserved.