aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-08 13:29:16 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-08 13:29:16 +0200
commit85b48891c61c604c952c8739b50bdae2998c44a7 (patch)
tree7281243392774153dfb7b700fb55bb9b169c8a4e /src/main/kotlin/pl/treksoft/kvision/Showcase.kt
parent2072d1b9c1b9d4f515cc1759b12ca19db7106d82 (diff)
downloadkvision-85b48891c61c604c952c8739b50bdae2998c44a7.tar.gz
kvision-85b48891c61c604c952c8739b50bdae2998c44a7.tar.bz2
kvision-85b48891c61c604c952c8739b50bdae2998c44a7.zip
Added code analyzing with Detekt
Refactoring
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/Showcase.kt14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
index 67d7bbd1..b2e6d764 100644
--- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
@@ -33,7 +33,8 @@ class Showcase : ApplicationBase() {
val dd = DropDown("Dropdown", listOf("abc" to "#!/x", "def" to "#!/y"), "flag")
root.add(dd)
- val dd2 = DropDown("Dropdown2", listOf("abc" to "#!/abc", "def" to "#!/def", "xyz" to DISABLED.POS, "Header" to HEADER.POS, "Separtatorek" to SEPARATOR.POS
+ val dd2 = DropDown("Dropdown2", listOf("abc" to "#!/abc", "def" to "#!/def", "xyz" to DISABLED.POS,
+ "Header" to HEADER.POS, "Separtatorek" to SEPARATOR.POS
), "flag", dropup = true)
root.add(dd2)
@@ -43,7 +44,8 @@ class Showcase : ApplicationBase() {
val del = Tag(TAG.DEL, "To jest deleted")
root.add(del)
- val list = ListTag(LIST.DL_HORIZ, listOf("abc", "de<b>fdasdasdasddasd</b>tdasdas", "Dasdsada", "dasdasdads"), true)
+ val list = ListTag(LIST.DL_HORIZ, listOf("abc", "de<b>fdasdasdasddasd</b>tdasdas", "Dasdsada",
+ "dasdasdads"), true)
root.add(list)
val list2 = ListTag(LIST.OL, null)
@@ -52,15 +54,15 @@ class Showcase : ApplicationBase() {
list2.add(Image(Img("kotlin.png")))
root.add(list2)
- val img = Image(Img("kotlin.png"), "Image", true, IMAGE_SHAPE.ROUNDED)
+ val img = Image(Img("kotlin.png"), "Image", true, IMAGESHAPE.ROUNDED)
root.add(img)
- val button = Button("To jest przycisk FA", "fa-flag", BUTTON_STYLE.DANGER)
+ val button = Button("To jest przycisk FA", "fa-flag", BUTTONSTYLE.DANGER)
button.setEventListener<Button> {
click = { _ -> println(self.text) }
}
root.add(button)
- val button2 = Button("To jest przycisk", "flag", BUTTON_STYLE.DANGER)
+ val button2 = Button("To jest przycisk", "flag", BUTTONSTYLE.DANGER)
button2.setEventListener {
click = { e ->
println("2" + e)
@@ -114,4 +116,4 @@ class Showcase : ApplicationBase() {
KVManager.shutdown()
return mapOf<String, Any>()
}
-} \ No newline at end of file
+}