diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-09-25 10:30:25 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-09-25 10:31:27 +0200 |
commit | 089447dd370314276531836e39afa2224eb8f6b8 (patch) | |
tree | ce26e9cee19bcdae06fb7c39a1b1fab344dce95d /src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt | |
parent | 726a42ad5643840f84c289c9a6b56d6c3c9067b4 (diff) | |
download | kvision-089447dd370314276531836e39afa2224eb8f6b8.tar.gz kvision-089447dd370314276531836e39afa2224eb8f6b8.tar.bz2 kvision-089447dd370314276531836e39afa2224eb8f6b8.zip |
Code style fixes
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt index be51149e..57519833 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt @@ -13,10 +13,11 @@ enum class DIRECTION(val dir: String) { VERTICAL("vertical") } -open class SplitPanel(val direction: DIRECTION = DIRECTION.VERTICAL, +open class SplitPanel(private val direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf()) : Container(classes + ("splitpanel-" + direction.dir)) { - internal val splitter = Splitter(this, direction) + @Suppress("LeakingThis") + private val splitter = Splitter(this, direction) @Suppress("UnsafeCastFromDynamic") internal fun afterInsertSplitter() { @@ -54,7 +55,7 @@ open class SplitPanel(val direction: DIRECTION = DIRECTION.VERTICAL, } } -class Splitter(val splitPanel: SplitPanel, direction: DIRECTION) : Tag(TAG.DIV, +class Splitter(private val splitPanel: SplitPanel, direction: DIRECTION) : Tag(TAG.DIV, classes = setOf("splitter-" + direction.dir)) { private val idc = "kv_splitter_" + counter |