Java TreeNode.getParent方法代码示例

本文整理汇总了Java中ims.framework.controls.TreeNode.getParent方法的典型用法代码示例。如果您正苦于以下问题:Java TreeNode.getParent方法的具体用法?Java TreeNode.getParent怎么用?Java TreeNode.getParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ims.framework.controls.TreeNode的用法示例。


Java TreeNode.getParent方法代码示例

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

示例1: onBtnBuildClick

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
protected void onBtnBuildClick() throws ims.framework.exceptions.PresentationLogicException
{
	TreeNode node = form.treTemplate().getSelectedNode();

	if (node == null || node.getParent() == null)
	{
		engine.showMessage("Please select at template !");
		return;
	}

	form.getGlobalContext().Core.setCurrentFormName(engine.getPreviousNonDialogFormName());

	form.getGlobalContext().Core.setReportID(((ReportVo) node.getParent().getValue()).getID_ReportBo());
	form.getGlobalContext().Core.setTemplateID(((ReportTemplateVo) node.getValue()).getID_TemplateBo());

	if (form.getGlobalContext().Core.getAutoOpenViewReportIsNotNull() && form.getGlobalContext().Core.getAutoOpenViewReport().equals(Boolean.TRUE))
		engine.open(form.getForms().Core.ViewReport);

	engine.close(DialogResult.OK);
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:21,代码来源:Logic.java

示例2: getRootNod

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
public ValueObject getRootNod()
{
	TreeNode node = form.treCategoryGroupSite().getSelectedNode();
	
	if (node == null)
		return null;
	
	while (node.getParent() != null)
		node = node.getParent();
	
	return (ValueObject) node.getValue();
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:13,代码来源:Logic.java

示例3: getSelectedBranchVersion

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
public TNMStagingClassificationVersionRefVo getSelectedBranchVersion()
{
	TreeNode node = form.treCategoryGroupSite().getSelectedNode();
	
	if (node == null)
		return null;
	
	while (node.getParent() != null)
	{
		if (node.getValue() instanceof TumourCategoryVersionGroupsLiteVo)
			return ((TumourCategoryVersionGroupsLiteVo)node.getValue()).getTNMVersion();
		
		node = node.getParent();
	}

	return null;
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:18,代码来源:Logic.java

示例4: displayConfigItem

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void displayConfigItem(ProblemListVoCollection voCollProblems)
{
	if (voCollProblems == null)
		return;

	TreeNode nodeToUse = form.treConfig().getSelectedNode();
	if (nodeToUse == null)
		return;

	while (nodeToUse.getParent() != null)
		nodeToUse = nodeToUse.getParent();

	nodeToUse.getNodes().clear();

	for (int i = 0; i < voCollProblems.size(); i++)
	{
		TreeNode nodeProblem = null;
		nodeProblem = nodeToUse.getNodes().add(voCollProblems.get(i), voCollProblems.get(i).getPresentingProblem().getPCName());
		nodeProblem.setExpandedImage(form.getImages().Core.BlueSquare);
		nodeProblem.setCollapsedImage(form.getImages().Core.BlueSquare);
		nodeProblem.setSelectedImage(form.getImages().Core.BlueSquare);
	}

	nodeToUse.setExpanded(true);
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java

示例5: menuActivityUpdatePriceClick

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void menuActivityUpdatePriceClick()
{
	TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
	if (node == null)
		return;

	if (node.getParent() == null)
		return;

	form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
	form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());

	form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_UPDATE));
	form.getGlobalContext().Admin.setActivityContextPricingDetailCollection(((LocationServiceActivityVo) node.getParent().getValue()).getActivityContextPricings());

	engine.open(form.getForms().Admin.ActivityContextPricingDetails);
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:18,代码来源:Logic.java

示例6: removeMenuActionsDenied

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void removeMenuActionsDenied()
{		
	TreeNode selectedNode = form.lyrRights().tabActionsDenied().treActions().getSelectedNode();
	if(selectedNode != null)
	{
		if(selectedNode.getParent() == null)
		{
			form.lyrRights().tabActionsDenied().treActions().getNodes().remove(selectedNode);
		}
		else
		{
			selectedNode.getParent().getNodes().remove(selectedNode);
		}
	}
	
	updateContextMenuState(); //WDEV-15632
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:18,代码来源:Logic.java

示例7: onTreTypesTreeViewNodeDropped

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
protected void onTreTypesTreeViewNodeDropped(TreeNode node, TreeNode oldParent) throws PresentationLogicException
{
	if (node.getValue() != null && node.getValue() instanceof LookupInstVo )
	{
		LookupInstVo vo = (LookupInstVo)node.getValue();
		if (node.getParent() == null)
		{
			vo.setParentInstance(null);
		}
		else
		{
			if (node.getParent().getValue() instanceof LookupTypeVo)
			{
				vo.setParentInstance(null);
			}
			else
			{
				vo.setParentInstance((LookupInstVo)node.getParent().getValue());
			}				
		}
	}
	
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:24,代码来源:Logic.java

示例8: unassignTemplate

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void unassignTemplate()
{
	TreeNode node = form.treBOList().getSelectedNode();
	
	if(node != null && node.getParent() != null)
		form.getLocalContext().setLastNode((String) node.getParent().getValue());
	
	ReportTemplateBoRefVo item = (ReportTemplateBoRefVo) form.treBOList().getValue();
	
	try
	{
		domain.removeLink(item);
		open();
	}
	catch (ForeignKeyViolationException e)
	{
		engine.showMessage("Error unassigning the template: " + e.toString());
		return;
	}
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:21,代码来源:Logic.java

示例9: removeUntickedNodes

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private boolean removeUntickedNodes(TreeNode node) 
{
	if (node.getNodes().size() > 0 )
	{
		for (int j = 0 ; j < node.getNodes().size() ; j++)
		{
			if(removeUntickedNodes(node.getNodes().get(j))) 
				j--;
		}
	}
	if (!node.isChecked())
	{
		if (node.getNodes().size() == 0)
		{
			if (node.getParent() != null) 
			{
				TreeNode parentNode = node.getParent();
				parentNode.getNodes().remove(node);
				
				return true;
			}
			else
			{
				form.lyr1().tabPageDetails().treContactTypes().getNodes().remove(node);
				return true;
			}
		}
	}
	
	return false;
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:32,代码来源:Logic.java

示例10: getParentNod

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
public ValueObject getParentNod()
	{
		TreeNode node = form.treCategoryGroupSite().getSelectedNode();
		
		if (node == null)
			return null;
		
		if (node.getParent() == null)
			return null;
		
		return (ValueObject) node.getParent().getValue();
//		
//		//Category
//		if (node.getParent() == null)
//		{
//			form.getLocalContext().setParentNode(null);
//		}
//		else
//		{
//			//Group
//			if (node.getParent().getParent() == null)
//			{
//				form.getLocalContext().setParentNode((ValueObject) node.getParent().getValue());
//			}
//			//Site
//			else
//			{
//				form.getLocalContext().setParentNode((ValueObject) node.getParent().getValue());
//			}
//		}
//		
//		return form.getLocalContext().getParentNode();
	} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:34,代码来源:Logic.java

示例11: findRootNode

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void findRootNode()
{
	TreeNode treeNode = null;
	treeNode = form.treList().getSelectedNode(); 
	if (treeNode != null)
	{
		while ( treeNode.getValue() instanceof ContactTypesByDisciplineItemVo)
		{
			treeNode = treeNode.getParent();
		}
	}

	form.getLocalContext().setSelectedRecord(treeNode != null ? ((ContactTypesByDisciplineVo)treeNode.getValue()) : null);
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:15,代码来源:Logic.java

示例12: onTreFavouritesTreeViewNodeDropped

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
protected void onTreFavouritesTreeViewNodeDropped(TreeNode node, TreeNode previousParentNode) throws PresentationLogicException
{
	if(form.getMode().equals(FormMode.VIEW))
		form.setMode(FormMode.EDIT);
	
	TreeNode 
	parent = node.getParent();
	if(parent != null)
	{
		parent.setCollapsedImage(form.getImages().Core.CollapseAll);
		parent.setExpandedImage(form.getImages().Core.ExpandAll);
	}
	
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:15,代码来源:Logic.java

示例13: editFolder

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private void editFolder()
{
	TreeNode folderNode = form.lyr1().tabFavourites().treFavourites().getSelectedNode();
	if (folderNode == null && folderNode.getParent() != null)
	{
		engine.showMessage("Please select a Folder");
		return;
	}

	form.lyr1().tabFavourites().treFavourites().beginEditSelectedNode();

	if (form.getMode().equals(FormMode.VIEW))
		form.setMode(FormMode.EDIT);
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:15,代码来源:Logic.java

示例14: onTreFavouritesTreeViewNodeDropped

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
@Override
protected void onTreFavouritesTreeViewNodeDropped(TreeNode node, TreeNode previousParentNode) throws PresentationLogicException
{
	if (form.getMode().equals(FormMode.VIEW))
		form.setMode(FormMode.EDIT);

	TreeNode parent = node.getParent();
	if (parent != null)
	{
		parent.setCollapsedImage(form.getImages().Core.CollapseAll);
		parent.setExpandedImage(form.getImages().Core.ExpandAll);
	}
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:14,代码来源:Logic.java

示例15: getRootNode

import ims.framework.controls.TreeNode; //导入方法依赖的package包/类
private TreeNode getRootNode(TreeNode node)
{
	if (node == null)
		return null;

	TreeNode parent = node;
	while (parent.getParent() != null)
	{
		parent = parent.getParent();
	}
	return parent;
} 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:13,代码来源:Logic.java

本文标签属性:

示例:示例英文

代码:代码是什么

java:javascript18岁

TreeNode:diminishing

getParent:object

上一篇:呼和浩特一高铁旅客躲在厕所吸烟,致列车降速,最终得到了什么处罚...(王源抽烟事件是怎么回事?)
下一篇:Java Session.getAttribute方法代码示例

为您推荐