Examples of TreeComponent


Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

        validateMappings();
    }

    public void restore() {
        targetTreeComponent.clearSourcePaths();
        TreeComponent stc=treeMapper.m_sourceTreeComponent;
        treeMapper.m_transform.setDeSet(stc.m_deHashtable.keySet(), stc.m_flat);
        for (NodeMapping nm : mappings) {
            if (treeMapper.m_transform.getRpnTokenVector(nm.getExpression()) != null) {
                String tmp = nm.getExpression();
                String newExpr = treeMapper.m_transform.rmInstanceTag(tmp);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

      return path.substring(0,k+1);
    }

    private void moveInstances(Node fromNode, String path, String instanceTag, Node toNode, int n1) throws Exception {
      if(fromNode==null||toNode==null)return;
      TreeComponent tc=fromNode.getTreeComponent();

      JbNode jbParent;
      if(tc.m_flat){
        jbParent=tc.m_jbRoot;
      }
      else {
          String parentPath=getParentPath(path);
        jbParent= tc.findJbNode(parentPath, instanceTag);
      }
      if(jbParent!=null){
        JbNode fromJbNode=jbParent.getChild(fromNode.getName());
        if(fromJbNode==null){
          throw new Exception("cannot find target data node, probably due to incomplete loading of the data tree.\nnode \""+
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

        super(page);
    }

    @Override
    protected Node getSourceNode(TreeMapper mapper) {
        TreeComponent sourceTree = mapper.m_sourceTreeComponent;
        return getRootTable(sourceTree);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

        return null;
    }

    @Override
    protected Node getTargetNode(TreeMapper mapper) {
        TreeComponent targetTree = mapper.m_targetTreeComponent;
        Node root = getRootTable(targetTree);
        if (isTargetComplexText(mapper)) {
            root = getComplexTextRoot(root);
        } else if (isDbToXml(mapper)) {
            root = getXmlNodeToAutoMapFromDb(root);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

            des.scanMapping(treeMapper.getTransformation(), targetPath, originalExpression);
        }
    }

    public final void setSimpleXmlElementDisplay(boolean value) {
        TreeComponent tree = getSourceTree();
        tree.setSimpleXmlElementDisplay(value);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

  public String checkSource(String sExpression){
    String err="";
    sourceDeList = Lists.newArrayList();
    m_noSourceDataUsedInMapping=true;
    TreeComponent stc=m_TreeMapper.m_sourceTreeComponent;
    m_TreeMapper.m_transform.setDeSet(stc.m_deHashtable.keySet(), stc.m_flat);
    List<Transform.Token> tokenList=m_TreeMapper.m_transform.getRpnTokenVector(sExpression);
    if (tokenList != null) {
            List<String> deList = Transform.getDEVector(tokenList);
            m_noSourceDataUsedInMapping=deList.isEmpty();
            int j, m = deList.size();
            try {
              sourceDeList = deList;
              StringBuilder collectedErrors = new StringBuilder();
                for (j = 0; j < m; j++) {
                    String sourceDE = deList.get(j);
                    if (m_TreeMapper.findSourceNode(sourceDE) == null) {
                      TreeComponent sourceTC=m_TreeMapper.m_sourceTreeComponent;
                        Node node = sourceTC.expandTreeAndLookForNode(sourceDE);
                      if(sourceDE.endsWith("xsi:nil")){ 
                        String path=sourceDE.substring(0,sourceDE.length()-7);
                        Node sourceEVNode=sourceTC.findNode(path);
                        node=sourceEVNode.createNilNodeToMap();
                      }
                      sourceTC.setDirty();
                        if (node == null) {
                            collectedErrors.append("undefined source DE: ").append(sourceDE).append("\n");
                        }
                    }
                }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

            public void componentResized(ComponentEvent e) {
                RESIZE();
            }
        });

    TreeComponent newSourceTree = new MigrationTree(this, m_new.getInputStructure());
    newSourceTree.setSearchTitle("Search New Source Tree");
        m_newSourceScrollPane = new TreeScrollPane(this, newSourceTree, m_newSourceJtr, "new SOURCE");
    m_newSourceTree=m_newSourceScrollPane.m_tree;

    TreeComponent oldSourceTree = new MigrationTree(this, m_old.getInputStructure());
        oldSourceTree.setSearchTitle("Search Old Source Tree");
    m_oldSourceScrollPane=new TreeScrollPane(this, oldSourceTree,m_oldSourceJtr,"old SOURCE");
    m_oldSourceTree=m_oldSourceScrollPane.m_tree;

    TreeComponent oldTargetTree = new MigrationTree(this, m_old.getOutputStructure());
        oldTargetTree.setSearchTitle("Search Old Target Tree");
    m_oldTargetScrollPane=new TreeScrollPane(this, oldTargetTree, m_oldTargetJtr, "old TARGET");
    m_oldTargetTree=m_oldTargetScrollPane.m_tree;

        TreeComponent newTargetTree = new MigrationTree(this, m_new.getOutputStructure());
        newTargetTree.setSearchTitle("Search New Target Tree");
    m_newTargetScrollPane=new TreeScrollPane(this,newTargetTree,m_newTargetJtr,"new TARGET");
    m_newTargetTree=m_newTargetScrollPane.m_tree;

    m_sourceMapArea=new MapArea_Migration(m_newSourceScrollPane, m_oldSourceScrollPane, false);
    m_targetMapArea=new MapArea_Migration(m_oldTargetScrollPane, m_newTargetScrollPane, true);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.TreeComponent

    boolean bIsInvert=dlg.invert;

    try {
      MapArea_Migration map=bIsSource?m_sourceMapArea:m_targetMapArea;
      TreeComponent old_tree=bIsSource?m_oldSourceTree:m_oldTargetTree;
      TreeComponent new_tree=bIsSource?m_newSourceTree:m_newTargetTree;
      map.removeMappings();
      String[] lines=KongaIoUtils.readLines(dlg.file);
      for(String line:lines){
        int k=line.indexOf('\t');
        if(k<0)continue;
        String s1=line.substring(0,k);
        String s2=line.substring(k+1);
        Node old_node=old_tree.findNode(bIsInvert?s2:s1);
        Node new_node=new_tree.findNode(bIsInvert?s1:s2);
        if(old_node!=null&&new_node!=null){
          map.m_table_old2new.put(old_node, new_node);
          map.m_table_new2old.put(new_node,old_node);
        } else {
          if(old_node==null&&new_node==null){
View Full Code Here

Examples of org.libreplan.web.tree.TreeComponent

            }

            // Prepare tree, attach edit window to tree
            orderElementTreeController = new OrderElementTreeController(
                    orderModel, orderElementController, messagesForUser);
            TreeComponent orderElementsTree = (TreeComponent) editWindow
                    .getFellow("orderElementTree");
            orderElementTreeController.setTreeComponent(orderElementsTree);
            orderElementsTree.useController(orderElementTreeController);
            orderElementTreeController.setReadOnly(readOnly);

            Tree tree = (Tree) orderElementsTree.getFellowIfAny("tree");
            tree.setModel(null);
            tree.setTreeitemRenderer(orderElementTreeController.getRenderer());

            reloadTree(orderElementsTree);
        }
View Full Code Here

Examples of org.xulfaces.component.tree.TreeComponent

@RENDERER(kit = "XUL_RENDERKIT", family = "xul.component.family", type = "xul.renderer.TreeChildren")
public class TreeChildrenRenderer extends XULRenderer {

  public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {

    TreeComponent treeComponent = (TreeComponent) component.getParent();   
    TreeChildrenComponent treeChildrenComponent = (TreeChildrenComponent) component;
    ResponseWriter responseWriter = facesContext.getResponseWriter();   
    TreeModel treeModel = treeComponent.getTreeModel();
    DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treeModel.getRoot();
    if (treeNode != null) {
      String var = (String) component.getParent().getAttributes().get("var");
      if (var != null) {
        Map sessionMap = facesContext.getExternalContext().getSessionMap();
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.