• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IHotlist类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: expandNode

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/**
 * This will expand the node by getting the IHotlist based on the node id and current CciType.
 * It will then list the IHotlistItems below
 * @param TreeNode
 * @return void
 */
private void expandNode(TreeNode node)
{
	if (node == null) return;
	
	if ( node.isExpanded() )
	{
		IHotlistShort val = (IHotlistShort) node.getValue();
		IHotlist item = domain.getIHotlist(val.getIHotlistShortID(), form.getLocalContext().getcurrentCciType());
		
		node.setValue(item);
		form.getLocalContext().setSelectedHotlist((IHotlist) node.getValue());			
		node.getNodes().clear();
		
		for ( int i = 0; i < item.getIHotlistItems().length; i++ )
		{
			TreeNode child = node.getNodes().add(item.getIHotlistItems()[i], item.getIHotlistItems()[i].getIGenericItem().getIGenericItemInfoName());
			setNodeImage(child, Color.Blue);
			child.setEnabled(node.isEnabled());
		}
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:28,代码来源:Logic.java


示例2: resetLocalContextSelection

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/**
 * Sets the local context value depending on whether the node selected is a hotlist or a hotlist item
 * @param TreeNode
 * @return void
 */
private void resetLocalContextSelection(TreeNode node)
{
	// if the node is an IHotlist, no need for a get call, just refresh the value
	if ( node.getValue() instanceof IHotlist )
	{
		form.getLocalContext().setSelectedHotlist((IHotlist) node.getValue());
	}
	// if the node is an IHotlistShort, get it's IHotlist and reset the value
	else if ( node.getValue() instanceof IHotlistShort )
	{
		form.getLocalContext().setSelectedHotlist(domain.getIHotlist(((IHotlistShort)node.getValue()).getIHotlistShortID(), form.getLocalContext().getcurrentCciType()));
	}
	// if the node is an IHotlistItem, set the value to that of its parent (IHotlist). 
	else if ( node.getValue() instanceof IHotlistItem )
	{
		form.getLocalContext().setSelectedHotlist((IHotlist)node.getParent().getValue());
	}
	else
		form.getLocalContext().setSelectedHotlist(null);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java


示例3: findChangedNode

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
private TreeNode findChangedNode()
{
	TreeNode node = null;
	IHotlist voVal = (IHotlist)form.getLocalContext().getSelectedHotlist();
	if (voVal == null) return node;			
	
	for (int x = 0 ; x< form.treConfig().getNodes().size(); x++ )
	{ 
		if ( !(form.treConfig().getNodes().get(x).getValue() instanceof Specialty) )
		{
			IHotlistShort voShort = (IHotlistShort) form.treConfig().getNodes().get(x).getValue(); 
			if (voShort.getISpecialty().equals(voVal.getISpecialty()))
			{
				node = form.treConfig().getNodes().get(x);
				node.setExpanded(true);
				form.treConfig().setValue(node.getValue());
				break;
			}
		}
	}	
	return node;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:23,代码来源:Logic.java


示例4: getIHotlist

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/** 
 * Gets the hotlist associated with the given Hotlist ID and CciType
 * @param Integer
 * @param CciType
 * @return IHotlist
 * @author mmccarthy 
 */
public IHotlist getIHotlist(Integer hotlistID, CciType cciType)
{
	DomainFactory factory = getDomainFactory();
	
	if ( cciType.equals(CciType.PROCEDURE))
	{
		return ProcedureHotlistVoAssembler.create((ProcedureHotlist) factory.getDomainObject(ProcedureHotlist.class, hotlistID));
	}
	else if ( cciType.equals(CciType.PROBLEM) )
	{
		return ProblemHotlistVoAssembler.create((ProblemHotlist)factory.getDomainObject(ProblemHotlist.class, hotlistID));
	}
	else if ( cciType.equals(CciType.DIAGNOSIS) )
	{
		return DiagnosisHotListVoAssembler.create((DiagnosisHotlist) getDomainFactory().getDomainObject(DiagnosisHotlist.class, hotlistID));
	}
	else if ( cciType.equals(CciType.CANCERIMAGE) )
	{
		return CancerImagingHotlistVoAssembler.create((CancerImagingHotlist) getDomainFactory().getDomainObject(CancerImagingHotlist.class, hotlistID));
	}
	else 
	{
		throw new DomainRuntimeException ("Unknown CciType in getIHotlist = " + cciType.toString());
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:33,代码来源:SpecialtyHotlistConfigurationImpl.java


示例5: open

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
private void open() 
{		
	form.getLocalContext().setSelectedInstance(form.getGlobalContext().Clinical.getSpecialtyHotlistConfigurationVo());
	populateInstanceControls((IHotlist)form.getGlobalContext().Clinical.getSpecialtyHotlistConfigurationVo());		
	
	form.txtSearch().setFocus();
	form.grdItems().setEnabled(true);
	form.grdItems().setReadOnly(false);

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


示例6: save

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/**
 * Attempts to save an IHotlist populated from the screen data
 * @param void
 * @return boolean
 */
private boolean save() 
{
	IHotlist iHotlist = (IHotlist) form.getGlobalContext().Clinical.getSpecialtyHotlistConfigurationVo().clone();
	iHotlist.setIHotlistItems(listSelectedIHotlistItems());
	
	//validate Vo
	String[] arrErrors =  iHotlist.iValidate(validateUIRules());	
	
	if(arrErrors != null)
	{
		engine.showErrors(arrErrors);
		return false;
	}
	
	try
	{
		iHotlist = domain.saveIHotlist(iHotlist, form.getLocalContext().getCurrentCciType());
		form.getLocalContext().setSelectedInstance((ValueObject)iHotlist);
	}
	catch(StaleObjectException e)
	{
		engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
		open();
		return false;
	}
	return true;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:33,代码来源:Logic.java


示例7: onFormDialogClosed

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if (result != DialogResult.OK) 
		return;		
	
	form.getLocalContext().setSelectedHotlist((IHotlist)form.getGlobalContext().Clinical.getSpecialtyHotlistConfigurationVo());
	open(); 
	expandNode(findChangedNode());
	updateControlsState();
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:11,代码来源:Logic.java


示例8: configureSpecialtyHotlist

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
private void configureSpecialtyHotlist()
{
	IHotlist localContextHotlist = (IHotlist)form.getLocalContext().getSelectedHotlist();
	if (localContextHotlist == null)
	{
		localContextHotlist =  newHotlist();
	}

	form.getGlobalContext().Clinical.setSpecialtyHotlistConfigurationVo((ValueObject)localContextHotlist);
	
	if (localContextHotlist instanceof ProcedureHotlistVo)
	{
		form.getGlobalContext().Clinical.setPMHConfigSearchType("P");
		engine.open(form.getForms().Core.SpecialtyHotlistConfigurationDlg, "Configure Procedures");				
	}
	else if (localContextHotlist instanceof ProblemHotlistVo)
	{
		form.getGlobalContext().Clinical.setPMHConfigSearchType("PR");	
		engine.open(form.getForms().Core.SpecialtyHotlistConfigurationDlg, "Configure Problems");				
	}
	else if (localContextHotlist instanceof DiagnosisHotListVo)
	{
		form.getGlobalContext().Clinical.setPMHConfigSearchType("D");												
		engine.open(form.getForms().Core.SpecialtyHotlistConfigurationDlg, "Configure Diagnoses");
	}
	else if (localContextHotlist instanceof CancerImagingHotlistVo)
	{
		form.getGlobalContext().Clinical.setPMHConfigSearchType("C");												
		engine.open(form.getForms().Core.SpecialtyHotlistConfigurationDlg, "Configure Cancer Imaging Events");
	}
	else
	{
		throw new DomainRuntimeException("Unexpected CCI type in 'configureSpecialtyHotlist'");
	}
	
	form.getGlobalContext().Clinical.setSelectedProcedures(null);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:38,代码来源:Logic.java


示例9: newHotlist

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/**
 * Creates a new IHotlist depending on the current CciType.
 * @param void
 * @return IHotlist
 */
private IHotlist newHotlist()
{
	IHotlist iHotlist = null;
	
	if ( form.getLocalContext().getcurrentCciType().equals(CciType.PROBLEM) )
	{
		ProblemHotlistVo voProblemHotlist = new ProblemHotlistVo(); 		
		voProblemHotlist.setHotlistItems(new ProblemHotlistItemVoCollection());	
		iHotlist = voProblemHotlist;
	}
	else if ( form.getLocalContext().getcurrentCciType().equals(CciType.PROCEDURE) )
	{
		ProcedureHotlistVo voProcedureHotlist = new ProcedureHotlistVo();
		voProcedureHotlist.setHotlistItems(new ProcedureHotlistItemVoCollection());
		iHotlist = voProcedureHotlist;
	}
	else if ( form.getLocalContext().getcurrentCciType().equals(CciType.DIAGNOSIS) )
	{
		DiagnosisHotListVo voDiagnosisHotlist = new DiagnosisHotListVo();
		voDiagnosisHotlist.setHotListItems(new DiagnosisHotlistItemVoCollection());
		iHotlist = voDiagnosisHotlist;
	}
	else if ( form.getLocalContext().getcurrentCciType().equals(CciType.CANCERIMAGE) )
	{
		CancerImagingHotlistVo voCancerImagingHotlist = new CancerImagingHotlistVo();
		voCancerImagingHotlist.setHotListItems(new CancerImagingHotlistItemVoCollection());
		iHotlist = voCancerImagingHotlist;
	}
	else
	{
		throw new DomainRuntimeException("Unknown CCI type in newHotlist()");
	}
	
	iHotlist.setISpecialty((Specialty) form.treConfig().getSelectedNode().getValue());
	form.getGlobalContext().Clinical.setSpecialtyHotlistConfigurationVo((ValueObject)iHotlist);
	return iHotlist;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:43,代码来源:Logic.java


示例10: displayIGenericItemCollection

import ims.vo.interfaces.IHotlist; //导入依赖的package包/类
/**
 * Displays a list of IGenericItems in grdItems, if they do not already exist in grdSelectedItems
 * @param IGenericItem[]
 * @return void
 */
private void displayIGenericItemCollection(IGenericItem[] collIGenericItem)
{ 
	if ( collIGenericItem == null )
		return;
	
	IHotlistItem[] collSelectedHotlistItems = listSelectedIHotlistItems();
	
	for(int i=0; i < collIGenericItem.length; i++)
	{
		boolean bFound = false;
		// Only add searched procedures to the list that don't already exist
		for (int j=0; j < collSelectedHotlistItems.length; j++)
		{
			if (collIGenericItem[i].getIGenericItemInfoID().equals(collSelectedHotlistItems[j].getIGenericItem().getIGenericItemInfoID()))				
			{
				bFound = true;
				break;
			}				
		}
		
		if (bFound == false)
		{
			IHotlistItem[] collExistingHotlistItems = ((IHotlist)form.getLocalContext().getSelectedInstance()).getIHotlistItems();
			IHotlistItem iHotlistItem = newIHotlistItem();
			boolean bExisting = false;
			// The procedure hasn't been found in the group of selected procedures. Check whether it exists in the currently
			// persisted collection and use that ProcedureItemHotlistVo instance if it is.
			for (int j=0; j < collExistingHotlistItems.length; j++)
			{
				if (collIGenericItem[i].getIGenericItemInfoID().equals(collExistingHotlistItems[j].getIGenericItem().getIGenericItemInfoID()))
				{
					iHotlistItem = collExistingHotlistItems[j];
					bExisting = true;
					break;
				}
			}
			
			if (bExisting == false)
			{
				iHotlistItem.setIGenericItem(collIGenericItem[i]);
			}

			GenForm.grdItemsRow newRow = form.grdItems().getRows().newRow();
			newRow.setcolItems(iHotlistItem.getIGenericItem().getIGenericItemInfoName());
			newRow.setValue(iHotlistItem);		
		}
	}
	updateControlsState();
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:55,代码来源:Logic.java



注:本文中的ims.vo.interfaces.IHotlist类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DeferredLog类代码示例发布时间:2022-05-15
下一篇:
Java AuthoringInformationVo类代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap