Examples of XDataBinding


Examples of net.xoetrope.xui.data.XDataBinding

        if ( BuildProperties.DEBUG )
          DebugLogger.logWarning( "BUILDER", "Deprecated binding configuration, please use the bindings registry (bindings.xml) instead of \'custom\' attributes" );
       
        String customClass = (String)instanceConfig.get( "class" );
        try {
          XDataBinding customBinding = (XDataBinding)Class.forName( customClass.trim() ).newInstance();
          customBinding.setup( currentProject, targetComp, null, instanceConfig );
          page.addBinding( customBinding );
          return;
        }
        catch ( Exception ex ) {
          System.out.println( "could not load binding class - " + customClass );
        }
      }
     
      XDataBinding factoryBinding = getFactoryBinding( page, targetComp, instanceConfig );
      if ( factoryBinding != null )
        page.addBinding( factoryBinding );
      else if ( BuildProperties.DEBUG ) {
        DebugLogger.logError( "BUILDER", "Failed to create the binding for the target: " + nameStr + " and the data source:" + (String)instanceConfig.get( "source" ));
      }
View Full Code Here

Examples of net.xoetrope.xui.data.XDataBinding

   * @param bindingNode the XML element defining the binding
   * @return the new binding if one could be constructed
   */
  public XDataBinding getFactoryBinding( PageSupport page, Object compType, Hashtable instanceConfig )
  {
    XDataBinding binding = null;   
    Vector bindingFactories = page.getProject().getBindingsFactories();
    for ( int i = 0; i < bindingFactories.size(); i++ ) {
      /**
       * @todo These factories need to be extended to determine the binding type
       * from both the component type and model node type. This probably
View Full Code Here

Examples of net.xoetrope.xui.data.XDataBinding

   * @param instanceConfig the attributes of the binding instance
   * @return the new binding if one could be constructed
   */
  public XDataBinding getBinding( PageSupport page, Object comp, Hashtable instanceConfig )
  {
    XDataBinding binding = null;
    if ( comp instanceof XTree )
      binding = new XTreeBinding();

    if ( binding != null )
      binding.setup( currentProject, comp, null, instanceConfig );
    return binding;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.