Java Code Examples for ims.framework.enumerations.Alignment

The following are top voted examples for showing how to use ims.framework.enumerations.Alignment. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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   View source code 6 votes vote down vote up
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 3
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void initializeGrid() 
{
	form.dyngrdLetter().clear();
	form.dyngrdLetter().getColumns().newColumn("", COL_IMAGE);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_IMAGE).setCanGrow(false);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_IMAGE).setWidth(60);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_IMAGE).setAlignment(Alignment.RIGHT);
	
	form.dyngrdLetter().getColumns().newColumn("Clinics / Consultants / Specialties", COL_HEADING);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_HEADING).setWidth(500);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_HEADING).setCanGrow(true);
	
	form.dyngrdLetter().getColumns().newColumn("New Clinics", COL_NEWEXCLUDE);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_NEWEXCLUDE).setWidth(100);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_NEWEXCLUDE).setCanGrow(false);
	
	form.dyngrdLetter().getColumns().newColumn("Review Clinics", COL_REVIEWEXCLUDE);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_REVIEWEXCLUDE).setWidth(100);
	form.dyngrdLetter().getColumns().getByIdentifier(COL_REVIEWEXCLUDE).setCanGrow(false);
	
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
@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 6 votes vote down vote up
private void initializeGrid() 
{
	form.dyngrdGlossary().clear();
	form.dyngrdGlossary().getColumns().newColumn("", COL_IMAGE);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_IMAGE).setCanGrow(false);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_IMAGE).setWidth(75);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_IMAGE).setAlignment(Alignment.RIGHT);
	
	form.dyngrdGlossary().getColumns().newColumn("Heading", COL_HEADING);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_HEADING).setWidth(600);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_HEADING).setCanGrow(true);
	
	form.dyngrdGlossary().getColumns().newColumn("Text", COL_TEXT);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_TEXT).setWidth(100);
	form.dyngrdGlossary().getColumns().getByIdentifier(COL_TEXT).setCanGrow(false);
	form.dyngrdGlossary().setReadOnly(true);
	
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void createDynamicGridColumns()
{
	form.dynGridDetails().clear();
	DynamicGridColumn imageColumn = form.dynGridDetails().getColumns().newColumn("", IMAGE_COLUMN);
	imageColumn.setWidth(20);
	
	DynamicGridColumn assessmentColumn = form.dynGridDetails().getColumns().newColumn("Current Assessment - Daily Patient Progress", ASSESSMENT_COLUMN);
	assessmentColumn.setWidth(450);
	assessmentColumn.setReadOnly(true);
	assessmentColumn.setCanGrow(true);
	
	DynamicGridColumn protocolColumn = form.dynGridDetails().getColumns().newColumn("Protocol", PROTOCOL_COLUMN);
	protocolColumn.setWidth(120);
	protocolColumn.setReadOnly(true);
	
	DynamicGridColumn initialsColumn = form.dynGridDetails().getColumns().newColumn("Initials", INITIALS_COLUMN);
	initialsColumn.setWidth(120);
	initialsColumn.setReadOnly(true);
	
	DynamicGridColumn urlColumn = form.dynGridDetails().getColumns().newColumn("", URL_COLUMN);
	urlColumn.setWidth(-1);
	urlColumn.setReadOnly(false);
	urlColumn.setAlignment(Alignment.CENTER);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void createSeedColumns()
{
	form.ctnParams().dyngrdParams().clear();
	
	DynamicGridColumn nameCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	DynamicGridColumn seedCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	DynamicGridColumn mandatoryCol = form.ctnParams().dyngrdParams().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void configureGrid() 
{
	getGrid().setSelectable(false);
	DynamicGridColumn imageColumn = getGrid().getColumns().newColumn("", COLUMN_IMAGE);
	imageColumn.setWidth(COLUMN_IMAGE_WIDTH);
	imageColumn.setAlignment(Alignment.CENTER);
	DynamicGridColumn nameColumn = getGrid().getColumns().newColumn("Analyte Name", COLUMN_NAME);// 	WDEV-16395
	nameColumn.setWidth(COLUMN_NAME_WIDTH);
	nameColumn.setDynamicWidthSupported(true);
	DynamicGridColumn unitsColumn = getGrid().getColumns().newColumn("Units", COLUMN_UNITS);
	unitsColumn.setWidth(COLUMN_UNITS_WIDTH);
	if(Boolean.TRUE.equals(ConfigFlag.UI.CUMULATIVE_RESULTS_DISPLAY_REF_RANGE_COLUMN.getValue()))    //wdev-13893
	{
		DynamicGridColumn refRangeColumn = getGrid().getColumns().newColumn("Ref. Range", COLUMN_REF_RANGE);
		refRangeColumn.setWidth(COLUMN_REF_RANGE_WIDTH);
	}
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
/**
 * Function used to initialize the dynamic grid
 * Will create the columns (set the width, set the label, etc)
 */
private void initializeDynamicGrid()
{
	// Clear dynamic grid completely (all rows, all columns)
	form.dyngrdParameters().clear();
	
	// Create the 'Name' column - used for displaying seeds names
	DynamicGridColumn nameCol = form.dyngrdParameters().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	// Create the 'Value' column - used for selecting seeds values
	DynamicGridColumn seedCol = form.dyngrdParameters().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	// Create the 'Mandatory' column - used for marking mandatory seeds
	DynamicGridColumn mandatoryCol = form.dyngrdParameters().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 11
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 12
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 13
Project: AvoinApotti   File: UserAssessmentInstHelper.java   View source code 6 votes vote down vote up
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 14
Project: AvoinApotti   File: UserAssessmentInstHelper.java   View source code 6 votes vote down vote up
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 15
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 16
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void addNewRow()
{

	DynamicGridRow newRow = form.dyngrdTrackingArea().getRows().newRow();
	newRow.setSelectable(false);
	DynamicGridCell checkCell;
	for (int i = 0; i < form.getGlobalContext().Emergency.getTrackingAreaColumns().size(); i++)
	{
		if (form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getImage() != null)
		{
			checkCell = newRow.getCells().newCell(getColumn(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getID()), DynamicCellType.IMAGE);
			checkCell.setValue(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getImage());
			checkCell.getColumn().setAlignment(Alignment.CENTER);
		}
		else
		{
			checkCell = newRow.getCells().newCell(getColumn(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getID()), DynamicCellType.STRING);
			String name = form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColHeader();
			name = name + "...";
			checkCell.setValue(name);
		}
	}

}
 
Example 17
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void createdDynamicGridSpecialInterest()
{
	form.dyngrdSpecialInterest().getRows().clear();
	
	DynamicGridColumn columnName = form.dyngrdSpecialInterest().getColumns().newColumn("Category", COLUMN_SPECIALINTERESTCATEGORY);
	columnName.setWidth(155);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	
	columnName = form.dyngrdSpecialInterest().getColumns().newColumn("Start Date", COLUMN_STARTDATE);
	columnName.setWidth(100);
	columnName.setReadOnly(true);
	
	columnName = form.dyngrdSpecialInterest().getColumns().newColumn("End Date", COLUMN_ENDDATE);
	columnName.setWidth(-1);
	columnName.setReadOnly(true);

}
 
Example 18
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
/**
 * 
 */
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 19
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void createControlsForNotCollection(DynamicGridRow row, SpecimenWorkListItemListVo item)
{
	clearVariableCells(row);

	DynamicGridCell cell = row.getCells().newCell(getColumn(DATE_COL), DynamicCellType.LABEL, DynamicGridCellOptions.READ_ONLY_DATA_CELL);
	cell = row.getCells().newCell(getColumn(TIME_COL), DynamicCellType.LABEL, DynamicGridCellOptions.READ_ONLY_DATA_CELL);
	cell = row.getCells().newCell(getColumn(QUERY_COL), DynamicCellType.LABEL, DynamicGridCellOptions.LABEL_CELL);
	getColumn(QUERY_COL).setAlignment(Alignment.RIGHT);
	cell.setValue("Reason:");
	cell = row.getCells().newCell(getColumn(TEXT_COL), DynamicCellType.STRING, item !=null?DynamicGridCellOptions.READ_ONLY_DATA_CELL:DynamicGridCellOptions.EDITABLE_DATA_CELL);
	setCellMaxLength(item, cell);
	if(item != null)
	{
		if(item.getSpecimenIsNotNull() && item.getSpecimen().getCollectorCommentIsNotNull())
		{
			cell.setValue(item.getSpecimen().getCollectorComment());
			cell.setTooltip(item.getSpecimen().getCollectorComment());
		}
	}
}
 
Example 20
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void createControlsForNotCollection(DynamicGridRow row, SpecimenWorkListItemListVo item)
{
	clearVariableCells(row);

	DynamicGridCell cell = row.getCells().newCell(getColumn(DATE_COL), DynamicCellType.LABEL, DynamicGridCellOptions.READ_ONLY_DATA_CELL);
	cell = row.getCells().newCell(getColumn(TIME_COL), DynamicCellType.LABEL, DynamicGridCellOptions.READ_ONLY_DATA_CELL);
	cell = row.getCells().newCell(getColumn(QUERY_COL), DynamicCellType.LABEL, DynamicGridCellOptions.LABEL_CELL);
	getColumn(QUERY_COL).setAlignment(Alignment.RIGHT);
	cell.setValue("Reason:");
	cell = row.getCells().newCell(getColumn(TEXT_COL), DynamicCellType.STRING, item != null ? DynamicGridCellOptions.READ_ONLY_DATA_CELL : DynamicGridCellOptions.EDITABLE_DATA_CELL);
	setCellMaxLength(item, cell);
	if (item != null)
	{
		if (item.getSpecimenIsNotNull() && item.getSpecimen().getCollectorCommentIsNotNull())
		{
			cell.setValue(item.getSpecimen().getCollectorComment());
			cell.setTooltip(item.getSpecimen().getCollectorComment());
		}
	}
}
 
Example 21
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 22
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 23
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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 24
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void initializeSelectedDiagnosisGrid()
{
	form.dyngrdDiagnosis().clear();

	form.dyngrdDiagnosis().setSelectable(true);
	
	DynamicGridColumn colDiagnose = form.dyngrdDiagnosis().getColumns().newColumn("Diagnosis", COLDIAGNOSE);
	colDiagnose.setWidth(550);
	colDiagnose.setReadOnly(true);
	
	DynamicGridColumn colMain = form.dyngrdDiagnosis().getColumns().newColumn("Main", COLMAIN);
	colMain.setWidth(50);
	colMain.setAlignment(Alignment.CENTER);

	DynamicGridColumn colImage = form.dyngrdDiagnosis().getColumns().newColumn("", COLIMAGE);
	colImage.setWidth(-1);
	colImage.setAlignment(Alignment.CENTER);
}
 
Example 25
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 26
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void initializeSelectedDiagnosisGrid()
{
	form.dyngrdDiagnosis().clear();

	form.dyngrdDiagnosis().setSelectable(true);
	
	DynamicGridColumn colDiagnose = form.dyngrdDiagnosis().getColumns().newColumn("Diagnosis", COLDIAGNOSE);
	colDiagnose.setWidth(550);
	colDiagnose.setReadOnly(true);
	
	DynamicGridColumn colMain = form.dyngrdDiagnosis().getColumns().newColumn("Main", COLMAIN);
	colMain.setWidth(50);
	colMain.setAlignment(Alignment.CENTER);

	DynamicGridColumn colImage = form.dyngrdDiagnosis().getColumns().newColumn("", COLIMAGE);
	colImage.setWidth(-1);
	colImage.setAlignment(Alignment.CENTER);
}
 
Example 27
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
@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 28
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void createSeedColumns()
{
	form.ctnParams().dyngrdParams().clear();
	
	DynamicGridColumn nameCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	DynamicGridColumn seedCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	DynamicGridColumn mandatoryCol = form.ctnParams().dyngrdParams().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 29
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 30
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 31
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
/**
 * 
 */
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 32
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void createSeedColumns()
{
	form.ctnParams().dyngrdParams().clear();
	
	DynamicGridColumn nameCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	DynamicGridColumn seedCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	DynamicGridColumn mandatoryCol = form.ctnParams().dyngrdParams().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 33
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 34
Project: openMAXIMS   File: UserAssessmentInstHelper.java   View source code 6 votes vote down vote up
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 35
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void configureGrid() 
{
	getGrid().setSelectable(false);
	DynamicGridColumn imageColumn = getGrid().getColumns().newColumn("", COLUMN_IMAGE);
	imageColumn.setWidth(COLUMN_IMAGE_WIDTH);
	imageColumn.setAlignment(Alignment.CENTER);
	DynamicGridColumn nameColumn = getGrid().getColumns().newColumn("Analyte Name", COLUMN_NAME);// 	WDEV-16395
	nameColumn.setWidth(COLUMN_NAME_WIDTH);
	nameColumn.setDynamicWidthSupported(true);
	DynamicGridColumn unitsColumn = getGrid().getColumns().newColumn("Units", COLUMN_UNITS);
	unitsColumn.setWidth(COLUMN_UNITS_WIDTH);
	if(Boolean.TRUE.equals(ConfigFlag.UI.CUMULATIVE_RESULTS_DISPLAY_REF_RANGE_COLUMN.getValue()))    //wdev-13893
	{
		DynamicGridColumn refRangeColumn = getGrid().getColumns().newColumn("Ref. Range", COLUMN_REF_RANGE);
		refRangeColumn.setWidth(COLUMN_REF_RANGE_WIDTH);
	}
}
 
Example 36
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 37
Project: openMAXIMS   File: UserAssessmentInstHelper.java   View source code 6 votes vote down vote up
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 38
Project: openmaxims-linux   File: UserAssessmentInstHelper.java   View source code 6 votes vote down vote up
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 39
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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 40
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void addNewRow()
{

	DynamicGridRow newRow = form.dyngrdTrackingArea().getRows().newRow();
	newRow.setSelectable(false);
	DynamicGridCell checkCell;
	for (int i = 0; i < form.getGlobalContext().Emergency.getTrackingAreaColumns().size(); i++)
	{
		if (form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getImage() != null)
		{
			checkCell = newRow.getCells().newCell(getColumn(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getID()), DynamicCellType.IMAGE);
			checkCell.setValue(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getImage());
			checkCell.getColumn().setAlignment(Alignment.CENTER);
		}
		else
		{
			checkCell = newRow.getCells().newCell(getColumn(form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColumn().getID()), DynamicCellType.STRING);
			String name = form.getGlobalContext().Emergency.getTrackingAreaColumns().get(i).getColHeader();
			name = name + "...";
			checkCell.setValue(name);
		}
	}

}