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

The following are Jave code examples for showing how to use setWidth() 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 formatMCategoryGrid() 
{
	form.lyrDetails().tabTNM().dyngrdMCategory().clear();
	form.lyrDetails().tabTNM().dyngrdMCategory().setSelectable(true);
	
	DynamicGridColumn column = form.lyrDetails().tabTNM().dyngrdMCategory().getColumns().newColumn("M Category Extended");
	column.setIdentifier(COL_HISTOLOGY);
	column.setWidth(form.getMode().equals(FormMode.EDIT) ? COL_HIST_WIDTH : -1);
	column.setDynamicWidthSupported(false);

	if (form.getMode().equals(FormMode.EDIT))
	{
		column = form.lyrDetails().tabTNM().dyngrdMCategory().getColumns().newColumn("Select");
		column.setIdentifier(COL_SELECT);
		column.setWidth(-1);
		column.setDynamicWidthSupported(true);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initializeFlatGrid()
{
	form.dyngrdNotes().clear();
	
	DynamicGridColumn clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_IMAGE_FLAT);
	clinicalNotesColumn.setWidth(30);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_DATE_FLAT);
	clinicalNotesColumn.setCaption("Date");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(100);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setCaption("");
	clinicalNotesColumn.setWidth(220);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_CONSULTANT_FLAT);
	clinicalNotesColumn.setCaption("Consultant");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(-1);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initDynamicGrids()
{
	DynamicGridColumn nCol = form.lyrMain().tabByTemplate().dyngrdReports().getColumns().newColumn("Name", COLUMN_NAME);
	nCol.setWidth(-1);
	nCol = form.lyrMain().tabByCategory().dyngrdMapps().getColumns().newColumn("", COLUMN_SELECT);
	nCol.setWidth(3 * COLUMN_SELECT_WIDTH);

	nCol = form.lyrMain().tabByCategory().dyngrdMapps().getColumns().newColumn("Template/Specialty", COLUMN_NAME);
	nCol.setWidth(-1);

	nCol = form.lyrMain().tabByCategory().dyngrdAvailableRep().getColumns().newColumn("", COLUMN_SELECT);
	nCol.setWidth(3 * COLUMN_SELECT_WIDTH);

	nCol = form.lyrMain().tabByCategory().dyngrdAvailableRep().getColumns().newColumn("Templates", COLUMN_NAME);
	nCol.setWidth(-1);
}
 
Example 4
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 5
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("HCP", COL_USER);
	column.setWidth(200);
	column.setCanGrow(true);
			
	column = form.dyngrdNotes().getColumns().newColumn("DateTime", COL_DATE);
	column.setWidth(100);		
	column.setCanGrow(false);				
			
	column = form.dyngrdNotes().getColumns().newColumn("Summary Note", COL_NOTES);
	column.setCanGrow(false);
	column.setWidth(480);
	
}
 
