return new AMedia("css", "css", "text/css;charset=UTF-8",
getSheetDefaultRules());
}
public void setColumnSize(String sheetId, int column, int newsize, int id, boolean hidden) {
Worksheet sheet;
if (getSelectedSheetId().equals(sheetId)) {
sheet = getSelectedSheet();
} else {
sheet = Utils.getSheetByUuid(_book, sheetId);
}
// update helper size first before sheet.setColumnWidth, or it will fire a SSDataEvent
HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
helper.setInfoValues(column, newsize, id, hidden);
final Range rng = Ranges.range(sheet, -1, column).getColumns();
rng.setHidden(hidden);
if (!hidden) {
rng.setColumnWidth(Utils.pxToFileChar256(newsize, ((Book)sheet.getWorkbook()).getDefaultCharWidth()));
}
}