| Constructor and Description |
|---|
JAXXUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static <O> Class<List<O>> |
castList() |
protected static <K,V> Class<Map<K,V>> |
castMap() |
static void |
checkJAXXContextEntries(JAXXContext context,
JAXXContextEntryDef<?>... defs)
Test if some entries exists in a given context and throw an
IllegalArgumentException if not.
|
static <T> T |
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 void |
copyToClipBoard(String text)
Copy to clipBoard the content of the given text.
|
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 <E extends EventListener> |
getEventListener(Class<E> listenerClass,
Object methodContainer,
String methodName) |
static <E extends EventListener> |
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 <O> O |
invokeConstructor(Class<O> type,
Class<?>[] prototype,
Object... parms)
Overrides the commons method to have generict cast fiex.
|
static <O> JAXXContextEntryDef<O> |
newContextEntryDef(Class<O> klass) |
static <O> JAXXContextEntryDef<O> |
newContextEntryDef(String name,
Class<?> klass) |
static <O> JAXXContextEntryDef<List<O>> |
newListContextEntryDef() |
static <O> JAXXContextEntryDef<List<O>> |
newListContextEntryDef(String name) |
static <K,V> JAXXContextEntryDef<Map<K,V>> |
newMapContextEntryDef(String name) |
static void |
processDataBinding(JAXXObject src,
String... bindings)
Convinient method to process more than one binding on a JAXX ui.
|
static void |
reloadBinding(JAXXBinding binding)
To reload a binding, the method will invoke
JAXXBinding.removeDataBinding()
JAXXBinding.applyDataBinding()
|
static void |
reloadBinding(JAXXObject src,
String bindingId)
Convinient method to reload a given binding by his id on a JAXX ui.
|
static void |
removeAllDataBindings(JAXXObject src)
Convinient method to remove all 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.
|
public static final String PARENT
public static JAXXObjectDescriptor decodeJAXXObjectDescriptor(String descriptor)
descriptor - descriptor to decodepublic 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)
public static void initContext(JAXXObject ui, JAXXContext parentContext)
ui - the uiparentContext - the context to set in uipublic 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 cleanpublic static String getStringValue(Object value)
value - the value to writepublic static void checkJAXXContextEntries(JAXXContext context, JAXXContextEntryDef<?>... defs) throws IllegalArgumentException
context - the context to testdefs - the definitions of entries to seek in contextIllegalArgumentException - 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 contextIllegalArgumentException - if the entry is not found in context.public static void reloadBinding(JAXXBinding binding)
binding - the binding to reload.public static void reloadBinding(JAXXObject src, String bindingId)
src - the ui to treatebindingId - the id of binding to reload.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 void removeAllDataBindings(JAXXObject src)
src - the ui to treatepublic static PropertyChangeListener[] findJaxxPropertyChangeListener(String[] propertyNames, PropertyChangeListener... listeners)
DataBindingListenerpropertyNames - the array of property names to findlisteners - the array of listeners to filterpublic 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 constructorException - if something wrongpublic static void copyToClipBoard(String text)
text - text to copy to clipboardCopyright © 2008–2018 Ultreia.io. All rights reserved.