Java Code Examples for ims.framework.controls.DynamicGridCellTable.TableCellType

The following are top voted examples for showing how to use ims.framework.controls.DynamicGridCellTable.TableCellType. 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 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}