|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.JAXXUtil
public class JAXXUtil
| Field Summary | |
|---|---|
static String |
PARENT
|
| Constructor Summary | |
|---|---|
JAXXUtil()
|
|
| Method Summary | ||
|---|---|---|
static void |
applyDataBinding(JAXXObject src,
Collection<String> bindings)
Convinient method to apply more than one binding on a JAXX ui. |
|
static void |
applyDataBinding(JAXXObject src,
String... bindings)
Convinient method to apply more than one binding on a JAXX ui. |
|
static boolean |
assignment(boolean value,
String name,
JAXXObject src)
|
|
static byte |
assignment(byte value,
String name,
JAXXObject src)
|
|
static char |
assignment(char value,
String name,
JAXXObject src)
|
|
static double |
assignment(double value,
String name,
JAXXObject src)
|
|
static float |
assignment(float value,
String name,
JAXXObject src)
|
|
static int |
assignment(int value,
String name,
JAXXObject src)
|
|
static long |
assignment(long value,
String name,
JAXXObject src)
|
|
static Object |
assignment(Object value,
String name,
JAXXObject src)
|
|
static short |
assignment(short value,
String name,
JAXXObject src)
|
|
protected static
|
castList()
|
|
protected static
|
castMap()
|
|
static void |
checkJAXXContextEntries(JAXXContext context,
JAXXContextEntryDef<?>... defs)
Test if some entries exists in a given context and throw an IllegalArgumentException if not. |
|
static
|
checkJAXXContextEntry(JAXXContext context,
JAXXContextEntryDef<T> def)
Test if a type of entry exists in a given context and throw an IllegalArgumentException if not found. |
|
static JAXXObjectDescriptor |
decodeCompressedJAXXObjectDescriptor(String descriptor)
|
|
static JAXXObjectDescriptor |
decodeJAXXObjectDescriptor(String descriptor)
Decodes the serialized representation of a JAXXObjectDescriptor. |
|
static void |
destroy(Component component)
Remove all listeners registred in given component. |
|
static void |
destroy(PropertyChangeSupport pcs)
Remove all listeners registred in given pcs. |
|
static PropertyChangeListener[] |
findJaxxPropertyChangeListener(String[] propertyNames,
PropertyChangeListener... listeners)
detects all PropertychangedListener added by Jaxx uis (should be a DataBindingListener |
|
static DataBindingUpdateListener |
getDataBindingUpdateListener(JAXXObject object,
String bindingName)
|
|
static
|
getEventListener(Class<E> listenerClass,
Object methodContainer,
String methodName)
|
|
static
|
getEventListener(Class<E> listenerClass,
String listenerMethodName,
Object methodContainer,
String methodName)
|
|
static String |
getStringValue(Object value)
Compute the string representation of an object. |
|
static void |
initContext(JAXXObject ui,
JAXXContext parentContext)
Method to initialize the context of a ui. |
|
static
|
invokeConstructor(Class<O> type,
Class<?>[] prototype,
Object... parms)
Overrides the commons method to have generict cast fiex. |
|
static
|
newContextEntryDef(Class<O> klass)
|
|
static
|
newContextEntryDef(String name,
Class<?> klass)
|
|
static
|
newListContextEntryDef()
|
|
static
|
newListContextEntryDef(String name)
|
|
static
|
newMapContextEntryDef(String name)
|
|
static void |
processDataBinding(JAXXObject src,
String... bindings)
Convinient method to process more than one binding on a JAXX ui. |
|
static void |
removeDataBinding(JAXXObject src,
String... bindings)
Convinient method to remove more than one binding on a JAXX ui. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARENT
| Constructor Detail |
|---|
public JAXXUtil()
| Method Detail |
|---|
public static JAXXObjectDescriptor decodeJAXXObjectDescriptor(String descriptor)
descriptor - descriptor to decode
public static JAXXObjectDescriptor decodeCompressedJAXXObjectDescriptor(String descriptor)
public static <O> JAXXContextEntryDef<O> newContextEntryDef(Class<O> klass)
public static <O> JAXXContextEntryDef<O> newContextEntryDef(String name,
Class<?> klass)
public static <O> JAXXContextEntryDef<List<O>> newListContextEntryDef()
public static <O> JAXXContextEntryDef<List<O>> newListContextEntryDef(String name)
public static <K,V> JAXXContextEntryDef<Map<K,V>> newMapContextEntryDef(String name)
protected static <K,V> Class<Map<K,V>> castMap()
protected static <O> Class<List<O>> castList()
public static void initContext(JAXXObject ui,
JAXXContext parentContext)
ui - the uiparentContext - the context to set in ui
public static <E extends EventListener> E getEventListener(Class<E> listenerClass,
String listenerMethodName,
Object methodContainer,
String methodName)
public static <E extends EventListener> E getEventListener(Class<E> listenerClass,
Object methodContainer,
String methodName)
public static DataBindingUpdateListener getDataBindingUpdateListener(JAXXObject object,
String bindingName)
public static void destroy(PropertyChangeSupport pcs)
pcs.
pcs - the pcs to cleanpublic static void destroy(Component component)
component.
component - the pcs to clean
public static boolean assignment(boolean value,
String name,
JAXXObject src)
public static byte assignment(byte value,
String name,
JAXXObject src)
public static short assignment(short value,
String name,
JAXXObject src)
public static int assignment(int value,
String name,
JAXXObject src)
public static long assignment(long value,
String name,
JAXXObject src)
public static float assignment(float value,
String name,
JAXXObject src)
public static double assignment(double value,
String name,
JAXXObject src)
public static char assignment(char value,
String name,
JAXXObject src)
public static Object assignment(Object value,
String name,
JAXXObject src)
public static String getStringValue(Object value)
value - the value to write
public static void checkJAXXContextEntries(JAXXContext context,
JAXXContextEntryDef<?>... defs)
throws IllegalArgumentException
context - the context to testdefs - the definitions of entries to seek in context
IllegalArgumentException - if the entry is not found in context.
public static <T> T checkJAXXContextEntry(JAXXContext context,
JAXXContextEntryDef<T> def)
throws IllegalArgumentException
T - the type of required datacontext - the context to testdef - the definition of the entry to seek in context
IllegalArgumentException - if the entry is not found in context.
public static void applyDataBinding(JAXXObject src,
String... bindings)
src - the ui to treatebindings - the list of binding to process.
public static void applyDataBinding(JAXXObject src,
Collection<String> bindings)
src - the ui to treatebindings - the list of binding to process.
public static void processDataBinding(JAXXObject src,
String... bindings)
src - the ui to treatebindings - the list of binding to process.
public static void removeDataBinding(JAXXObject src,
String... bindings)
src - the ui to treatebindings - the list of binding to process.
public static PropertyChangeListener[] findJaxxPropertyChangeListener(String[] propertyNames,
PropertyChangeListener... listeners)
DataBindingListener
propertyNames - the array of property names to findlisteners - the array of listeners to filter
public static <O> O invokeConstructor(Class<O> type,
Class<?>[] prototype,
Object... parms)
throws Exception
O - type of object to createtype - the type of objet to instanciateprototype - prototype of the constructorparms - params to pass to constructor
Exception - if something wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||