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

The following are Jave code examples for showing how to use setCanGrow() 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: UserAssessmentInstHelper.java   View Source Code Vote up 6 votes
private void createStaticColumns(boolean flatView, Integer questionColumnWidth, boolean isComplete) 
{
	if(flatView && this.questionImage != null && this.mandatoryQuestionImage != null)
		createImageColumnWhenFlat();
	
	DynamicGridColumn questionColumn = this.grid.getColumns().newColumn(flatView ? "Question" : "Group / Question", QUESTION_COLUMN);
	questionColumn.setCanGrow(false);
	questionColumn.setWidth(questionColumnWidth == null ? (isDPP ? DEFAULT_QUESTION_COLUMN_WIDTH - 240 : DEFAULT_QUESTION_COLUMN_WIDTH) : questionColumnWidth.intValue());	
			
	if(!isComplete)
	{
		DynamicGridColumn buttonColumn = this.grid.getColumns().newColumn("", BUTTON_COLUMN);
		buttonColumn.setAlignment(Alignment.CENTER);
		buttonColumn.setCanGrow(false);
		buttonColumn.setWidth(0);			
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initDynGridComments()
{
	form.lyrSuitable().tabPageComments().dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time",COLUMN_ADTE,true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);
		
	newColumn = columns.newColumn("Authoring HCP",COLUMN_AHCP,true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);
			
	newColumn = columns.newColumn("Comments",COLUMN_COMMENTS,true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);
	
	form.lyrSuitable().tabPageComments().dyngrdComments().setSelectable(true);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);	
	
	DynamicGridColumn column;
	column = form.dyngrdNotes().getColumns().newColumn("Date", COL_DATE);
	column.setWidth(100);		
	column.setCanGrow(false);
	
	column = form.dyngrdNotes().getColumns().newColumn("HCP", COL_USER);
	column.setWidth(200);
	column.setCanGrow(true);
	
	column = form.dyngrdNotes().getColumns().newColumn("Follow-Up Type", COL_NOTES_TYPE);
	column.setWidth(100);
	column.setCanGrow(true);
	
	column = form.dyngrdNotes().getColumns().newColumn("Notes", COL_NOTES);
	column.setWidth(-1);
	column.setCanGrow(true);
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initDynGrid()
{
	DynamicGridColumn newColumn = form.dyngrdTTA().getColumns().newColumn("TTA Record/MedicationName", NAME_IDENTIFIER);
	newColumn.setCanGrow(true);
	newColumn.setWidth(NAME_WIDTH);
	newColumn = form.dyngrdTTA().getColumns().newColumn("Form", FORM_IDENTIFIER);
	newColumn.setWidth(FORM_WIDTH);
	newColumn = form.dyngrdTTA().getColumns().newColumn("Route", ROUTE_IDENTIFIER);
	newColumn.setWidth(ROUTE_WIDTH);
	newColumn = form.dyngrdTTA().getColumns().newColumn("Dose", DOSE_IDENTIFIER);
	newColumn.setWidth(DOSE_WIDTH);
	newColumn = form.dyngrdTTA().getColumns().newColumn("Frequency", FREQUENCY_IDENTIFIER);
	newColumn.setWidth(FREQUENCY_WIDTH);
	newColumn = form.dyngrdTTA().getColumns().newColumn("Select", SELECT_IDENTIFIER);
	newColumn.setWidth(SELECT_WIDTH);
	newColumn.setDynamicWidthSupported(true);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initialiseQuestionDynamicGrid()
{
	int selectSize = isDialog() ? 100 : 0;
	DynamicGridColumn colIcon = form.lyrFindings().tabView().dyngrdAssocQuestions().getColumns().newColumn(" ", COLICONQUESTION);
	colIcon.setWidth(25);
	colIcon.setCanGrow(false);

	DynamicGridColumn colQuestion = form.lyrFindings().tabView().dyngrdAssocQuestions().getColumns().newColumn("Question", COLQUESTION);
	colQuestion.setWidth(450 - selectSize);

	DynamicGridColumn colShortText = form.lyrFindings().tabView().dyngrdAssocQuestions().getColumns().newColumn("Long Text", COLSHORTEXT);
	colShortText.setWidth(300 - selectSize);

	DynamicGridColumn colStatus = form.lyrFindings().tabView().dyngrdAssocQuestions().getColumns().newColumn("Status", COLQUESTIONSTATUS);
	colStatus.setWidth(isDialog() ? 225 - selectSize : -1);
	
	DynamicGridColumn coSelect = form.lyrFindings().tabView().dyngrdAssocQuestions().getColumns().newColumn("Select", COLQUESTIONSELECT);
	coSelect.setWidth(isDialog() ? -1 : 0);
	coSelect.setAlignment(Alignment.CENTER);
	coSelect.setHeaderAlignment(Alignment.CENTER);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void setDynamicGridColumns()
{
	DynamicGridColumn column = form.dyngrdCollect().getColumns().newColumn("Details", PATIENT_COL);
	column.setWidth(245);
	column.setCanGrow(true);

	column = form.dyngrdCollect().getColumns().newColumn("Info", INFO_COL);
	column.setWidth(40);
	
	column = form.dyngrdCollect().getColumns().newColumn("Actioned", ACTIONED_COL);
	column.setWidth(55);
	column.setAlignment(Alignment.CENTER);

	column = form.dyngrdCollect().getColumns().newColumn("Collected", COLLECTED_COL);
	column.setWidth(60);
	column.setAlignment(Alignment.CENTER);

	column = form.dyngrdCollect().getColumns().newColumn("Date", DATE_COL);
	column.setWidth(80);

	column = form.dyngrdCollect().getColumns().newColumn("Time", TIME_COL);
	column.setWidth(40);

	column = form.dyngrdCollect().getColumns().newColumn("Collector", QUERY_COL);
	column.setWidth(100);
	column.setAlignment(Alignment.RIGHT);

	column = form.dyngrdCollect().getColumns().newColumn("Collector's Comments", TEXT_COL);
	column.setWidth(135);
	
	column = form.dyngrdCollect().getColumns().newColumn("Save", BTN_COL);
	column.setAlignment(Alignment.CENTER);
	column.setWidth(-1);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initDynAssessmentGrid()
{
	form.lyrTabs().tabAssessment().dyngrdAssessments().clear();

	DynamicGridColumn column_parent = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().getByIdentifier(HEADER_COLUMN);
	if (column_parent == null)
		column_parent = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().newColumn("Patient Assessment", HEADER_COLUMN);
	column_parent.setWidth(HEADER_COLUMN_WIDTH);

	DynamicGridColumn column_status = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().getByIdentifier(STATUS_COLUMN);
	if (column_status == null)
		column_status = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().newColumn("Status", STATUS_COLUMN);
	column_status.setWidth(STATUS_COLUMN_WIDTH);

	DynamicGridColumn column_reason = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().getByIdentifier(REASON_COLUMN);
	if (column_reason == null)
		column_reason = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().newColumn("Reason", REASON_COLUMN);
	column_reason.setWidth(REASON_COLUMN_WIDTH);

	DynamicGridColumn column_url_help = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().getByIdentifier(HELP_URL_COLUMN);
	if (column_url_help == null)
		column_url_help = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().newColumn("URL", HELP_URL_COLUMN);
	column_url_help.setWidth(HELP_URL_COLUMN_WIDTH);
	column_url_help.setCanGrow(false);
	column_url_help.setHeaderAlignment(Alignment.CENTER);
	column_url_help.setAlignment(Alignment.CENTER);

	DynamicGridColumn column_authoring = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().getByIdentifier(AUTHORING_COLUMN);
	if (column_authoring == null)
		column_authoring = form.lyrTabs().tabAssessment().dyngrdAssessments().getColumns().newColumn("Authoring Information", AUTHORING_COLUMN);
	column_authoring.setWidth(AUTHORING_COLUMN_WIDTH);
	column_authoring.setCanGrow(false);
}
 
Example 8
Project: AvoinApotti   File: MyOrderQuestionsPopulation.java   View Source Code Vote up 5 votes
private void createStaticColumns()
{
	String columnHeader = questionOrInformation.equals("Information")?questionOrInformation:"Question / Information";
	DynamicGridColumn questionColumn = this.gridQuestions.getColumns().newColumn(columnHeader, QUESTION_COLUMN);
	questionColumn.setCanGrow(false);
	questionColumn.setWidth(DEFAULT_QUESTION_COLUMN_WIDTH);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void setDynamicGridColumns()
{
	DynamicGridColumn column = form.dyngrdCollect().getColumns().newColumn("Collection Time Date / Patient ", PATIENT_COL);
	column.setWidth(275);
	column.setCanGrow(true);

	column = form.dyngrdCollect().getColumns().newColumn("Info", INFO_COL);
	column.setWidth(40);
	column.setAlignment(Alignment.CENTER);

	column = form.dyngrdCollect().getColumns().newColumn("Print", PRINT_COL);
	column.setWidth(30);
	column.setAlignment(Alignment.CENTER);

	column = form.dyngrdCollect().getColumns().newColumn("Collected", COLLECTED_COL);
	column.setWidth(60);
	column.setAlignment(Alignment.CENTER);

	column = form.dyngrdCollect().getColumns().newColumn("Date", DATE_COL);
	column.setWidth(80);

	column = form.dyngrdCollect().getColumns().newColumn("Time", TIME_COL);
	column.setWidth(40);

	column = form.dyngrdCollect().getColumns().newColumn("Collector", QUERY_COL);
	column.setWidth(100);

	column = form.dyngrdCollect().getColumns().newColumn("Collector's Comments", TEXT_COL);
	column.setWidth(135);

	column = form.dyngrdCollect().getColumns().newColumn("Save", BTN_COL);
	column.setAlignment(Alignment.CENTER);
	column.setWidth(-1);
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initialiseCurrentDynamicGrid()
{
	form.dyngrdDisplay().clear();
	
	clearTabDeviceInstanceControls();
	clearTabVipInstanceControls();
	
	form.ctnDetail().lyrDetails().showtabDevice();
	form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
	form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);
	
	DynamicGridColumn colDevice = null;
	DynamicGridColumn colVip = null;
	DynamicGridColumn colSite = null;
	DynamicGridColumn colInsertedDate = null;
	DynamicGridColumn colInsertedBy	= null;
	
	colDevice = form.dyngrdDisplay().getColumns().newColumn("Device", COLDEVICE);
	colVip = form.dyngrdDisplay().getColumns().newColumn("VIP Score", COLVIP);
	colSite = form.dyngrdDisplay().getColumns().newColumn("Site", COLSITE);
	colInsertedDate = form.dyngrdDisplay().getColumns().newColumn("Inserted Date", COLINSERTEDDATE);
	colInsertedBy = form.dyngrdDisplay().getColumns().newColumn("Inserted By", COLINSERTEDBY);
	
	colDevice.setWidth(200);
	colVip.setWidth(100);
	colSite.setWidth(100);
	colInsertedDate.setWidth(120);
	colInsertedBy.setWidth(170);
	
	colDevice.setCanGrow(false);
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initialiseHistoricDynamicGrid()
{
	form.dyngrdDisplay().clear();
	
	clearTabDeviceInstanceControls();
	clearTabVipInstanceControls();	
	
	form.ctnDetail().lyrDetails().showtabDevice();
	form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
	form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);
		
	DynamicGridColumn colDevice = null;
	DynamicGridColumn colVip = null;
	DynamicGridColumn colSite = null;
	DynamicGridColumn colInsertedDate = null;
	DynamicGridColumn colInsertedBy	= null;
	DynamicGridColumn colRemovalDate	= null;
	DynamicGridColumn colRemovalBy	= null;
	
	colDevice = form.dyngrdDisplay().getColumns().newColumn("Device", COLDEVICE);
	colVip = form.dyngrdDisplay().getColumns().newColumn("VIP Score", COLVIP);
	colSite = form.dyngrdDisplay().getColumns().newColumn("Site", COLSITE);
	colInsertedDate = form.dyngrdDisplay().getColumns().newColumn("Inserted Date", COLINSERTEDDATE);
	colInsertedBy = form.dyngrdDisplay().getColumns().newColumn("Inserted By", COLINSERTEDBY);
	colRemovalDate = form.dyngrdDisplay().getColumns().newColumn("Removal Date", COLREMOVALDATE);
	colRemovalBy = form.dyngrdDisplay().getColumns().newColumn("Removal By", COLREMOVALBY);
	
	colDevice.setWidth(200);
	colVip.setWidth(100);
	colSite.setWidth(100);
	colInsertedDate.setWidth(120);
	colInsertedBy.setWidth(170);
	colRemovalDate.setWidth(120);
	colRemovalBy.setWidth(170);
	
	colDevice.setCanGrow(false);
}
 
Example 12
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdPrescription().clear();
	form.dyngrdPrescription().setSelectable(true);	
	
	DynamicGridColumn column;
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DATE);
	column.setWidth(200);		
	column.setCanGrow(false);
	column.setReadOnly(true);
		
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_USER);
	column.setWidth(200);
	column.setCanGrow(true);
			
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DRUG);
	column.setWidth(200);		
	column.setCanGrow(false);
	
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_FREQUENCY);
	column.setWidth(100);
	column.setCanGrow(true);
	
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DAYS_SUPPLY);
	column.setWidth(60);
	column.setCanGrow(true);
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);	
	DynamicGridColumn column;
	
	column = form.dyngrdNotes().getColumns().newColumn("Type", COL_TYPE);
	column.setWidth(120);
	column.setCanGrow(true);
	
	column = form.dyngrdNotes().getColumns().newColumn("Authoring HCP ", COL_USER);
	column.setWidth(150);
	column.setCanGrow(true);
	
	
	column = form.dyngrdNotes().getColumns().newColumn("Authoring DateTime", COL_DATETIME);
	column.setWidth(120);		
	column.setCanGrow(false);
					
	column = form.dyngrdNotes().getColumns().newColumn("Report Text ", COL_NOTE);
	column.setWidth(300);
	column.setCanGrow(true);
	
	column = form.dyngrdNotes().getColumns().newColumn("Status", COL_STATUS);
	column.setWidth(-1);
	column.setCanGrow(true);				
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initDynAssessmentGrid()
{
	form.dyngrdAssessments().clear();
	
	DynamicGridColumn column_parent = form.dyngrdAssessments().getColumns().getByIdentifier(HEADER_COLUMN);
	if(column_parent == null)
		column_parent = form.dyngrdAssessments().getColumns().newColumn("Patient Assessment", HEADER_COLUMN);
	column_parent.setWidth(HEADER_COLUMN_WIDTH);
	column_parent.setCanGrow(true);
			
	DynamicGridColumn column_status = form.dyngrdAssessments().getColumns().getByIdentifier(STATUS_COLUMN);
	if(column_status == null)
		column_status = form.dyngrdAssessments().getColumns().newColumn("Status", STATUS_COLUMN);
	column_status.setWidth(STATUS_COLUMN_WIDTH);
	column_status.setCanGrow(false);
					
	DynamicGridColumn column_reason = form.dyngrdAssessments().getColumns().getByIdentifier(REASON_COLUMN);
	if(column_reason == null)
		column_reason = form.dyngrdAssessments().getColumns().newColumn("Reason", REASON_COLUMN);
	column_reason.setWidth(REASON_COLUMN_WIDTH);
	column_reason.setCanGrow(false);
			
	DynamicGridColumn column_url_help = form.dyngrdAssessments().getColumns().getByIdentifier(HELP_URL_COLUMN);
	if(column_url_help == null)
		column_url_help = form.dyngrdAssessments().getColumns().newColumn("URL", HELP_URL_COLUMN);
	column_url_help.setWidth(HELP_URL_COLUMN_WIDTH);
	column_url_help.setCanGrow(false);
	column_url_help.setHeaderAlignment(Alignment.CENTER);
	column_url_help.setAlignment(Alignment.CENTER);
	
	DynamicGridColumn column_authoring = form.dyngrdAssessments().getColumns().getByIdentifier(AUTHORING_COLUMN);
	if(column_authoring == null)
		column_authoring = form.dyngrdAssessments().getColumns().newColumn("Authoring Information", AUTHORING_COLUMN);
	column_authoring.setWidth(AUTHORING_COLUMN_WIDTH);
	column_authoring.setCanGrow(false);
}
 
