Examples of applyTemplate()


Examples of com.extjs.gxt.ui.client.core.XTemplate.applyTemplate()

    toolBar.add(new Button("Apply Template", new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        XTemplate tpl = XTemplate.create(getTemplate());
        xpanel.removeAll();
        xpanel.addText(tpl.applyTemplate(Util.getJsObject(person, 3)));
        xpanel.layout();
      }
    }));
    xpanel.setTopComponent(toolBar);
   
View Full Code Here

Examples of com.lightcrafts.ui.editor.Document.applyTemplate()

                export.resizeHeight.setValue(exportHeight);

                if (template != null) {
                    XmlNode root = template.getRoot();

                    doc.applyTemplate(root);

                    SaveOptions save = doc.getSaveOptions();
                    if (save == null) {
                        save = createTemplateSaveOptions(doc, export, ignoreResize);
                    }
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.applyTemplate()

        if (client.getDcContainer() != null && dco.getField(DcObject._SYS_CONTAINER) != null) {
            dco.setValue(DcObject._SYS_CONTAINER, client.getDcContainer());
        }
       
        dco.applyTemplate();
        dco.setIDs();
       
        try {
            sleep(200);
        } catch (Exception e) {}
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.applyTemplate()

   
            if (getClient().getDcContainer() != null && dco.getModule().isContainerManaged())
                DataManager.createReference(dco, DcObject._SYS_CONTAINER, getClient().getDcContainer());
           
            dco.setLastInLine(last);
            dco.applyTemplate();
            dco.setIDs();
            afterParse(dco);
        }
    }
   
View Full Code Here

Examples of org.jboss.deployers.spi.management.DeploymentTemplate.applyTemplate()

/*     */     }
/*     */
/* 598 */     VirtualFile root = this.activeProfile.getRootFile(phase);
/* 599 */     if (log.isTraceEnabled())
/* 600 */       log.trace("applyTemplate, profile=" + this.activeProfile + ", deploymentBaseName=" + deploymentBaseName + ", phase=" + phase + ", info=" + info);
/* 601 */     VirtualFile vf = template.applyTemplate(root, deploymentBaseName, info);
/* 602 */     VFSDeployment ctx = this.deploymentFactory.createVFSDeployment(vf);
/* 603 */     this.activeProfile.addDeployment(ctx, phase);
/* 604 */     this.mainDeployer.addDeployment(ctx);
/* 605 */     template.updateTemplateDeployment(ctx, info);
/* 606 */     this.mainDeployer.process();
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.applyTemplate()

      LOG.debug("Applying template [" + templateName //$NON-NLS-1$
          + "] to create ManagedComponent of type [" + componentType //$NON-NLS-1$
          + "]..."); //$NON-NLS-1$
      try {
        managementView.applyTemplate(resourceName, template);
        managementView.process();
        createResourceReport.setStatus(CreateResourceStatus.SUCCESS);
      } catch (Exception e) {
        LOG.error("Unable to apply template [" + templateName //$NON-NLS-1$
            + "] to create ManagedComponent of type " //$NON-NLS-1$
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.applyTemplate()

     
      // Assert map composite
      if(dsInfo.getProperties().get("config-property") != null)
         assertTrue(dsInfo.getProperties().get("config-property").getMetaType() instanceof MapCompositeMetaType);
     
      mgtView.applyTemplate(deploymentName, dsInfo);

      // reload the view
      activeView = null;
      mgtView = getManagementView();
      ManagedComponent dsMC = getManagedComponent(mgtView, componentType, componentName);
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.applyTemplate()

      SimpleValue nullBoolean = SimpleValueSupport.wrap(false);
      ((SimpleValueSupport)nullBoolean).setValue(null);
      useJavaCtx.setValue(nullBoolean);
      useJavaCtx.setRemoved(true);
     
      mgtView.applyTemplate("testRemovedProperties", dsInfo);

      // reload the view and new datasource component
      ComponentType componentType = new ComponentType("DataSource", "LocalTx");
      activeView = null;
      mgtView = getManagementView();
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.applyTemplate()

         assertNotNull("property " + propName + " found in template " + templateName, prop);
         log.debug("createComponentTest("+propName+") before: "+prop.getValue());
         prop.setValue(propValues.get(propName));
         log.debug("createComponentTest("+propName+") after: "+prop.getValue());
      }
      managementView.applyTemplate("testCreateQueue1", queue1Info);
      managementView.process();

      // testCreateQueue2
      jndiName = "testCreateQueue2";
      MetaValue jndiName2MV = SimpleValueSupport.wrap(jndiName);
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.applyTemplate()

         assertNotNull("property " + propName + " found in template " + templateName, prop);
         log.debug(propName+" before: "+prop.getValue());
         prop.setValue(propValues.get(propName));
         log.debug(propName+" after: "+prop.getValue());
      }
      managementView.applyTemplate("testCreateQueue2", queue2Info);
      managementView.process();

      // Validate the components
//      managementView.reload();
      ManagedComponent queue1 = managementView.getComponent("testCreateQueue1", QueueType);
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.