Package tools.dynamia.zk.util
Class ZKBindingUtil
- java.lang.Object
-
- tools.dynamia.zk.util.ZKBindingUtil
-
public class ZKBindingUtil extends Object
Utily class for using zk bindings programatic easily
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_EXP_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbindBean(org.zkoss.zk.ui.Component rootComponent, String name, Object bean)static voidbindComponent(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component component, String expression, String converterExpression)static voidbindComponent(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component component, String bindingAttribute, String expression, String converterExpression)static voidbindComponent(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component component, String bindingAttribute, String expression, String converterExpression, String[] saveAfterCmds)static voidbindComponent(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component component, Map bindindingMap)static org.zkoss.bind.BindercreateBinder()static voidinitBinder(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component rootComponent, Object viewModel)static voidinitBinder(org.zkoss.bind.Binder binder, org.zkoss.zk.ui.Component rootComponent, Object viewModel, Map<String,Object> initArgs)static voidpostGlobalCommand(String name)Post a global command without argumentsstatic voidpostGlobalCommand(String name, Map<String,Object> args)Post a global command with argumentsstatic voidpostNotifyChange(Object viewmodel)Notify changes on all property of view modelstatic voidpostNotifyChange(Object viewmodel, String property)Notify changes on property of view modelstatic voidpostNotifyChange(Object viewmodel, String... properties)Notify changed on properties of view modelstatic voidpostNotifyChange(String queue, String scope, Object viewmodel, String property)Notifiy changes on property of view model
-
-
-
Field Detail
-
KEY_EXP_PREFIX
public static final String KEY_EXP_PREFIX
- See Also:
- Constant Field Values
-
-
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-
-
-