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

The following are Jave code examples for showing how to use setAlignment() 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 initializeDynamicGrid()
{
	// Allow un-selection
	form.dyngrdRules().setUnselectable(true);
	
	// Set up the columns
	DynamicGridColumn column;
	column = form.dyngrdRules().getColumns().newColumn("", COL_IMAGE);
	column.setWidth(30);
	column.setAlignment(Alignment.RIGHT);
	column.setCanGrow(false);
	
	column = form.dyngrdRules().getColumns().newColumn("Rule Name", COL_RULE_NAME);
	column.setWidth(200);
	column.setCanGrow(true);
	
	column = form.dyngrdRules().getColumns().newColumn("Entity", COL_RULE_BUSINESS_OBJECT);
	column.setWidth(200);
	column.setCanGrow(true);
	
	column = form.dyngrdRules().getColumns().newColumn("Status", COL_RULE_STATUS);
	column.setWidth(60);
	column.setCanGrow(false);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void createStaticColumns(boolean isComplete)
{
	if (this.questionImage != null && this.mandatoryQuestionImage != null)
		createImageColumnWhenFlat();

	DynamicGridColumn questionColumn = this.grid.getColumns().newColumn("Question", QUESTION_COLUMN);
	questionColumn.setCanGrow(false);
	questionColumn.setWidth(DEFAULT_GRAPHIC_QUESTION_COLUMN_WIDTH);

	if (!isComplete)
	{
		DynamicGridColumn buttonColumn = this.grid.getColumns().newColumn("", BUTTON_COLUMN);
		buttonColumn.setAlignment(Alignment.CENTER);
		buttonColumn.setCanGrow(false);
		buttonColumn.setWidth(0);
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
public void initialize() throws FormOpenException
{
	super.initialize();
	
	// Set up the dynamic grid
	DynamicGridColumn column;
	
	// First column (IMAGE)
	column = form.dyngrdAssociations().getColumns().newColumn("", COL_IMAGE);
	column.setCanGrow(false);
	column.setWidth(60);
	column.setAlignment(Alignment.RIGHT);
	
	// Second column (ASSOCIATION)
	column = form.dyngrdAssociations().getColumns().newColumn(/*"Associations"*/"", COL_ASSOCIATION);
	column.setCanGrow(true);
	column.setWidth(-1);
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
@Override
public void initialize() throws FormOpenException
{
	super.initialize();
	
	// Set up the dynamic grid
	DynamicGridColumn column;
	
	// First column (Image)
	column = form.dyngrdDetails().getColumns().newColumn("", COL_IMAGE);
	column.setCanGrow(false);
	column.setWidth(60);
	column.setAlignment(Alignment.RIGHT);

	// Second column (AccessCategory)
	column = form.dyngrdDetails().getColumns().newColumn("Access Category", COL_ACCESS_CATEGORY);
	column.setCanGrow(true);
	column.setWidth(240);

	// Third column (Access Rights)
	column = form.dyngrdDetails().getColumns().newColumn("Access Rights", COL_ACCESSRIGHTS);
	column.setCanGrow(false);
	column.setWidth(80);
	column.setAlignment(Alignment.CENTER);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initialiseEventTargetManagementDynamicGrid()
{
	DynamicGrid dynGrid = form.lyrTargets().tabEventTargets().dyngrdEventTargetManagement();
	form.lyrTargets().tabEventTargets().dyngrdEventTargetManagement().clear();
	
	DynamicGridColumn colTargetName = null;
	DynamicGridColumn colJourneyTarget = null;
	DynamicGridColumn colSetToInscope = null;
	DynamicGridColumn colStatus = null;
	
	colTargetName = dynGrid.getColumns().newColumn("Target Name", COLNAME);
	colSetToInscope = dynGrid.getColumns().newColumn("Set To In Scope", COLSETTOINSCOPE);
	colJourneyTarget = dynGrid.getColumns().newColumn("Set Journey Target Status", COLJOURNEYTARGET);
	colStatus = dynGrid.getColumns().newColumn("Status", COLSTATUS);
	
	colTargetName.setWidth(300);
	colSetToInscope.setWidth(100);
	colSetToInscope.setAlignment(Alignment.CENTER);
	colJourneyTarget.setWidth(170);
	colStatus.setWidth(-1);
}
 
Example 6
Project: AvoinApotti   File: Logic.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 - 50 : 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 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void createDynamicGridColumns()
{
	DynamicGridColumn col = form.dyngrdCollect().getColumns().newColumn("Location", LOCATION_COLUMN);
	col.setWidth(300);
	
	//WDEV-16581
	col = form.dyngrdCollect().getColumns().newColumn("Print", PRINT_COL);
	col.setWidth(30);
	col.setAlignment(Alignment.CENTER);
	
	col = form.dyngrdCollect().getColumns().newColumn("Collected", COLLECTED_COLUMN);
	col.setWidth(60);
	col.setAlignment(Alignment.CENTER);
	col = form.dyngrdCollect().getColumns().newColumn("Date", DATE_COLUMN);
	col.setWidth(80);
	col = form.dyngrdCollect().getColumns().newColumn("Time", TIME_COLUMN);
	col.setWidth(40);
	col = form.dyngrdCollect().getColumns().newColumn("Collector", PHLEBOTOMIST_COLUMN);
	col.setWidth(140);
	col.setAlignment(Alignment.RIGHT);
	col = form.dyngrdCollect().getColumns().newColumn("Collector's comments", COMMENTS_COLUMN);
	col.setWidth(130);
	col = form.dyngrdCollect().getColumns().newColumn(" ",BUTTON_COLUMN);
	col.setWidth(-1);
	
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initializeSelectedProceduresGrid()
{
	form.dyngrdProcedures().clear();

	form.dyngrdProcedures().setSelectable(true);
	
	DynamicGridColumn colProcedure = form.dyngrdProcedures().getColumns().newColumn("Procedure", COLPROCEDURE);//WDEV-14006
	colProcedure.setWidth(550);//WDEV-14006
	colProcedure.setReadOnly(true);//WDEV-14006
	
	DynamicGridColumn colMain = form.dyngrdProcedures().getColumns().newColumn("Primary", COLMAIN);
	colMain.setWidth(50);
	colMain.setAlignment(Alignment.CENTER);

	DynamicGridColumn colImage = form.dyngrdProcedures().getColumns().newColumn("", COLIMAGE);
	colImage.setWidth(-1);
	colImage.setAlignment(Alignment.CENTER);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
/**
 * 
 */
private void initializeDynamicGrid()
{
	// Allow un-selection
	form.dyngrdRules().setUnselectable(true);

	// Set up the columns
	DynamicGridColumn column;

	column = form.dyngrdRules().getColumns().newColumn("", COL_IMAGE);
	column.setWidth(20);
	column.setAlignment(Alignment.RIGHT);
	column.setCanGrow(false);

	column = form.dyngrdRules().getColumns().newColumn("Name", COL_RULE_NAME);
	column.setWidth(300);
	column.setAlignment(Alignment.LEFT);
	column.setCanGrow(true);

	column = form.dyngrdRules().getColumns().newColumn("Category", COL_RULE_CATEGORY);
	column.setWidth(200);
	column.setCanGrow(true);

	column = form.dyngrdRules().getColumns().newColumn("Entity", COL_RULE_BUSINESS_OBJECT);
	column.setWidth(200);
	column.setCanGrow(true);

	column = form.dyngrdRules().getColumns().newColumn("Status", COL_RULE_STATUS);
	column.setWidth(60);
	column.setCanGrow(false);
}
 
Example 10
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 11
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 12
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 13
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDyngrdSystemJobs() 
{
	form.dyngrdSystemJobs().clear();
	form.dyngrdSystemJobs().setSelectable(true);
	
	DynamicGridColumn colImg = form.dyngrdSystemJobs().getColumns().newColumn("", COLIMG);
	colImg.setWidth(45);
	colImg.setCanGrow(false);
	colImg.setAlignment(Alignment.CENTER);	
	
	DynamicGridColumn colName = form.dyngrdSystemJobs().getColumns().newColumn("Available Jobs", COLNAME);
	colName.setWidth(-1);
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid() 
{	
	DynamicGrid dynGrid = form.dyngrdDisplay();
	dynGrid.clear();
	DynamicGridColumn colPatient = null;	
	colPatient = dynGrid.getColumns().newColumn("Patient", COLNAME);
	colPatient.setWidth(250);		
	colPatient.setAlignment(Alignment.CENTER);		
}
 
Example 15
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGridColumns()
{
	DynamicGridColumn cabType = form.dyngrdClinInfo().getColumns().newColumn("Clinical Info", COLTYPE);
	cabType.setWidth(300);
	cabType.setReadOnly(true);

	DynamicGridColumn recAwait = form.dyngrdClinInfo().getColumns().newColumn("Awaiting", COLAWAIT);
	recAwait.setWidth(60);
	recAwait.setAlignment(Alignment.CENTER);

	DynamicGridColumn colRecieve = form.dyngrdClinInfo().getColumns().newColumn("Received", COLREC);
	colRecieve.setWidth(-1);
	colRecieve.setAlignment(Alignment.CENTER);
}
 
Example 16
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void addColumnAnswered(DynamicGrid dynGrid)
{
	DynamicGridColumn newColumn = dynGrid.getColumns().newColumn("Answered", COLUMN_SELECT);
	newColumn.setWidth(-1);
	newColumn.setAlignment(Alignment.CENTER);
	newColumn.setHeaderAlignment(Alignment.CENTER);
}
 
Example 17
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void addNonStandardColumn(DynamicGrid dynGrid)
{
	DynamicGridColumn newColumn = dynGrid.getColumns().newColumn("Is Non Standard", COLUMN_NONSTANDARD);
	newColumn.setWidth(-1);
	newColumn.setAlignment(Alignment.CENTER);
	newColumn.setHeaderAlignment(Alignment.CENTER);		
}
 
Example 18
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 19
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void formatProceduresGrid()
{
	form.dyngrdProcedure().clear();

	form.dyngrdProcedure().setSelectable(true);

	DynamicGridColumn column = form.dyngrdProcedure().getColumns().newColumn("Procedure Description");
	column.setIdentifier(COL_PROC_DESC);
	column.setWidth(250);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("Complication");
	column.setIdentifier(COL_COMPLICATION_0WIDTH);
	column.setWidth(0);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("Site");
	column.setIdentifier(COL_SITE);
	column.setWidth(70);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("PMH");
	column.setIdentifier(COL_PMH);
	column.setWidth(40);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("Status(Outcome)");
	column.setIdentifier(COL_STATUS);
	column.setWidth(100);

	column = form.dyngrdProcedure().getColumns().newColumn("Associations");
	column.setIdentifier(COL_ASSOCS);
	column.setWidth(75);
	column.setAlignment(Alignment.CENTER);
	// column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("Date Performed");
	column.setIdentifier(COL_DATE_PERF_0WIDTH);
	column.setWidth(0);
	column.setDynamicWidthSupported(true);

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

	column = form.dyngrdProcedure().getColumns().newColumn("Authoring Date");
	column.setIdentifier(COL_AUTH_DATE);
	column.setWidth(95);
	column.setDynamicWidthSupported(true);

	column = form.dyngrdProcedure().getColumns().newColumn("");
	column.setIdentifier(COL_AUDIT);
	column.setWidth(-1);
	column.setAlignment(Alignment.CENTER);
	column.setDynamicWidthSupported(true);
}
 
Example 20
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);
}