short indention,
short borderLeft, short borderTop, short borderRight, short borderBottom,
short borderLeftColor, short borderTopColor, short borderRightColor, short borderBottomColor,
short fillPattern, short fillBackColor, short fillForeColor) {
for(short j = 0, len = book.getNumCellStyles(); j < len; ++j) {
CellStyle style = book.getCellStyleAt(j);
if (style.getDataFormat() != dataFormat)
continue;
if (style.getFontIndex() != fontIndex)
continue;
if (style.getFillForegroundColor() != fillForeColor)
continue;
if (style.getHidden() != hidden)
continue;
if (style.getLocked() != locked)
continue;
if (style.getAlignment() != alignment)
continue;
if (style.getWrapText() != wrapText)
continue;
if (style.getVerticalAlignment() != valign)
continue;
if (style.getIndention() != indention)
continue;
if (style.getBorderLeft() != borderLeft)
continue;
if (style.getBorderTop() != borderTop)
continue;
if (style.getBorderRight() != borderRight)
continue;
if (style.getBorderBottom() != borderBottom)
continue;
if (style.getLeftBorderColor() != borderLeftColor)
continue;
if (style.getTopBorderColor() != borderTopColor)
continue;
if (style.getRightBorderColor() != borderRightColor)
continue;
if (style.getBottomBorderColor() != borderBottomColor)
continue;
if (style.getFillPattern() != fillPattern)
continue;
if (style.getFillBackgroundColor() != fillBackColor)
continue;
if (style.getRotation() != rotation)
continue;
return style; //found it!
}
return null;
}