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

The following are Jave code examples for showing how to use isReadOnly() 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 addThisRowsCarePlanInterventionAndOtherInterventionstoo(DynamicGridRow row) 
{
	// Check to see if the CarePlan is already in collection
	for (int i = 0 ; i < form.getLocalContext().getCarePlansToSave().size() ; i++)
	{
		if (form.getLocalContext().getCarePlansToSave().get(i).getID_CarePlan().equals(((CarePlan)row.getValue()).getID_CarePlan()))
			return;
	}
	
	CarePlan voRowCarePlan = ((CarePlan)row.getValue());
	
	//Look thru grid find rows for suppplied CarePlan - voRowCarePlan
	for (int iRow = 0 ; iRow < form.dyngrdInterventions().getRows().size() ; iRow++)
	{
		if (((CarePlan)form.dyngrdInterventions().getRows().get(iRow).getValue()).getID_CarePlan().equals(voRowCarePlan.getID_CarePlan()))
		{
			CarePlanInterventions voRowIntervention = (CarePlanInterventions)form.dyngrdInterventions().getRows().get(iRow).getIdentifier();

			// see if associated Intervention - Row is ticked
			DynamicGridCell cellComp = form.dyngrdInterventions().getRows().get(iRow).getCells().get(getColumn(COLCOMPLETED));
			if (cellComp != null 
				&& cellComp.getType() == DynamicCellType.BOOL
				&& (! cellComp.isReadOnly())
				&& ((Boolean) cellComp.getValue()) )
			{
				//look for matching intervention in CarePlan - and set Stpooed INfo
				for( int iInter = 0 ; iInter < voRowCarePlan.getInterventions().size() ; iInter++)
				{
					if (voRowCarePlan.getInterventions().get(iInter).getID_CarePlanIntervention().equals(voRowIntervention.getID_CarePlanIntervention()))
					{
						voRowCarePlan.getInterventions().get(iInter).setStopBy((HcpLiteVo)domain.getHcpLiteUser());
						voRowCarePlan.getInterventions().get(iInter).setStopDate(new Date());
						//WDEV-12155 
						voRowCarePlan.getInterventions().get(iInter).setActive(false);
					}
				}
			}
		}
	}
	form.getLocalContext().getCarePlansToSave().add(voRowCarePlan);
}
 
Example 2
Project: AvoinApotti   File: UserAssessmentInstHelper.java   View Source Code Vote up 4 votes
private boolean isConfimedReadOnly(DynamicGridCell confirmCell)
{
	if (confirmCell != null)
		return confirmCell.isReadOnly();
	return false;
}
 
Example 3
Project: AvoinApotti   File: UserAssessmentInstHelper.java   View Source Code Vote up 4 votes
private boolean isPocReadOnly(DynamicGridCell pocCell)
{
	if (pocCell != null)
		return pocCell.isReadOnly();
	return false;
}