Java Code Examples for ims.framework.controls.DynamicGridCell.getTooltip()

The following are Jave code examples for showing how to use getTooltip() of the ims.framework.controls.DynamicGridCell class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void editChildRow(DynamicGrid grid, Float requiredVal, Float containerVal, DynamicGridRow childRow, OrderInvestigationVo voOrderInvestigation, boolean bProfileProcessed)
{
	if (!(childRow.getValue() instanceof OrderInvestigationVoCollection))
		childRow.setValue(new OrderInvestigationVoCollection());
	((OrderInvestigationVoCollection) childRow.getValue()).add(voOrderInvestigation);
	
	// modify the tooltip
	DynamicGridCell cellDiscipline = childRow.getCells().get(grid.getColumns().getByIdentifier(DISCIPLINE_COLUMN));
	DynamicGridCell cellSpecimenType = childRow.getCells().get(grid.getColumns().getByIdentifier(SPECIMENTYPE_COLUMN));
	String invName = voOrderInvestigation.getInvestigation().getInvestigationIndex().getName();
	if (cellDiscipline.getTooltip() != null)
		cellDiscipline.setTooltip(cellDiscipline.getTooltip() + ", " + invName);

	if (cellSpecimenType.getTooltip() != null)
		cellSpecimenType.setTooltip(cellSpecimenType.getTooltip() + ", " + invName);
	
	Float thisval = (Float) cellDiscipline.getIdentifier();
	// updating the total required for container
	if (cellSpecimenType.getValue() != null && cellSpecimenType.getValue() instanceof String)
	{
		
		thisval += requiredVal;
		// WDEV-12280
		if (ConfigFlag.UI.OCS_ORDERING_DISPLAY_BLOOD_VOLUMES.getValue())
		{
			int beginIndex = cellSpecimenType.getValue().toString().indexOf(" - ");
			cellSpecimenType.setValue(cellSpecimenType.getValue().toString().substring(0, beginIndex) + " - " + String.valueOf(thisval) + " mls");
		}
		
		cellDiscipline.setIdentifier(thisval);
	}

	if (voOrderInvestigation.getInvestigationIsNotNull() && voOrderInvestigation.getInvestigation().getIsAddonIsNotNull() && voOrderInvestigation.getInvestigation().getIsAddon().booleanValue())
		return;

	DynamicGridCell cellQty = childRow.getCells().get(grid.getColumns().getByIdentifier(QTY_COLUMN));
	if (cellQty != null)
	{
		if (!bProfileProcessed)
			cellQty.setValue(calculateQuantity(grid, childRow, thisval, containerVal));
	}
}