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

The following are Jave code examples for showing how to use setBackColor() 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 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 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
/**
 * 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 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void createSeedColumns()
{
	form.dyngrdParameters().clear();
	DynamicGridColumn nameCol = form.dyngrdParameters().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	DynamicGridColumn seedCol = form.dyngrdParameters().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	DynamicGridColumn mandatoryCol = form.dyngrdParameters().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 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 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void populateSummaryGridData()
{
	form.dyngrd1().clear();
	
	form.dyngrd1().setSelectable(false);
	form.dyngrd1().setReadOnly(false);
	
	DynamicGridColumn column = form.dyngrd1().getColumns().newColumn(" ");
	column.setIdentifier(COL_INFO);
	column.setWidth(150);
	column.setBackColor(Color.LightSteelBlue);

	
	
	column = form.dyngrd1().getColumns().newColumn("Waiting");
	column.setIdentifier(COL_WAITING);
	column.setWidth(90);
	
	column = form.dyngrd1().getColumns().newColumn("Triage");
	column.setIdentifier(COL_TRIAGE);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 1");
	column.setIdentifier(COL_ZONE1);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 2");
	column.setIdentifier(COL_ZONE2);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Zone 3");
	column.setIdentifier(COL_ZONE3);
	column.setWidth(90);

	column = form.dyngrd1().getColumns().newColumn("Resus");
	column.setIdentifier(COL_RESUS);
	column.setWidth(90);
	
	column = form.dyngrd1().getColumns().newColumn("Overall");
	column.setIdentifier(COL_OVERALL);
	column.setWidth(90);
	column.setBackColor(Color.LightSeaGreen);

	populateSummaryRows();

			
}