• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java TreeNodeImpl类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.richfaces.model.TreeNodeImpl的典型用法代码示例。如果您正苦于以下问题:Java TreeNodeImpl类的具体用法?Java TreeNodeImpl怎么用?Java TreeNodeImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

TreeNodeImpl类属于org.richfaces.model包,在下文中一共展示了TreeNodeImpl类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: buildObjectNamesSubtree

点赞 3

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public int buildObjectNamesSubtree(String[] names, String prefix, int ix, TreeNodeImpl<String> root) {
    String prevname = null;
    TreeNodeImpl<String> prevnode = null;
    for (; ix < names.length && names[ix].startsWith(prefix);) {
        String n = names[ix].substring(prefix.length());
        if (prevname != null && names[ix].startsWith(prevname)) {
            ix = buildObjectNamesSubtree(names, prevname, ix, prevnode);
        } else {
            //System.out.println ("Build subtree set leaf: ("+n+","+ix);
            prevnode = new TreeNodeImpl<String>();
            prevnode.setData(n);
            root.addChild(names[ix], prevnode);
            prevname = names[ix];
            ix++;
        }
    }
    return ix;
}
 

开发者ID:navisidhu,
项目名称:libreacs,
代码行数:19,
代码来源:DataModelJsfBean.java

示例2: convertOperationParametersToGui

点赞 3

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public static TreeNodeImpl convertOperationParametersToGui(WSMethod wsMethod, WSDynamicClient client) {
WiseTreeElementBuilder builder = new WiseTreeElementBuilder(client, true);
TreeNodeImpl rootElement = new TreeNodeImpl();
Collection<? extends WebParameter> parameters = wsMethod.getWebParams().values();
SOAPBinding soapBindingAnn = wsMethod.getEndpoint().getUnderlyingObjectClass().getAnnotation(SOAPBinding.class);
boolean rpcLit = false;
if (soapBindingAnn != null) {
    SOAPBinding.Style style = soapBindingAnn.style();
    rpcLit = style != null && SOAPBinding.Style.RPC.equals(style);
}
for (WebParameter parameter : parameters) {
    if (parameter.getMode() != WebParam.Mode.OUT) {
	WiseTreeElement wte = builder.buildTreeFromType(parameter.getType(), parameter.getName(), null, !rpcLit);
	rootElement.addChild(wte.getId(), wte);
    }
}
return rootElement;
   }
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:19,
代码来源:ClientHelper.java

示例3: loadTree

点赞 3

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
/**
    * sets up the rootNode, for the termSelectionTree in pastSessionGraphs.xhmtl
    */
private void loadTree() {
	currentSource = customSourceBean.getSource();
	int counter = 0;
	rootNode = new TreeNodeImpl<Item>();
	for(Topic  top : this.getAvailableTopics()){
		TreeNodeImpl<Item> topicNode = new TreeNodeImpl<Item>();
		topicNode.setData(new Item("topic", top.getName()));
		for(Term ter : getPlayedTermsOfTopic(top)){
			TreeNodeImpl<Item> termNode = new TreeNodeImpl<Item>();
			termNode.setData(new Item("term", ter.getTag().getName()));
			termNode.setParent(topicNode);
			topicNode.addChild(ter.getTag().getName(), termNode);
			counter ++;
		}
		rootNode.addChild(top.getName(), topicNode);
		counter ++;
	}
}
 

开发者ID:play4science,
项目名称:gwap,
代码行数:22,
代码来源:PastTerminaSessionBean.java

示例4: getObjectNames

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public TreeNodeImpl<String> getObjectNames() {
    if (objectnames != null) {
        return objectnames;
    }
    TreeNodeImpl<String> root = new TreeNodeImpl<String>();
    root.setData("InternetGatewayDevice");

    String[] n = Ejb.lookupDataModelBean().getObjectNames();
    buildObjectNamesSubtree(n, ".", 0, root);
    return objectnames = root;
}
 

开发者ID:navisidhu,
项目名称:libreacs,
代码行数:12,
代码来源:DataModelJsfBean.java

