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

The following are Jave code examples for showing how to use getWidth() 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 5 votes
private DynamicGridRow addRow(DynamicGridRow parent,LookupInstVo look, int depth)
{
	if (look == null)
		throw new CodingRuntimeException("Trying to add null value lookup instance");
	DynamicGridRow result ;
	if (parent == null)
		result =  form.dyngrdLookup().getRows().newRow();
	else
		result = parent.getRows().newRow();
	
	result.setSelectable(isSingleSelect());
	result.setCollapsedImage(null);
	result.setExpandedImage(null);
	DynamicGridCell nCell;
	if (!isSingleSelect())
	{
		DynamicGridColumn colSel = getColumn(COL_SELECT);
		if (colSel.getWidth() < depth * SELECT_WIDTH_N)
			colSel.setWidth(depth * SELECT_WIDTH_N);
		nCell = result.getCells().newCell(colSel,DynamicCellType.BOOL);
		nCell.setAutoPostBack(false);
		nCell.setReadOnly(false);
	}
	
	nCell = result.getCells().newCell(getColumn(COL_TXT), DynamicCellType.STRING);
	nCell.setAutoPostBack(false);
	nCell.setReadOnly(true);
	nCell.setValue(look.getText());
	
	result.setValue(look);
	
	return result;
}