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

The following are Jave code examples for showing how to use setHeaderAlignment() 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 initializeDymanicGrid()
{
	form.dyngrdMotor().clear();
	form.dyngrdMotor().setSelectable(false);// WDEV-12953
	DynamicGridColumn column;

	column = form.dyngrdMotor().getColumns().newColumn("Motor Area", COL_MOTOR_AREA);
	column.setWidth(270);
	column.setCanGrow(true);

	column = form.dyngrdMotor().getColumns().newColumn("Right", COL_RIGHT);
	column.setAlignment(Alignment.CENTER);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setDynamicWidthSupported(true);
	column.setWidth(STANDARD_COLUMN_WIDTH);

	column = form.dyngrdMotor().getColumns().newColumn("Left", COL_LEFT);
	column.setWidth(STANDARD_COLUMN_WIDTH);
	column.setAlignment(Alignment.CENTER);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setCanGrow(false);

	column = form.dyngrdMotor().getColumns().newColumn("", COL_DUMMY);// WDEV-12953
	column.setDynamicWidthSupported(true);// WDEV-12953
	column.setWidth(1);// WDEV-12953
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeDepartmentGrid() 
{
	form.dyngrdDepartments().clear();

	form.dyngrdDepartments().setSelectable(true);
	
	DynamicGridColumn colDepartment = form.dyngrdDepartments().getColumns().newColumn("Department Type", COLDEPARTMENT);
	colDepartment.setWidth(900);
	colDepartment.setReadOnly(true);
	
	DynamicGridColumn colSelected = form.dyngrdDepartments().getColumns().newColumn("Selected", COLSELECTED);
	colSelected.setWidth(100);
	colSelected.setHeaderAlignment(Alignment.CENTER);
	colSelected.setAlignment(Alignment.CENTER);

	DynamicGridColumn colDefault = form.dyngrdDepartments().getColumns().newColumn("Default", COLDEFAULT);
	colDefault.setWidth(-1);
	colDefault.setHeaderAlignment(Alignment.CENTER);
	colDefault.setAlignment(Alignment.CENTER);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void createResultsColumns(IChartValueSet set) 
{
	if(set == null)
		return;

	ArrayList<ColumnIdentifierValue> columns = new ArrayList<Logic.ColumnIdentifierValue>();
	
	for(int x = 0; x < set.getIChartValueSetGroups().length; x++)
	{
		IChartValueGroup group = set.getIChartValueSetGroups()[x];
		
		IChartValue[] groupValues = group.getIChartValueGroupValues();
		
		for(int y =0 ; y<groupValues.length; y++)
		{
			updateColumns(columns, x, groupValues[y]);
		}
	}
	
	Collections.sort(columns, new ColumnIdentifierValueComparator(form.getLocalContext().getDateOrder()));
	
	for (ColumnIdentifierValue columnIdentifier : columns)
	{
		String columnLabel = columnIdentifier.toString();
		
		DynamicGridColumn column = form.dyngrd().getColumns().newColumn(columnLabel, columnIdentifier);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setWidth(COLUMN_VALUE_WIDTH);
		
		DynamicGridColumn commentColumn = form.dyngrd().getColumns().newColumn("");
		commentColumn.setWidth(22);
		commentColumn.setCanGrow(false);
	}
	
	
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 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 5
Project: AvoinApotti   File: Logic.java   Source Code and License 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 6
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initialiseListDynamicGrid()
{
	DynamicGridColumn colFinding 	 = null;
	DynamicGridColumn colImageColour = null;
	DynamicGridColumn colStatus 	 = null;
	DynamicGridColumn colSelect		 = null;
	int colSelectSize = isPageView() ? 0 : 100;

	if (isPageView())
	{
		colFinding = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageView().dyngrdFinding().getColumns().newColumn("Finding Name", COLFINDING);
		colImageColour = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageView().dyngrdFinding().getColumns().newColumn("Colour/Image", COLIMAGECOLOUR);
		colStatus = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageView().dyngrdFinding().getColumns().newColumn("Status", COLSTATUS);

		colStatus.setWidth(-1);
	}
	else
	{
		colFinding = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().getColumns().newColumn("Finding Name", COLFINDING);
		colImageColour = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().getColumns().newColumn("Colour/Image", COLIMAGECOLOUR);
		colStatus = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().getColumns().newColumn("Status", COLSTATUS);
		colSelect = form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().getColumns().newColumn("Select", COLSELECT);

		colStatus.setWidth(250 - colSelectSize);
		colSelect.setAlignment(Alignment.CENTER);
		colSelect.setWidth(-1);
		colSelect.setAlignment(Alignment.CENTER);
		colSelect.setHeaderAlignment(Alignment.CENTER);
	}

	colFinding.setWidth(450 - colSelectSize);
	colImageColour.setWidth(250 - colSelectSize);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 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 8
Project: AvoinApotti   File: Logic.java   Source Code and License 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 9
Project: AvoinApotti   File: UserAssessmentInstHelper.java   Source Code and License 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 10
Project: AvoinApotti   File: StructuredAssessmentsHelper.java   Source Code and License Vote up 5 votes
public void addColumnSelect()
{
	DynamicGridColumn newColumn = dynGrid.getColumns().newColumn("Select", COLUMN_SELECT);
	newColumn.setWidth(-1);
	newColumn.setAlignment(Alignment.CENTER);
	newColumn.setHeaderAlignment(Alignment.CENTER);
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGrid()
{
	
	form.dyngrdWhiteBoard().clear();
	form.dyngrdWhiteBoard().setHeaderHeight(40);
	form.dyngrdWhiteBoard().setReadOnly(true);

	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("Name",COLUMN_PATIENT);
	column.setWidth(400);
	column.setAlignment(Alignment.CENTER);
	column.setVerticalAlignment(VerticalAlignment.TOP);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setReadOnly(true);
	
	column = form.dyngrdWhiteBoard().getColumns().newColumn("Location",COLUMN_LOCATION);
	column.setWidth(60);
	column.setAlignment(Alignment.LEFT);
	column.setVerticalAlignment(VerticalAlignment.MIDDLE);

	column.setHeaderAlignment(Alignment.LEFT);
	
	initializeWithAssessments(form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	initializeWithFixedQuestions(form.getGlobalContext().Emergency.getWhiteBoardConfig());
	initializeWithConfigurableQuestions(form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		column = form.dyngrdWhiteBoard().getColumns().newColumn("Comment",COLUMN_COMMENT);
   		column.setWidth(85);
   		column.setAlignment(Alignment.CENTER);
   		column.setVerticalAlignment(VerticalAlignment.TOP);
   		column.setHeaderAlignment(Alignment.LEFT);
	}

	
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void addColumnAssessment(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("");
	column.setWidth(30);
	column.setAlignment(Alignment.CENTER);
	column.setVerticalAlignment(VerticalAlignment.MIDDLE);
	column.setCaptionImage(engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()));
	column.setHeaderAlignment(Alignment.CENTER);
	column.setIdentifier(whiteBoardAssessmentConfig);
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void createGridColumns()
{
	form.lyrMain().tabPageActions().grdActions().clear();

	DynamicGridColumn column = form.lyrMain().tabPageActions().grdActions().getColumns().newColumn("Action");
	column.setIdentifier(COL_ACTION);
	column.setWidth(400);
	column.setDynamicWidthSupported(true);

	column = form.lyrMain().tabPageActions().grdActions().getColumns().newColumn(" ");
	column.setIdentifier(COL_COUNTER_SIGNATURE);
	column.setWidth(50);
	column.setDynamicWidthSupported(true);
	column.setAlignment(Alignment.CENTER);

	column = form.lyrMain().tabPageActions().grdActions().getColumns().newColumn("Status");
	column.setIdentifier(COL_ICON);
	column.setWidth(50);
	column.setDynamicWidthSupported(true);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setAlignment(Alignment.CENTER);

	column = form.lyrMain().tabPageActions().grdActions().getColumns().newColumn(" ");
	column.setIdentifier(COL_HELP);
	column.setWidth(25);
	column.setDynamicWidthSupported(true);
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeColourConfigDynamicGrid()
{
	form.dyngrdColourConfig().clear();

	DynamicGridColumn column = form.dyngrdColourConfig().getColumns().newColumn("Start (hours)",COLUMN_START);
	column.setWidth(-1);
	column.setHeaderAlignment(Alignment.LEFT);
	column = form.dyngrdColourConfig().getColumns().newColumn("End (hours)",COLUMN_END);
	column.setWidth(-1);
	column.setHeaderAlignment(Alignment.LEFT);
	column = form.dyngrdColourConfig().getColumns().newColumn("Colour",COLUMN_COLOUR);
	column.setWidth(100);
	column.setHeaderAlignment(Alignment.LEFT);
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License 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 16
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
/**
 * Function used to initialize the dynamic grid for Pre Treatment staging
 */
private void initializeDynamicGrid()
{
	// Clear dynamic grid
	form.dyngrdOverall().clear();
	
	// Create T column
	DynamicGridColumn column = form.dyngrdOverall().getColumns().newColumn("T", COL_T_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	// Create N column
	column = form.dyngrdOverall().getColumns().newColumn("N", COL_N_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	// Create M column
	column = form.dyngrdOverall().getColumns().newColumn("M", COL_M_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	
	// Check if Tumour Group uses histopathologic type for overall staging 
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresHisto()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Histology Type", COL_HIST_TYPE);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group uses histopathologic grade for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresDiff()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Histology Grade", COL_HIST_GRADE);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group uses Serum Marker for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresSMarkers()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Serum Marker", COL_SERUM);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group has over 45 relevant for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresOver45()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Ov. 45", COL_OVER_45);
		column.setWidth(40);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setAlignment(Alignment.CENTER);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Column for Overall staging value
	column = form.dyngrdOverall().getColumns().newColumn("Overall Staging", COL_OVERALL);
	column.setWidth(120);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License 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);
	}
 
Example 18
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void initializeDynamicGridColumns()
{
	form.dyngrdWhiteBoard().clear();
	//form.dyngrdWhiteBoard().setHeaderHeight(60);
	
	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("Field",COLUMN_FIELD);
	column.setWidth(100);
	column.setHeaderAlignment(Alignment.LEFT);
	
	column = form.dyngrdWhiteBoard().getColumns().newColumn("Value",COLUMN_VALUE);
	column.setWidth(150);
	column.setHeaderAlignment(Alignment.LEFT);
	
	
	
}
 
Example 19
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void initializeWithFixedQuestions(WhiteBoardConfigVo whiteBoardConfig)
{
	DynamicGridColumn column;
	if (whiteBoardConfig.getMedsGiven())
	{
		column = form.dyngrdWhiteBoard().getColumns().newColumn("Meds Given",COLUMN_MEDS_GIVEN);
		column.setWidth(100);
		column.setAlignment(Alignment.LEFT);
		column.setVerticalAlignment(VerticalAlignment.MIDDLE);
		column.setHeaderAlignment(Alignment.LEFT);
	}
	
	if (whiteBoardConfig.getObsTaken())
	{
   		column = form.dyngrdWhiteBoard().getColumns().newColumn("Obs Required",COLUMN_OBS_REQUIRED);
   		column.setWidth(100);
   		column.setAlignment(Alignment.LEFT);
   		column.setVerticalAlignment(VerticalAlignment.MIDDLE);
   		column.setHeaderAlignment(Alignment.LEFT);
	}
	
	if (whiteBoardConfig.getECG())
	{
   		column = form.dyngrdWhiteBoard().getColumns().newColumn("ECG",COLUMN_ECG);
   		column.setWidth(35);
   		column.setAlignment(Alignment.LEFT);
   		column.setVerticalAlignment(VerticalAlignment.MIDDLE);
   		column.setHeaderAlignment(Alignment.LEFT);
	}
	
	if (whiteBoardConfig.getNPO())
	{
   		column = form.dyngrdWhiteBoard().getColumns().newColumn("NPO",COLUMN_NPO);
   		column.setWidth(35);
   		column.setAlignment(Alignment.LEFT);
   		column.setVerticalAlignment(VerticalAlignment.MIDDLE);
   		column.setHeaderAlignment(Alignment.LEFT);
	}
	
	if (whiteBoardConfig.getIsolation())
	{
   		column = form.dyngrdWhiteBoard().getColumns().newColumn("Isolation",COLUMN_ISOLATION);
   		column.setWidth(65);
   		column.setAlignment(Alignment.LEFT);
   		column.setVerticalAlignment(VerticalAlignment.MIDDLE);
   		column.setHeaderAlignment(Alignment.LEFT);
	}
}
 
Example 20
Project: AvoinApotti   File: Logic.java   Source Code and License 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);
}