Class ZKBindingUtil


  • public class ZKBindingUtil
    extends Object
    Utily class for using zk bindings programatic easily
    • Method Detail

      • createBinder

        public static org.zkoss.bind.Binder createBinder()
      • initBinder

        public static void initBinder​(org.zkoss.bind.Binder binder,
                                      org.zkoss.zk.ui.Component rootComponent,
                                      Object viewModel)
      • initBinder

        public static void initBinder​(org.zkoss.bind.Binder binder,
                                      org.zkoss.zk.ui.Component rootComponent,
                                      Object viewModel,
                                      Map<String,​Object> initArgs)
      • bindBean

        public static void bindBean​(org.zkoss.zk.ui.Component rootComponent,
                                    String name,
                                    Object bean)
      • bindComponent

        public static void bindComponent​(org.zkoss.bind.Binder binder,
                                         org.zkoss.zk.ui.Component component,
                                         String expression,
                                         String converterExpression)
      • bindComponent

        public static void bindComponent​(org.zkoss.bind.Binder binder,
                                         org.zkoss.zk.ui.Component component,
                                         Map bindindingMap)
      • bindComponent

        public static void bindComponent​(org.zkoss.bind.Binder binder,
                                         org.zkoss.zk.ui.Component component,
                                         String bindingAttribute,
                                         String expression,
                                         String converterExpression)
      • bindComponent

        public static void bindComponent​(org.zkoss.bind.Binder binder,
                                         org.zkoss.zk.ui.Component component,
                                         String bindingAttribute,
                                         String expression,
                                         String converterExpression,
                                         String[] saveAfterCmds)
      • postNotifyChange

        public static void postNotifyChange​(Object viewmodel)
        Notify changes on all property of view model
        Parameters:
        viewmodel -
      • postNotifyChange

        public static void postNotifyChange​(Object viewmodel,
                                            String property)
        Notify changes on property of view model
        Parameters:
        viewmodel -
        property -
      • postNotifyChange

        public static void postNotifyChange​(Object viewmodel,
                                            String... properties)
        Notify changed on properties of view model
        Parameters:
        viewmodel -
        properties -
      • postNotifyChange

        public static void postNotifyChange​(String queue,
                                            String scope,
                                            Object viewmodel,
                                            String property)
        Notifiy changes on property of view model
        Parameters:
        queue -
        scope -
        viewmodel -
        property -
      • postGlobalCommand

        public static void postGlobalCommand​(String name)
        Post a global command without arguments
        Parameters:
        name -
      • postGlobalCommand

        public static void postGlobalCommand​(String name,
                                             Map<String,​Object> args)
        Post a global command with arguments
        Parameters:
        name -
        args -