Java Code Examples for ims.framework.controls.DynamicGridColumn.setCaption()

The following are Jave code examples for showing how to use setCaption() of the ims.framework.controls.DynamicGridColumn class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeFlatGrid()
{
	form.dyngrdNotes().clear();
	
	DynamicGridColumn clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_IMAGE_FLAT);
	clinicalNotesColumn.setWidth(30);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_DATE_FLAT);
	clinicalNotesColumn.setCaption("Date");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(100);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setCaption("");
	clinicalNotesColumn.setWidth(220);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_CONSULTANT_FLAT);
	clinicalNotesColumn.setCaption("Consultant");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(-1);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdProcedures().clear();
	form.dyngrdProcedures().controlCanFire(true);
	DynamicGridColumn cabColumn = form.dyngrdProcedures().getColumns().newColumn(COLUMN_PROC);
	cabColumn.setCaption("Procedure");
	cabColumn.setIdentifier(COLUMN_PROC);
	cabColumn.setWidth(-1);
	cabColumn.setVisible(true);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void addPrescriptionDrugRow(DynamicGridRow row, PatientMedicationLiteVo patientMedication, boolean readOnly, boolean newRecord)
{
	DynamicGridColumn coll;
	DynamicGridCell cell;

	if (patientMedication == null)
		return;

	row.setIdentifier(PrescriptionDrug);
	row.setReadOnly(readOnly);
	
	if(newRecord)
		row.setBackColor(Color.Beige);

	coll = form.dyngrdPrescription().getColumns().getByIdentifier(COL_USER);
	cell = row.getCells().newCell(coll, DynamicCellType.HTMLVIEW);
	cell.setReadOnly(true);
	cell.setWidth(200);
	
	cell.setValue("<b><i>" + patientMedication.getMedication().getMedicationName() + "</i></b>");

	coll = form.dyngrdPrescription().getColumns().getByIdentifier(COL_DRUG);
	coll.setCaption("Frequency");
	cell = row.getCells().newCell(coll, DynamicCellType.STRING);
	cell.setReadOnly(true);
	cell.setWidth(100);

	cell.setValue(patientMedication != null ? (patientMedication.getFrequencyIsNotNull() ? patientMedication.getFrequency().getIItemText() : null) : null);
	
	coll = form.dyngrdPrescription().getColumns().getByIdentifier(COL_FREQUENCY);
	coll.setCaption("NoDaysSupply");
	cell = row.getCells().newCell(coll, DynamicCellType.INT);
	cell.setReadOnly(true);
	cell.setWidth(60);

	cell.setValue(patientMedication != null ? (patientMedication.getNoDaysSupplyIsNotNull() ? patientMedication.getNoDaysSupply() : null) : null);

	row.setValue(patientMedication);
}