Package org.zkoss.bind
Class BindUtils
- java.lang.Object
-
- org.zkoss.bind.BindUtils
-
public class BindUtils extends java.lang.Object
A utility to help developer using zk bind- Author:
- dennis
-
-
Constructor Summary
Constructors Constructor Description BindUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<?>
getViewModelClass(java.lang.Object viewModel)
static void
postGlobalCommand(java.lang.String queueName, java.lang.String queueScope, java.lang.String cmdName, java.util.Map<java.lang.String,java.lang.Object> args)
Post a global command to corresponding event queuestatic void
postNotifyChange(java.lang.Object bean, java.lang.String property)
Post a notify change to default event queue to notify a bean's property changing Omitting the queue name and scope for conveniencestatic void
postNotifyChange(java.lang.Object bean, java.lang.String... properties)
Post a notify change to default event queue to notify a bean's properties changing Omitting the queue name and scope for conveniencestatic void
postNotifyChange(java.lang.String queueName, java.lang.String queueScope, java.lang.Object bean, java.lang.String property)
Post a notify change to corresponding event queue to notify a bean's property changingstatic void
postNotifyChange(java.lang.String queueName, java.lang.String queueScope, java.lang.Object bean, java.lang.String... properties)
Post a notify change to corresponding event queue to notify a bean's properties changing Accept multiple properties for convenience
-
-
-
Method Detail
-
postGlobalCommand
public static void postGlobalCommand(java.lang.String queueName, java.lang.String queueScope, java.lang.String cmdName, java.util.Map<java.lang.String,java.lang.Object> args)
Post a global command to corresponding event queue- Parameters:
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 byBindingParam
-
postNotifyChange
public static void postNotifyChange(java.lang.Object bean, java.lang.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- Parameters:
bean
- the bean instanceproperty
- the property name of bean- Since:
- 9.5.0
- See Also:
postNotifyChange(String, String, Object, String)
-
postNotifyChange
public static void postNotifyChange(java.lang.String queueName, java.lang.String queueScope, java.lang.Object bean, java.lang.String property)
Post a notify change to corresponding event queue to notify a bean's property changing- Parameters:
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 bean
-
postNotifyChange
public static void postNotifyChange(java.lang.Object bean, java.lang.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- Parameters:
bean
- the bean instanceproperties
- the properties name of bean- Since:
- 9.5.0
- See Also:
postNotifyChange(String, String, Object, String...)
-
postNotifyChange
public static void postNotifyChange(java.lang.String queueName, java.lang.String queueScope, java.lang.Object bean, java.lang.String... properties)
Post a notify change to corresponding event queue to notify a bean's properties changing Accept multiple properties for convenience- Parameters:
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 bean- Since:
- 8.5.2
- See Also:
postNotifyChange(String, String, Object, String)
-
getViewModelClass
public static java.lang.Class<?> getViewModelClass(java.lang.Object viewModel)
-
-