626364656667686970
public Column getColumn( Column col, double width ) { width = ( width < 0 ) ? ModelConstants.DEFAULT_COLUMNWIDTH : width; Column newCol = ColumnImpl.create( col ); newCol.setWidth( Math.abs( width ) ); return getColumn( newCol ); }
6768697071727374
if ( obj == null || !( obj instanceof Column ) ) { return false; } Column col = (Column) obj; return width == col.getWidth( ) && super.equals( col ); }
212213214215216217218219220221222
} return cell; } public Column getColumn(int col, boolean create) { Column c = null; Object obj = cols.get(new Integer(col)); if (obj == null) { if (create) { emptyColumnList.add(col); c = new ColumnImpl(getStyle());
241242243244245246247248
} return width; } public Column setColumnWidth(int col, double width) { Column c = columnPool.getColumn(getColumn(col, true), width); return setColumn(col, c); }
535455565758596061
return col; } public Column getColumn( Column col, IStyle style ) { Column newCol = ColumnImpl.create( col ); newCol.setStyle( style ); return getColumn( newCol ); }