Example 15
Project: AvoinApotti   File: UserAssessmentInstHelper.java   View Source Code Vote up 5 votes
private DynamicGridColumn createColumn(String text, Integer identifier)
{
	DynamicGridColumn column = this.grid.getColumns().newColumn(text, identifier);
	column.setDynamicWidthSupported(false);
	column.setCanGrow(false);
	column.setWidth(50);
	column.setAlignment(Alignment.CENTER);
	column.setHeaderAlignment(Alignment.CENTER);
	return column;
}
 
Example 16
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private DynamicGridColumn createColumn(String text, Integer identifier)
{
	DynamicGridColumn column = this.grid.getColumns().newColumn(text, identifier);
	column.setDynamicWidthSupported(false);
	column.setCanGrow(false);
	column.setWidth(50);
	column.setAlignment(Alignment.CENTER);
	return column;
}
 
Example 17
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 18
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().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);
	
	column = form.dyngrdPatient().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	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 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 createdDynamicGridList()
{
	form.dyngrdList().getRows().clear();
	form.dyngrdList().setUnselectable(Boolean.TRUE);
	DynamicGridColumn columnName = form.dyngrdList().getColumns().newColumn("Start Date / End Date", COLUMN_STARTDATE_ENDDATE);
	
	if (Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName.setWidth(375);
	}
	else
		columnName.setWidth(355);
		
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	columnName.setSortMode(SortMode.AUTOMATIC);
	
	columnName = form.dyngrdList().getColumns().newColumn("Specialty / Context", COLUMN_SPECIALTY);
	columnName.setWidth(150);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	columnName = form.dyngrdList().getColumns().newColumn("Contact Type", COLUMN_CONTACT_TYPE);
	columnName.setWidth(120);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	columnName = form.dyngrdList().getColumns().newColumn("Responsible HCP / Seen By", COLUMN_RMO);
	
	if (Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName.setWidth(-1);
	}
	else
		columnName.setWidth(170);
		
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	if (Boolean.FALSE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName = form.dyngrdList().getColumns().newColumn("", COLUMN_HISTORY);
		columnName.setWidth(-1);
		columnName.setAlignment(Alignment.CENTER);
		columnName.setReadOnly(true);
	}
}