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

The following are Jave code examples for showing how to use getColumn() 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 6 votes
protected void onDyngrdAssessmentsCellValueChanged(DynamicGridCell cell)
{
	//Refresh Reason Column
	DynamicGridColumn col = cell.getColumn();
	if(col != null && col.getIdentifier().equals(STATUS_COLUMN))
	{
		DynamicGridRow row = cell.getRow();
		if(row != null)
		{
			DynamicGridCell reasonCell = row.getCells().get(getDynGridColumn(REASON_COLUMN));
			Object statusValue = cell.getValue();
			if(reasonCell != null )
			{
				if(statusValue instanceof PatientAssessmentStatusReason)
				{
					populateReasonCell(reasonCell, (PatientAssessmentStatusReason)statusValue);
				}
				else
				{
					reasonCell.getItems().clear();
				}
			}
		}
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onDyngrdAssessmentsCellButtonClicked(DynamicGridCell cell)
{
	if(cell != null)
	{
		if(cell.getColumn() != null && cell.getColumn().equals(getDynGridColumn(HELP_URL_COLUMN)))
		{
			if(cell.getIdentifier() != null)
			{
				Object identifier = cell.getIdentifier();
				if(identifier instanceof String)
				{
					engine.openUrl((String)identifier);
				}
			}
		}
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onDyngrdAssessmentsCellValueChanged(DynamicGridCell cell)
{
	//Refresh Reason Column
	DynamicGridColumn col = cell.getColumn();
	if(col != null && col.getIdentifier().equals(STATUS_COLUMN))
	{
		DynamicGridRow row = cell.getRow();
		if(row != null)
		{
			DynamicGridCell reasonCell = row.getCells().get(getDynGridColumn(REASON_COLUMN));
			Object statusValue = cell.getValue();
			if(reasonCell != null )
			{
				if(statusValue instanceof PatientAssessmentStatusReason)
				{
					populateReasonCell(reasonCell, (PatientAssessmentStatusReason)statusValue);
				}
				else
				{
					reasonCell.getItems().clear();
				}
			}
		}
	}
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onDyngrdAssessmentsCellButtonClicked(DynamicGridCell cell)
{
	if(cell != null)
	{
		if(cell.getColumn() != null && cell.getColumn().equals(getDynGridColumn(HELP_URL_COLUMN)))
		{
			if(cell.getIdentifier() != null)
			{
				Object identifier = cell.getIdentifier();
				if(identifier instanceof String)
				{
					engine.openUrl((String)identifier);
				}
			}
		}
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
@Override
protected void onDyngrdTrackCellButtonClicked(DynamicGridCell cell) 
{
	if(cell == null || cell.getRow() == null || cell.getColumn() == null)
		return;
	
	form.dyngrdTrack().setValue(cell.getRow().getValue());
	
	trackingSelectionChanged();
	updateControlsState();
	
	if(TrackingAreaColumn.CUBICLE.equals(cell.getColumn().getIdentifier()))
	{
		engine.open(form.getForms().Emergency.AllocateCubicle);
	}
	else if(TrackingAreaColumn.REFERRAL_SPECIALTY.equals(cell.getColumn().getIdentifier()))
	{
		engine.open(form.getForms().Emergency.EDReferralToSpecialtyDialog);//WDEV-16777
	}
	else if(TrackingAreaColumn.SEEN_BY_HCP.equals(cell.getColumn().getIdentifier()))//WDEV-16816
	{
		engine.open(form.getForms().Emergency.EDSeenByAndCompleteDialog);//WDEV-16816
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onDyngrdAssessmentsCellValueChanged(DynamicGridCell cell)
{
	// Refresh Reason Column
	DynamicGridColumn col = cell.getColumn();
	if (col != null && col.getIdentifier().equals(STATUS_COLUMN))
	{
		DynamicGridRow row = cell.getRow();
		if (row != null)
		{
			DynamicGridCell reasonCell = row.getCells().get(getDynGridColumn(REASON_COLUMN));
			Object statusValue = cell.getValue();
			if (reasonCell != null)
			{
				if (statusValue instanceof PatientAssessmentStatusReason)
					populateReasonCell(reasonCell, (PatientAssessmentStatusReason) statusValue);
			}
			else
			{
				reasonCell.getItems().clear();
			}
		}
	}
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onDyngrdAssessmentsCellButtonClicked(DynamicGridCell cell)
{
	if (cell != null)
	{
		if (cell.getColumn() != null && cell.getColumn().equals(getDynGridColumn(HELP_URL_COLUMN)))
		{
			if (cell.getIdentifier() != null)
			{
				Object identifier = cell.getIdentifier();
				if (identifier instanceof String)
				{
					engine.openUrl((String) identifier);
				}
			}
		}
	}
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
@Override protected void onDyngrdEventTargetManagementCellValueChanged(DynamicGridCell cell)
{
	DynamicGridColumn colSetToInscope = cell.getColumn().equals(form.lyrTargets().tabEventTargets().dyngrdEventTargetManagement().getColumns().getByIdentifier(COLSETTOINSCOPE)) ? cell.getColumn() : null;
	if(colSetToInscope != null)
	{
		if(cell.getValue().equals(Boolean.TRUE))
		{
			//get the journeytarget cell and check its value
			//if it is null set it to inscope
			DynamicGridCell cellJourneyTarg = cell.getRow().getCells().get(form.lyrTargets().tabEventTargets().dyngrdEventTargetManagement().getColumns().getByIdentifier(COLJOURNEYTARGET));
			if(cellJourneyTarg.getValue() == null)
				cellJourneyTarg.setValue(PatientTargetStatus.INSCOPE);	
		}
	}
}