Class BindUtils

java.lang.Object
org.zkoss.bind.BindUtils

public class BindUtils extends Object
A utility to help developer using zk bind
Author:
dennis
  • Constructor Details

    • BindUtils

      public BindUtils()
  • Method Details

    • postGlobalCommand

      public static void postGlobalCommand(String queueName, String queueScope, String cmdName, Map<String,Object> args)
      Post a global command to corresponding event queue
      Parameters:
      queueName - the queue name, null for default queue name
      queueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)
      cmdName - the global command name
      args - arguments, could get the data in command method by BindingParam
    • postNotifyChange

      public 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
      Parameters:
      bean - the bean instance
      property - the property name of bean
      Since:
      9.5.0
      See Also:
    • postNotifyChange

      public 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
      Parameters:
      queueName - the queue name, null for default queue name
      queueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)
      bean - the bean instance
      property - the property name of bean
    • postNotifyChange

      public 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
      Parameters:
      bean - the bean instance
      properties - the properties name of bean
      Since:
      9.5.0
      See Also:
    • postNotifyChange

      public 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
      Parameters:
      queueName - the queue name, null for default queue name
      queueScope - the queue scope, null for default queue scope (i.e. EventQueues.DESKTOP)
      bean - the bean instance
      properties - the properties name of bean
      Since:
      8.5.2
      See Also:
    • getViewModelClass

      public static Class<?> getViewModelClass(Object viewModel)