Package org.zkoss.zkplus.databind

Examples of org.zkoss.zkplus.databind.DataBinder


  private MappingResults bind() {
    final Execution exec = Executions.getCurrent();
    final Component self = ZkFlowContextManager.getSelf(exec);
    if (self != null) {
      final DataBinder binder = (DataBinder) self.getAttributeOrFellow("binder", true);
      if (binder != null) {
        final Collection bindings = binder.getAllBindings();
        if (!bindings.isEmpty()) {
          final RequestContext srcRequestContext =
            ZkFlowContextManager.getFlowRequestContext(exec);
          if (srcRequestContext != null) {
            if (logger.isDebugEnabled()) {
View Full Code Here


    }

    private static void reloadBindings(boolean forceReload,
            Component... toReload) {
        for (Component reload : toReload) {
            DataBinder binder = Util.getBinder(reload);
            if (binder != null
                    && (forceReload || notReloadedInThisRequest(reload))) {
                binder.loadComponent(reload);
                markAsReloadedForThisRequest(reload);
            }
        }
    }
View Full Code Here

        return result;
    }

    public static void saveBindings(Component... toReload) {
        for (Component reload : toReload) {
            DataBinder binder = Util.getBinder(reload);
            if (binder != null) {
                binder.saveComponent(reload);
            }
        }
    }
View Full Code Here

            bandbox.setValue(finder.objectToString(obj));
        } else {
            bandbox.setValue("");
        }

        DataBinder binder = Util.getBinder(this);
        if (binder != null) {
            binder.saveAttribute(this, "selectedElement");
        }
    }
View Full Code Here

*/
public class Util {

    public static void reloadBindings(Component... toReload) {
        for (Component reload : toReload) {
            DataBinder binder = Util.getBinder(reload);
            if (binder != null) {
                binder.loadComponent(reload);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zkplus.databind.DataBinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.