Skip to content

Commit

Permalink
πŸ”€ :: CellStle μ„€μ • & μ •λ ¬ μˆœμ„œ λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
μ •λŒ€ν˜„ committed Mar 10, 2023
1 parent 502cb03 commit 5aa30ac
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ExcelSpiImpl(
goodPointHistoryString.replace(Regex("[\\[\\]]"), ""),
badPointHistoryString.replace(Regex("[\\[\\]]"), ""),
)
}.sortedBy { it[1] }
}.sortedBy { it[0] } // ν•™λ²ˆμˆœμœΌλ‘œ μ •λ ¬

val createExcelSheet = createExcelSheet(attributes, userData)
val workbook: Workbook = WorkbookFactory.create(createExcelSheet.inputStream())
Expand Down Expand Up @@ -95,14 +95,15 @@ class ExcelSpiImpl(
.apply {
fillForegroundColor = IndexedColors.GREY_25_PERCENT.index
fillPattern = CellStyle.SOLID_FOREGROUND
alignment = HorizontalAlignment.LEFT.ordinal.toShort()
alignment = CellStyle.ALIGN_CENTER
verticalAlignment = VerticalAlignment.CENTER.ordinal.toShort()
}

private fun getDefaultCellStyle(workbook: XSSFWorkbook): XSSFCellStyle =
workbook.createCellStyle()
.apply {
alignment = HorizontalAlignment.LEFT.ordinal.toShort()
alignment = CellStyle.ALIGN_CENTER
verticalAlignment = VerticalAlignment.CENTER.ordinal.toShort()
wrapText = true
}
}

0 comments on commit 5aa30ac

Please sign in to comment.