Package org.zkoss.zk.ui.metainfo

Examples of org.zkoss.zk.ui.metainfo.ComponentInfo$DupComponentInfo


    final Execution exec = Executions.getCurrent();
    final Object curInfo = ComponentsCtrl.getCurrentInfo();
    if (curInfo != null) {
      ComponentsCtrl.setCurrentInfo((ComponentInfo)null); //to avoid mis-use
      if (curInfo instanceof ComponentInfo) {
        final ComponentInfo compInfo = (ComponentInfo)curInfo;
        _def = compInfo.getComponentDefinition();
        addSharedAnnotationMap(_def.getAnnotationMap());
        addSharedAnnotationMap(compInfo.getAnnotationMap());
      } else {
        _def = (ComponentDefinition)curInfo;
        addSharedAnnotationMap(_def.getAnnotationMap());
      }
    } else {
View Full Code Here


  //since 1.2
  private void applyZkSpringBeanBindingComposer(List nodes) {
    for (final Iterator it = nodes.iterator(); it.hasNext();) {
      final Object node = it.next();
      if (node instanceof ComponentInfo) {
        final ComponentInfo ci = (ComponentInfo) node;
        applyZkSpringBeanBindingComposer(ci.getChildren()); //recursive
        final String apply = ci.getApply();
        if (apply == null) { //apply is null
          ci.setApply(BINDING_COMPOSER);
        } else if (apply.indexOf(BINDING_COMPOSER) < 0) { //apply not null but not binding composer yet
          ci.setApply(BINDING_COMPOSER + ","+ apply);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.metainfo.ComponentInfo$DupComponentInfo

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.