From 089447dd370314276531836e39afa2224eb8f6b8 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 25 Sep 2017 10:30:25 +0200 Subject: Code style fixes --- src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/panel/SplitPanel.kt') 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 = 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 -- cgit