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

The following are Jave code examples for showing how to use setVerticalAlignment() 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 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 2
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 3
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);
	}
}