示例5: testBuildNames

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public void testBuildNames() {
    DataModelJsfBean b = new DataModelJsfBean();
    TreeNodeImpl<String> root = new TreeNodeImpl<String>();
    root.setData("InternetGatewayDevice");

    String[] n = {".Capabilities.",
        ".Capabilities.PerformanceDiagnostic.",
        ".CaptivePortal.",
        ".DeviceConfig.",
        ".DeviceInfo.",
        ".DeviceInfo.VendorConfigFile.{i}.",
        ".DownloadDiagnostics.",
        ".IPPingDiagnostics.",
        ".LANConfigSecurity.",
        ".LANDevice.{i}.",
        ".LANDevice.{i}.Hosts.",
        ".LANDevice.{i}.Hosts.Host.{i}.",
        ".LANDevice.{i}.LANEthernetInterfaceConfig.{i}.",
        ".LANDevice.{i}.LANEthernetInterfaceConfig.{i}.Stats.",
        ".LANDevice.{i}.LANHostConfigManagement.",
        ".LANDevice.{i}.LANHostConfigManagement.DHCPConditionalServingPool.{i}.",
        ".LANDevice.{i}.LANHostConfigManagement.DHCPConditionalServingPool.{i}.DHCPOption.{i}.",
        ".LANDevice.{i}.LANHostConfigManagement.DHCPConditionalServingPool.{i}.DHCPStaticAddress.{i}.",
        ".LANDevice.{i}.LANHostConfigManagement.DHCPOption.{i}.",
        ".LANDevice.{i}.LANHostConfigManagement.DHCPStaticAddress.{i}.",
        ".LANDevice.{i}.LANHostConfigManagement.IPInterface.{i}.",
        ".LANDevice.{i}.LANUSBInterfaceConfig.{i}.",
        ".LANDevice.{i}.LANUSBInterfaceConfig.{i}.Stats.",
        ".LANDevice.{i}.WLANConfiguration.{i}.",
        ".LANDevice.{i}.WLANConfiguration.{i}.APWMMParameter.{i}.",
        ".LANDevice.{i}.WLANConfiguration.{i}.AssociatedDevice.{i}."
    };

    b.buildObjectNamesSubtree(n, ".", 0, root);

}
 

开发者ID:navisidhu,
项目名称:libreacs,
代码行数:37,
代码来源:DataModelTest.java

示例6: processGUIParameters

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public static Map<String, Object> processGUIParameters(TreeNodeImpl inputTree) {
Map<String, Object> params = new HashMap<String, Object>();
for (Iterator<Object> it = inputTree.getChildrenKeysIterator(); it.hasNext();) {
    WiseTreeElement wte = (WiseTreeElement) inputTree.getChild(it.next());
    params.put(wte.getName(), wte.isNil() ? null : wte.toObject());
}
return params;
   }
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:9,
代码来源:ClientHelper.java

示例7: getTreeNode

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
/**
* Loads a new tree if needed.  
* @return the rootNode for the termSelectionTree in pastSessionGraphs.xhtml
*/
  public TreeNodeImpl<Item> getTreeNode() {
      if (rootNode == null || ! customSourceBean.getSource().equals(currentSource )) {
          loadTree();
      }
      
      return rootNode;
  }
 

开发者ID:play4science,
项目名称:gwap,
代码行数:12,
代码来源:PastTerminaSessionBean.java

示例8: getInputTree

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public TreeNodeImpl getInputTree() {
    return inputTree;
}
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:4,
代码来源:ClientConversationBean.java

示例9: setInputTree

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public void setInputTree(TreeNodeImpl inputTree) {
    this.inputTree = inputTree;
}
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:4,
代码来源:ClientConversationBean.java

示例10: getOutputTree

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public TreeNodeImpl getOutputTree() {
    return outputTree;
}
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:4,
代码来源:ClientConversationBean.java

示例11: setOutputTree

点赞 2

import org.richfaces.model.TreeNodeImpl; //导入依赖的package包/类
public void setOutputTree(TreeNodeImpl outputTree) {
    this.outputTree = outputTree;
}
 

开发者ID:chtiJBUG,
项目名称:wise-webui,
代码行数:4,
代码来源:ClientConversationBean.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)