com.colisweb.gdrive.client.sheets.formatting.GoogleSheetField.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-drive-scala-client_2.13 Show documentation
Show all versions of google-drive-scala-client_2.13 Show documentation
Google Drive Scala Client is a Scala wrapper around the Google Drive client for Java
The newest version!
package com.colisweb.gdrive.client.sheets.formatting
trait GoogleSheetField {
def field: String
}
case object NumberFormatField extends GoogleSheetField {
val field = "userEnteredFormat.numberFormat"
}
case object BoldTextField extends GoogleSheetField {
val field = "userEnteredFormat.textFormat.bold"
}
case object BackgroundColorField extends GoogleSheetField {
val field = "userEnteredFormat.backgroundColor"
}
case object TextFormatField extends GoogleSheetField {
val field = "userEnteredFormat.textFormat"
}
case object HorizontalAlignmentField extends GoogleSheetField {
val field = "userEnteredFormat.horizontalAlignment"
}
// TODO: Generic method to combine fields & remove this
case object TextFormatAndHorizontalAlignmentField extends GoogleSheetField {
val field = "userEnteredFormat(textFormat, horizontalAlignment)"
}