Example 6
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 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void populateAreasGrid() {
	// TODO Auto-generated method stub
			
	form.dyngrdAreas().clear();
	
	form.dyngrdAreas().setSelectable(false);
	form.dyngrdAreas().setReadOnly(false);
	
	DynamicGridColumn column = form.dyngrdAreas().getColumns().newColumn("Status");
	column.setIdentifier(COL_STATUS);
	column.setWidth(160);
	column.setBackColor(Color.LightSteelBlue);
	
	
	ILocation currentLocation=domain.getCurrentLocation();
	TrackingAreaVoCollection areas=domain.getAreas(currentLocation);
	
	for(int i=0;i< areas.size();i++)
	{
		column = form.dyngrdAreas().getColumns().newColumn(areas.get(i).getAreaDisplayName());
		column.setIdentifier(COL_AREA+areas.get(i).getID_TrackingArea());
		column.setWidth(135);
		//System.out.println(areas.get(i).getID_TrackingArea() + " - "+ areas.get(i).getAreaDisplayName());
	}
			
	column = form.dyngrdAreas().getColumns().newColumn("Overall");
	column.setIdentifier(COL_OVERALL);
	column.setWidth(90);
	column.setBackColor(Color.LightSeaGreen);
	
	populateAreasRows(areas,currentLocation);
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void createDynamicGridColumns()
{
	DynamicGridColumn columnName = form.dyngrdReports().getColumns().newColumn("Name", COLUMN_NAME);
	columnName.setWidth(-1);

	//DynamicGridColumn columnDescription = form.dyngrdReports().getColumns().newColumn("Description", COLUMN_DESCRIPTION);
	//columnDescription.setWidth(-1);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdReasons().clear();
	form.dyngrdReasons().setSelectable(true);
	
	DynamicGridColumn reasonColumn = null;
	reasonColumn = form.dyngrdReasons().getColumns().newColumn(" ", false);				
	reasonColumn.setIdentifier("REASON");
	reasonColumn.setWidth(-1);
	reasonColumn.setSortMode(SortMode.AUTOMATIC);
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initialiseInviteesGrid()
{
	form.ctnDetails().dyngrdInvitees().getColumns().clear();

	DynamicGridColumn col1 = form.ctnDetails().dyngrdInvitees().getColumns().newColumn(" Invitees ", INVITEE_COLUMN);
	col1.setWidth(120);

	DynamicGridColumn col2 = form.ctnDetails().dyngrdInvitees().getColumns().newColumn(" Status ", STATUS_COLUMN);
	col2.setWidth(120);

	DynamicGridColumn col3 = form.ctnDetails().dyngrdInvitees().getColumns().newColumn(" Note ", NOTE_COLUMN);
	col3.setWidth(-1);
}
 
Example 11
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 12
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrdMotor()
{
	form.dynQuestions().clear();
	
	DynamicGridColumn column = form.dynQuestions().getColumns().newColumn("Questions", QUESTIONS_COLUMN);
	column.setWidth(350);
	column.setReadOnly(true);

	DynamicGridColumn column2 = form.dynQuestions().getColumns().newColumn("Answers", ANSWERS_COLUMN);
	column2.setWidth(-1);
	column2.setReadOnly(false);
	
	AdmissionQuestionCollection admQuestions = new AdmissionQuestionCollection();
	admQuestions = LookupHelper.getAdmissionQuestion(domain.getLookupService());
	
	for (int i = 0; i < admQuestions.size(); i++)
	{
		AdmissionQuestion ar = admQuestions.get(i);
		DynamicGridRow row = form.dynQuestions().getRows().newRow();
		row.setValue(ar);
		row.setSelectable(false);
		
		DynamicGridCell cell = row.getCells().newCell(getColumn(QUESTIONS_COLUMN), DynamicCellType.WRAPTEXT);
		cell.setValue(ar.getText());
		cell.setTooltip(ar.getText());
		cell.setAutoPostBack(false);
		cell.setReadOnly(true);
		 
		DynamicGridCell cell2 = row.getCells().newCell(getColumn(ANSWERS_COLUMN), DynamicCellType.ANSWER);
		cell2.getItems().newItem(YesNo.NO,YesNo.NO.getImage());
		cell2.getItems().newItem(YesNo.YES,YesNo.YES.getImage());
		cell2.setValue(null);
		cell2.setAutoPostBack(false);			
		}		
	
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeActionDynamicGrid()
{
	form.lyr1().tabActions().dyngrdActions().getRows().clear();
	DynamicGridColumn actionsColumn = form.lyr1().tabActions().dyngrdActions().getColumns().newColumn("", true);
	actionsColumn.setIdentifier("ACTIONS");
	actionsColumn.setWidth(430);	
	
	DynamicGridColumn selectColumn = form.lyr1().tabActions().dyngrdActions().getColumns().newColumn("", true);
	selectColumn.setIdentifier("SELECT");
	selectColumn.setWidth(-1);
}
 
Example 14
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 15
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void addColumnQuestion(WhiteBoardQuestionConfigVo whiteBoardQuestionConfigVo)
{
	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn(whiteBoardQuestionConfigVo.getColumnHeaderText());
	column.setWidth(whiteBoardQuestionConfigVo.getColumnWidth());
	column.setIdentifier(whiteBoardQuestionConfigVo);
}
 
Example 16
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void createDynamicGridColumns() 
{
	DynamicGridColumn columnName = form.dyngrdReports().getColumns().newColumn("Name", COLUMN_NAME);
	columnName.setWidth(-1);
}
 
Example 17
Project: AvoinApotti   File: ResultDisplayHelper.java   View Source Code Vote up 4 votes
public void formatPathResultsGrid(boolean showingHistory) 
{
	grid.clear();
	
	grid.setSelectable(false);
	grid.setReadOnly(false);
	
	DynamicGridColumn column = grid.getColumns().newColumn("Investigation");
	column.setIdentifier(COL_NAME);
	column.setWidth(100);
	column.setDynamicWidthSupported(true);

	column = grid.getColumns().newColumn("Analyte");
	column.setIdentifier(COL_TEST);
	column.setWidth(100);
	column.setDynamicWidthSupported(true);
	
	column = grid.getColumns().newColumn("Value");
	column.setIdentifier(COL_VALUE);
	column.setWidth(140);
	column.setDynamicWidthSupported(true);
	
	column = grid.getColumns().newColumn("Units");
	column.setIdentifier(COL_UNITS);
	column.setWidth(60);
	column.setDynamicWidthSupported(true);
	
	column = grid.getColumns().newColumn("Ref. Range");
	column.setIdentifier(COL_REF_RANGE);
	column.setWidth(80);
	column.setDynamicWidthSupported(true);
	
	column = grid.getColumns().newColumn("Comments");
	column.setIdentifier(COL_COMMENTS);
	column.setWidth(showingHistory ? -1 : 300);
	column.setDynamicWidthSupported(true);

	if(!showingHistory)
	{
		column = grid.getColumns().newColumn("");
		column.setIdentifier(COL_PICK);
		column.setWidth(0);
		column.setDynamicWidthSupported(true);

		grid.setFooterValue("Please scroll to end of result and select one of the options available."); //WDEV-16907
		
		// 	WDEV-15894 - starts here
	
		column = grid.getColumns().newColumn("");
		column.setIdentifier(COL_PREVIEW);
		column.setWidth(0);
		column.setDynamicWidthSupported(true);
		
		column = grid.getColumns().newColumn("");
		column.setIdentifier(COL_CHECKED_EXIT);
		column.setWidth(0);
		column.setDynamicWidthSupported(true);
		
		column = grid.getColumns().newColumn("");
		column.setIdentifier(COL_NEXT);
		column.setWidth(0);
		column.setDynamicWidthSupported(true);
		// 	WDEV-15894 - ends here
	}
}
 
Example 18
Project: AvoinApotti   File: ResultDisplayHelper.java   View Source Code Vote up 4 votes
public void cleanupGrid(boolean showingHistory, DynamicGridRow row)
{
	DynamicGridCell cell;
	if(showingHistory)
	{
		DynamicGridColumn colTest = grid.getColumns().getByIdentifier(ResultDisplayHelper.COL_TEST);
		if (colTest != null)
		{
			cell = row.getCells().newCell(colTest, DynamicCellType.LABEL);
			colTest.setWidth(0);
			cell.setWidth(0);
		}
		DynamicGridColumn colValue = grid.getColumns().getByIdentifier(ResultDisplayHelper.COL_VALUE);
		if (colValue != null)
		{
			cell = row.getCells().newCell(colValue, DynamicCellType.LABEL);
			colValue.setWidth(0);
			cell.setWidth(0);
		}
		DynamicGridColumn colUnits = grid.getColumns().getByIdentifier(ResultDisplayHelper.COL_UNITS);
		if (colUnits != null)
		{
			cell = row.getCells().newCell(colUnits, DynamicCellType.LABEL);
			colUnits.setWidth(0);
			cell.setWidth(0);
		}
		DynamicGridColumn colRefRange = grid.getColumns().getByIdentifier(ResultDisplayHelper.COL_REF_RANGE);
		if (colRefRange != null)
		{
			cell = row.getCells().newCell(colRefRange, DynamicCellType.LABEL);
			colRefRange.setWidth(0);
			cell.setWidth(0);
		}
		DynamicGridColumn colComments = grid.getColumns().getByIdentifier(ResultDisplayHelper.COL_COMMENTS);
		if (colComments != null)
		{
			cell = row.getCells().newCell(colComments, DynamicCellType.WRAPTEXT);
			colComments.setWidth(0);
			cell.setWidth(0);
		}
	}
}
 
Example 19
Project: AvoinApotti   File: Logic.java   View Source Code 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 20
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);
}