| | |
| | | package com.vci.rmip.code.client.codeapply.Apply410; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.vci.base.ui.swing.VCIOptionPane; |
| | | import com.vci.base.ui.swing.components.VCIJPanel; |
| | | import com.vci.base.ui.tree.VCIBaseTree; |
| | |
| | | import com.vci.rmip.code.client.codeapply.Apply410.object.ReferTreObject; |
| | | import com.vci.rmip.code.client.codeapply.Apply410.object.TokenUserObject; |
| | | import com.vci.rmip.code.client.codeapply.Apply410.object.UIFormRefer; |
| | | import com.vci.rmip.code.client.codeapply.Apply410.object.tree.Tree; |
| | | import com.vci.rmip.code.client.codeapply.Apply410.utils.ConfigUtils; |
| | | import com.vci.rmip.code.client.codeapply.Apply410.utils.HttpUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.codehaus.jackson.JsonProcessingException; |
| | | import org.codehaus.jackson.map.ObjectMapper; |
| | | import org.codehaus.jackson.type.TypeReference; |
| | | |
| | | import javax.swing.event.TreeExpansionEvent; |
| | | import javax.swing.event.TreeExpansionListener; |
| | | import javax.swing.event.TreeSelectionEvent; |
| | | import javax.swing.event.TreeSelectionListener; |
| | | import javax.swing.tree.TreePath; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | Object object= r.getData(); |
| | | if(object!=null) { |
| | | // ObjectMapper objectMapper = new ObjectMapper(); |
| | | treeList = objectMapper.readValue(object.toString(), new com.fasterxml.jackson.core.type.TypeReference<List<Tree>>() {}); |
| | | treeList=treeList; |
| | | treeList = objectMapper.readValue(object.toString(), new TypeReference<List<Tree>>() {}); |
| | | } |
| | | }else{ |
| | | VCIOptionPane.showMessage(this,r.getMsg()); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |