Created
October 13, 2018 23:36
-
-
Save ciferkey/94c1018cbd09006f9efc152158e59a9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun tryItOut() { | |
// Also since the block is the only parameter we can even drop the parenthesis all together! | |
workbook { | |
// We can directly set the value for isHidden! | |
isHidden = true | |
// We cannot change setSelectedTab because Workbook only has a setter for this and no getter (because POI is a PITA). | |
// This prevents Kotlin from autogenerating the "synthetic accessor" | |
setSelectedTab(2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment