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

The following are Jave code examples for showing how to use setIdentifier() 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.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void formatTCategoryGrid() 
{
	form.lyrDetails().tabTNM().dyngrdTCategory().clear();
	form.lyrDetails().tabTNM().dyngrdTCategory().setSelectable(true);
	
	DynamicGridColumn column = form.lyrDetails().tabTNM().dyngrdTCategory().getColumns().newColumn("T Category Extended");
	column.setIdentifier(COL_HISTOLOGY);
	column.setWidth(form.getMode().equals(FormMode.EDIT) ? COL_HIST_WIDTH : -1);
	column.setDynamicWidthSupported(false);

	if (form.getMode().equals(FormMode.EDIT))
	{
		column = form.lyrDetails().tabTNM().dyngrdTCategory().getColumns().newColumn("Select");
		column.setIdentifier(COL_SELECT);
		column.setWidth(-1);
		column.setDynamicWidthSupported(true);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initialiseDynamicGrid()
{
	form.lyrContent().tabConsultant().dyngrDiagnosis().clear();
	
	form.lyrContent().tabConsultant().dyngrDiagnosis().setSelectable(true);
	
	DynamicGridColumn column = form.lyrContent().tabConsultant().dyngrDiagnosis().getColumns().newColumn("Description");
	column.setIdentifier(COL_DIAG_DESCRIPTION);
	column.setWidth(300);
	column.setDynamicWidthSupported(true);
	
	column = form.lyrContent().tabConsultant().dyngrDiagnosis().getColumns().newColumn("Date");
	column.setIdentifier(COL_DIAG_DATE);
	column.setWidth(120);
	column.setDynamicWidthSupported(true);
	
	column = form.lyrContent().tabConsultant().dyngrDiagnosis().getColumns().newColumn("Diagnose");
	column.setIdentifier(COL_DIAG_DIAGNOSE);
	column.setWidth(-1);
	column.setDynamicWidthSupported(true);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void addTrackingColumn(ColumnDetailVo column) 
{
	if(column == null || column.getColHeader() == null)
		return;
	
	DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
	gridColumn.setIdentifier(column.getColumn());
	gridColumn.setWidth(column.getColWidth());
	
	//WDEV-15819
	if (! isImageColumn(gridColumn)) //image columns will not have the sort option
	{
		gridColumn.setSortMode(SortMode.MANUAL);
	}
	

}
 
Example 4
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
	{
		form.dyngrdDoses().clear();
		
		form.dyngrdDoses().setSelectable(true);
		
		DynamicGridColumn column = form.dyngrdDoses().getColumns().newColumn("Dose");
		column.setIdentifier(COL_DOSE_DOSENAME);
		column.setWidth(120);
		column.setDynamicWidthSupported(true);
		
		column = form.dyngrdDoses().getColumns().newColumn("Route");
		column.setIdentifier(COL_DOSE_ROUTE);
		column.setWidth(120);
		column.setDynamicWidthSupported(true);
		
//		column = form.dyngrdDoses().getColumns().newColumn("Times");
//		column.setIdentifier(COL_DOSE_TIMES);
//		column.setWidth(120);
//		column.setDynamicWidthSupported(true);
		
//		column = form.dyngrdDoses().getColumns().newColumn("Commenced By Type");
//		column.setIdentifier(COL_DOSE_COMMENCED_BY_TYPE);
//		column.setWidth(120);
//		
		column = form.dyngrdDoses().getColumns().newColumn("Commenced By (HCP)");
		column.setIdentifier(COL_DOSE_COMMENCED_BY);
		column.setWidth(200);
		column.setDynamicWidthSupported(true);
		
		column = form.dyngrdDoses().getColumns().newColumn("Date");
		column.setIdentifier(COL_DOSE_COMMENCED_DATE);
		column.setWidth(-1);
		column.setDynamicWidthSupported(true);
	}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeHierarchicalGrid() 
{
	form.dyngrdNotes().clear();
	
	DynamicGridColumn clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_TITLE_HIERARCHICAL);
	clinicalNotesColumn.setWidth(-1);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeClexaneDynamicGrid()
{
	form.lyr1().tabNursing().lyrNursing().tabClexane().dyngrdClexane().getRows().clear();
	DynamicGridColumn actionsColumn = form.lyr1().tabNursing().lyrNursing().tabClexane().dyngrdClexane().getColumns().newColumn("", true);
	actionsColumn.setIdentifier("ACTIONS_C");
	actionsColumn.setWidth(630);	
	
	DynamicGridColumn valueColumn = form.lyr1().tabNursing().lyrNursing().tabClexane().dyngrdClexane().getColumns().newColumn("", true);
	valueColumn.setIdentifier("VALUES");
	valueColumn.setWidth(-1);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdReasons().clear();
	form.dyngrdReasons().setSelectable(true);
	
	DynamicGridColumn reasonColumn = null;
	reasonColumn = form.dyngrdReasons().getColumns().newColumn(" ", false);				
	reasonColumn.setIdentifier("REASON");
	reasonColumn.setWidth(-1);
	reasonColumn.setSortMode(SortMode.AUTOMATIC);
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdDischargeDetails().clear();
	form.dyngrdDischargeDetails().setSelectable(true);
	form.dyngrdDischargeDetails().setReadOnly(true);
	form.dyngrdDischargeDetails().setFooterMaxHeight(18);
	
	DynamicGridColumn consultantColumn = null;
	consultantColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Responsible HCP", true);				
	consultantColumn.setIdentifier("CONSULTANT");
	consultantColumn.setWidth(170);
	consultantColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn wardColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Ward", true);
	wardColumn.setIdentifier("WARD");
	wardColumn.setWidth(140);			
	wardColumn.setSortMode(SortMode.AUTOMATIC);
	
	DynamicGridColumn dischargeDateColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Discharge Date", true);
	dischargeDateColumn.setIdentifier("DISCHARGE_DATE");
	dischargeDateColumn.setWidth(105);	
	dischargeDateColumn.setSortMode(SortMode.MANUAL);
	
	DynamicGridColumn methodColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Patient Name", true);
	methodColumn.setIdentifier("PATIENT_NAME");
	methodColumn.setWidth(170);			
	methodColumn.setSortMode(SortMode.AUTOMATIC);
	
	DynamicGridColumn destinationColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Hospital No", true);
	destinationColumn.setIdentifier("HOSPITAL_NO");
	destinationColumn.setWidth(100);		
	destinationColumn.setSortMode(SortMode.AUTOMATIC);
		
	DynamicGridColumn letterStatusColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Letter Status", true);
	letterStatusColumn.setIdentifier("LETTER_STATUS");
	letterStatusColumn.setWidth(100);		
	letterStatusColumn.setSortMode(SortMode.AUTOMATIC);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);
	form.dyngrdNotes().setReadOnly(true);

	form.dteFrom().setValue(new Date().addDay(-ConfigFlag.DOM.DAILY_NOTES_LIST_NO_OF_DAYS.getValue()));
	form.dteTo().setValue(new Date());

	DynamicGridColumn iconColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	iconColumn.setWidth(30);
	iconColumn.setIdentifier(new String("ICON"));

	DynamicGridColumn correctedColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	correctedColumn.setWidth(30);
	correctedColumn.setIdentifier(new String("CORRECT"));

	DynamicGridColumn dateColumn = form.dyngrdNotes().getColumns().newColumn("Authoring Details", true);
	dateColumn.setWidth(150);
	dateColumn.setIdentifier(new String("Authoring Details"));

	DynamicGridColumn disColumn = form.dyngrdNotes().getColumns().newColumn("Discipline", true);
	disColumn.setWidth(100);
	disColumn.setIdentifier(new String("Discipline"));
	disColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(100);
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeActionDynamicGrid()
{
	form.lyr1().tabActions().dyngrdActions().getRows().clear();
	DynamicGridColumn actionsColumn = form.lyr1().tabActions().dyngrdActions().getColumns().newColumn("", true);
	actionsColumn.setIdentifier("ACTIONS");
	actionsColumn.setWidth(430);	
	
	DynamicGridColumn selectColumn = form.lyr1().tabActions().dyngrdActions().getColumns().newColumn("", true);
	selectColumn.setIdentifier("SELECT");
	selectColumn.setWidth(-1);
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);
	form.dyngrdNotes().setReadOnly(true);

	DynamicGridColumn correctedColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	correctedColumn.setWidth(30);
	correctedColumn.setIdentifier(new String("CORRECT"));

	DynamicGridColumn authoringdateColumn = form.dyngrdNotes().getColumns().newColumn("Recording Date Time", true);
	authoringdateColumn.setWidth(125);//WDEV-15112
	authoringdateColumn.setIdentifier(new String("Recording Date"));

	DynamicGridColumn authoringHCPColumn = form.dyngrdNotes().getColumns().newColumn("Recording User", true);
	authoringHCPColumn.setWidth(150);
	authoringHCPColumn.setIdentifier(new String("Recording User"));

	DynamicGridColumn disColumn = form.dyngrdNotes().getColumns().newColumn("Discipline", true);
	disColumn.setWidth(70);
	disColumn.setIdentifier(new String("Discipline"));
	disColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(70);
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn ntColumn = form.dyngrdNotes().getColumns().newColumn("NoteType", true);
	ntColumn.setWidth(100);
	ntColumn.setIdentifier(new String("Note Type"));
	ntColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 12
Project: AvoinApotti   File: MyOrderQuestionsPopulation.java   View Source Code Vote up 5 votes
private DynamicGridColumn createAnswerColumn(int answerIndex) 
{
	DynamicGridColumn column = this.gridQuestions.getColumns().newColumn("");
	column.setDynamicWidthSupported(true);
	column.setIdentifier(new Integer(answerIndex));
	column.setWidth(100);				
	return column;
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid()
{
	form.dyngrdList().clear();		
	form.dyngrdList().setSelectable(true);		
	
	DynamicGridColumn ColDateTime = form.dyngrdList().getColumns().newColumn("Date/Time", true);
	ColDateTime.setWidth(114);	
	ColDateTime.setIdentifier(new String("DATE_TIME"));
	
	DynamicGridColumn ColDateTimeImage = form.dyngrdList().getColumns().newColumn("", true);
	ColDateTimeImage.setWidth(25);	
	ColDateTimeImage.setIdentifier(new String("DATE_TIME_IMAGE"));
	
	DynamicGridColumn ColTestName = form.dyngrdList().getColumns().newColumn("Investigation", true);
	ColTestName.setWidth(125);	
	ColTestName.setIdentifier(new String("INVESTIGATION"));
	
	DynamicGridColumn ColSpecimen = form.dyngrdList().getColumns().newColumn("Specimen", true);
	ColSpecimen.setWidth(65);	
	ColSpecimen.setIdentifier(new String("SPECIMEN"));
	
	DynamicGridColumn ColProvisonalFinal = form.dyngrdList().getColumns().newColumn("P/F", true);
	ColProvisonalFinal.setWidth(35);	
	ColProvisonalFinal.setIdentifier(new String("PROVISIONAL_FINAL"));
	
	DynamicGridColumn ColABN = form.dyngrdList().getColumns().newColumn("ABN", true);
	ColABN.setWidth(35);	
	ColABN.setIdentifier(new String("ABN"));
	
	DynamicGridColumn ColStatus = form.dyngrdList().getColumns().newColumn("Status", true);
	ColStatus.setWidth(42);	
	ColStatus.setIdentifier(new String("STATUS"));
	
	DynamicGridColumn ColDiscipline = form.dyngrdList().getColumns().newColumn("Discipline", true);
	ColDiscipline.setWidth(90);	
	ColDiscipline.setIdentifier(new String("DISCIPLINE"));
	
	DynamicGridColumn ColOrderingLocation = form.dyngrdList().getColumns().newColumn("Patient Location", true);
	ColOrderingLocation.setWidth(97);	
	ColOrderingLocation.setIdentifier(new String("ORDERING_LOCATION"));
	
	DynamicGridColumn ColClinician = form.dyngrdList().getColumns().newColumn("Resp. Clinician", true);
	ColClinician.setWidth(135);	
	ColClinician.setIdentifier(new String("CLINICIAN"));
	
	DynamicGridColumn ColSelectForPrint = form.dyngrdList().getColumns().newColumn("Print", true);
	ColSelectForPrint.setWidth(-1);	
	ColSelectForPrint.setIdentifier(new String("PRINT"));
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void formatGrid() 
{
	form.dyngrdCorrespondence().clear();
	
	form.dyngrdCorrespondence().setSelectable(true);
	
	DynamicGridColumn column = form.dyngrdCorrespondence().getColumns().newColumn("Authoring Date/Time");
	column.setIdentifier(COL_AUTH_DATE);
	column.setWidth(130);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdCorrespondence().getColumns().newColumn("Authoring HCP");
	column.setIdentifier(COL_AUTH_HCP);
	column.setWidth(140);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdCorrespondence().getColumns().newColumn("Patient Name");
	column.setIdentifier(COL_PAT_NAME);
	column.setWidth(140);
	column.setDynamicWidthSupported(true);

	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());

	column = form.dyngrdCorrespondence().getColumns().newColumn(dispIdType != null ? dispIdType.getText() : "Number");
	column.setIdentifier(COL_PAT_NUM);
	column.setWidth(70);
	column.setDynamicWidthSupported(true);

	if (form.cmbStatus().getValue() == null)
	{
		column = form.dyngrdCorrespondence().getColumns().newColumn("Status");
		column.setIdentifier(COL_STATUS);
		column.setWidth(100);
		column.setDynamicWidthSupported(true);
	}

	column = form.dyngrdCorrespondence().getColumns().newColumn("Responsible HCP");
	column.setIdentifier(COL_RESP_HCP);
	column.setWidth(140);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdCorrespondence().getColumns().newColumn("Clinical Note");
	column.setIdentifier(COL_NOTE);
	column.setWidth(-1);
}
 
Example 15
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void formatPatientResultsGrid()
{
	boolean bDisplayOptionalCol = ConfigFlag.UI.DISPLAY_OPTIONAL_COLUMN_PATIENT_SEARCH.getValue();
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); 
	
	form.dyngrdPatient().clear();
	form.dyngrdPatient().setReadOnly(true);//WDEV-15958
	
	form.dyngrdPatient().setSelectable(true);
	
	DynamicGridColumn column = form.dyngrdPatient().getColumns().newColumn("Surname");
	column.setIdentifier(COL_SURNAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatient().getColumns().newColumn("Forename");
	column.setIdentifier(COL_FORENAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn(dispIdType.getText());
	column.setIdentifier(COL_IDENTIFIER);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Sex");
	column.setIdentifier(COL_SEX);
	column.setWidth(50);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Age");
	column.setIdentifier(COL_AGE);
	column.setWidth(35);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);//WDEV-15958
	
	column = form.dyngrdPatient().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);//WDEV-15958

	column = form.dyngrdPatient().getColumns().newColumn("Address");
	column.setIdentifier(COL_ADDRESS);
	if (bDisplayOptionalCol)
		column.setWidth(275);
	else
		column.setWidth(-1);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	if (bDisplayOptionalCol)
	{
		String strOptional = "Ward"; // Default Column Name
		if(ConfigFlag.UI.PAT_SEARCH_OPTIONAL_COL_TYPE.getValue().equalsIgnoreCase("CONTACT")) 
		{
			strOptional = "Contact No.";
		}
		column = form.dyngrdPatient().getColumns().newColumn(strOptional);
		column.setIdentifier(COL_OPTIONAL);
		column.setWidth(-1);
	}
	
}
 
Example 16
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void populateSummaryGridData()
{
	form.dyngrd1().clear();
	
	form.dyngrd1().setSelectable(false);
	form.dyngrd1().setReadOnly(false);
	
	DynamicGridColumn column = form.dyngrd1().getColumns().newColumn(" ");
	column.setIdentifier(COL_INFO);
	column.setWidth(150);
	column.setBackColor(Color.LightSteelBlue);

	
	
	column = form.dyngrd1().getColumns().newColumn("Waiting");
	column.setIdentifier(COL_WAITING);
	column.setWidth(90);
	
	column = form.dyngrd1().getColumns().newColumn("Triage");
	column.setIdentifier(COL_TRIAGE);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 1");
	column.setIdentifier(COL_ZONE1);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 2");
	column.setIdentifier(COL_ZONE2);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 3");
	column.setIdentifier(COL_ZONE3);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Resus");
	column.setIdentifier(COL_RESUS);
	column.setWidth(90);
	
	column = form.dyngrd1().getColumns().newColumn("Overall");
	column.setIdentifier(COL_OVERALL);
	column.setWidth(90);
	column.setBackColor(Color.LightSeaGreen);

	populateSummaryRows();

			
}
 
Example 17
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void addColumnQuestion(WhiteBoardQuestionConfigVo whiteBoardQuestionConfigVo)
{
	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn(whiteBoardQuestionConfigVo.getColumnHeaderText());
	column.setWidth(whiteBoardQuestionConfigVo.getColumnWidth());
	column.setIdentifier(whiteBoardQuestionConfigVo);
}
 
Example 18
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynPatGrid()
{
	form.dyngrdPatients().clear();

	DynamicGridColumn column;

	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());

	form.dyngrdPatients().setSelectable(true);
	
	form.dyngrdPatients().setHeaderHeight(40);
	
	column = form.dyngrdPatients().getColumns().newColumn(dispIdType.getText());
	column.setIdentifier(COL_IDENTIFIER);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Surname");
	column.setIdentifier(COL_SURNAME);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Forename");
	column.setIdentifier(COL_FORENAME);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(65);
	column.setCanGrow(false);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Ward");
	column.setIdentifier(COL_WARD);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	if (!form.chkInpatientOnly().getValue())
	{
		column = form.dyngrdPatients().getColumns().newColumn("Discharge\nDate");
		column.setIdentifier(COL_DISCHARGEDATE);
		column.setWidth(78);
		column.setCanGrow(true);
		column.setSortMode(SortMode.MANUAL);
	}
	column = form.dyngrdPatients().getColumns().newColumn("Consultant");
	column.setIdentifier(COL_CONSULTANT);
	column.setWidth(90);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Worklist Status");
	column.setIdentifier(COL_STATUS);
	column.setWidth(-1);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Hours to\nBreach");
	column.setIdentifier(COL_HOURSTOBREACH);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Dementia/\nDelirium");
	column.setIdentifier(COL_ICON);
	column.setWidth(-1);
	column.setCanGrow(false);
	column.setSortMode(SortMode.MANUAL);

}
 
Example 19
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Function used to configure Patient ICP dynamic grid
 */
protected void initializePatientICPDynamicGrid()
{
	// Clear dynamic grid (rows & columns)
	form.dyngrdICP().clear();
	
	// Create columns
	DynamicGridColumn column = form.dyngrdICP().getColumns().newColumn("");
	column.setIdentifier(COL_PRESENTATION);
	column.setWidth(300);
	column.setCanGrow(false);
	column.setDynamicWidthSupported(true);
	
	column = form.dyngrdICP().getColumns().newColumn("");
	column.setIdentifier(COL_CONTER_SIGNATURE);
	column.setWidth(25);
	column.setDynamicWidthSupported(true);
	column.setCanGrow(false);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setAlignment(Alignment.CENTER);
	
	column = form.dyngrdICP().getColumns().newColumn("Status");
	column.setIdentifier(COL_STATUS);
	column.setWidth(40);
	column.setDynamicWidthSupported(true);
	column.setCanGrow(false);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setAlignment(Alignment.CENTER);
	
	column = form.dyngrdICP().getColumns().newColumn("");
	column.setIdentifier(COL_ACTION_DETAILS);
	column.setWidth(25);
	column.setDynamicWidthSupported(true);
	column.setCanGrow(false);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setAlignment(Alignment.CENTER);
	
	column = form.dyngrdICP().getColumns().newColumn("");
	column.setIdentifier(COL_HELP);
	column.setWidth(25);
	column.setDynamicWidthSupported(true);
	column.setCanGrow(false);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setAlignment(Alignment.CENTER);
}
 
Example 20
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid()
	{
		// Build dynamic grid columns		
		DynamicGridColumn column = form.dyngrdMedications().getColumns().newColumn("Medication");
		column.setIdentifier(COL_MEDICATION_NAME);
		column.setWidth(200);
		column.setAlignment(Alignment.LEFT);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setCanGrow(true);
		
		column = form.dyngrdMedications().getColumns().newColumn("Dose");
		column.setIdentifier(COL_DOSE);
		column.setWidth(80);
		column.setAlignment(Alignment.CENTER);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setCanGrow(false);
		
		column = form.dyngrdMedications().getColumns().newColumn("Frequency");
		column.setIdentifier(COL_FREQUENCY);
		column.setWidth(80);
		column.setAlignment(Alignment.CENTER);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setCanGrow(false);
		
		column = form.dyngrdMedications().getColumns().newColumn("Route");
		column.setIdentifier(COL_ROUTE);
		column.setWidth(80);
		column.setAlignment(Alignment.CENTER);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setCanGrow(false);
		
//		column = form.dyngrdMedications().getColumns().newColumn("Commenced by");
//		column.setIdentifier(COL_COMMENCED_BY);
//		column.setWidth(180);
//		column.setAlignment(Alignment.LEFT);
//		column.setHeaderAlignment(Alignment.CENTER);
//		column.setCanGrow(true);

//		column = form.dyngrdMedications().getColumns().newColumn("Commenced date");
//		column.setIdentifier(COL_COMMENCED_DATE);
//		column.setWidth(120);
//		column.setAlignment(Alignment.LEFT);
//		column.setHeaderAlignment(Alignment.CENTER);
//		column.setCanGrow(false);
		
		column = form.dyngrdMedications().getColumns().newColumn("Copy");
		column.setIdentifier(COL_SELECT);
		column.setWidth(80);
		column.setAlignment(Alignment.CENTER);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setCanGrow(false);
	}