public class BindUtils extends Object
| Constructor and Description |
|---|
BindUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getViewModelClass(Object viewModel) |
static void |
postGlobalCommand(String queueName,
String queueScope,
String cmdName,
Map<String,Object> args)
Post a global command to corresponding event queue
|
static void |
postNotifyChange(Object bean,
String... properties)
Post a notify change to default event queue to notify a bean's properties changing
Omitting the queue name and scope for convenience
|
static void |
postNotifyChange(Object bean,
String property)
Post a notify change to default event queue to notify a bean's property changing
Omitting the queue name and scope for convenience
|
static void |
postNotifyChange(String queueName,
String queueScope,
Object bean,
String... properties)
Post a notify change to corresponding event queue to notify a bean's properties changing
Accept multiple properties for convenience
|
static void |
postNotifyChange(String queueName,
String queueScope,
Object bean,
String property)
Post a notify change to corresponding event queue to notify a bean's property changing
|
public static void postGlobalCommand(String queueName, String queueScope, String cmdName, Map<String,Object> args)
queueName - the queue name, null for default queue namequeueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)cmdName - the global command nameargs - arguments, could get the data in command method by BindingParampublic static void postNotifyChange(Object bean, String property)
bean - the bean instanceproperty - the property name of beanpostNotifyChange(String, String, Object, String)public static void postNotifyChange(String queueName, String queueScope, Object bean, String property)
queueName - the queue name, null for default queue namequeueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)bean - the bean instanceproperty - the property name of beanpublic static void postNotifyChange(Object bean, String... properties)
bean - the bean instanceproperties - the properties name of beanpostNotifyChange(String, String, Object, String...)public static void postNotifyChange(String queueName, String queueScope, Object bean, String... properties)
queueName - the queue name, null for default queue namequeueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)bean - the bean instanceproperties - the properties name of beanpostNotifyChange(String, String, Object, String)Copyright © 2020. All rights reserved.