本文整理匯總了Java中ims.clinical.vo.PatientGoalVo.getGoalTextIsNotNull方法的典型用法代碼示例。如果您正苦於以下問題:Java PatientGoalVo.getGoalTextIsNotNull方法的具體用法?Java PatientGoalVo.getGoalTextIsNotNull怎麽用?Java PatientGoalVo.getGoalTextIsNotNull使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ims.clinical.vo.PatientGoalVo
的用法示例。
在下文中一共展示了PatientGoalVo.getGoalTextIsNotNull方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setPatientGoalRow
import ims.clinical.vo.PatientGoalVo; //導入方法依賴的package包/類
/**
* Function used to set up a GridRow with a PatientGoal value
*
* @param row -
* the provided row to set up with PatientGoal; the row can not
* be null
* @param patientGoal -
* PatientGoal to be set up on row
*/
private void setPatientGoalRow(grdTargetRow row, PatientGoalVo patientGoal)
{
// Do a check on parameters
if (patientGoal == null)
return;
// If a null row is provided, then it's a major logical error
if (row == null)
throw new CodingRuntimeException("Major Logical Error - Null row provided to set up a PatientGoal");
// Build the display text to display for the PatientGoal
StringBuffer displayText = new StringBuffer();
if (patientGoal.getAreaOfNeedIsNotNull())
displayText.append(patientGoal.getAreaOfNeed().getText());
if (patientGoal.getGoalTypeIsNotNull())
displayText.append(", ").append(patientGoal.getGoalType().getText());
if (patientGoal.getCreatedDateTimeIsNotNull())
displayText.append(", ").append(patientGoal.getCreatedDateTime());
if (patientGoal.getGoalTextIsNotNull())
displayText.append(", ").append(patientGoal.getGoalText());
row.setcolTarget(displayText.toString());
// Set up the tool tip for the row
if (patientGoal.getGoalTextIsNotNull())
row.setTooltip("<b>Goal:</b> " + patientGoal.getGoalText());
// Set the row value
row.setValue(patientGoal);
// Set up PatientGoal row background color
row.setBackColor(Color.LightYellow);
// Set up PatientGoal targets (or color the row in LightYellow if it has
// no targets)
if (patientGoal.getTargetIsNotNull())
{
for (int i = 0; i < patientGoal.getTarget().size(); i++)
{
PatientGoalTargetVo patientGoalTarget = patientGoal.getTarget().get(i);
// Skip null entries in collection
if (patientGoalTarget == null)
continue;
setPatientGoalTargetRow(row.getRows().newRow(), patientGoalTarget);
}
// Expand the row
row.setExpanded(true);
}
}