You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by jo...@apache.org on 2020/04/07 13:41:36 UTC
[isis] 01/02: ISIS-2324 code cleanup
This is an automated email from the ASF dual-hosted git repository.
joergrade pushed a commit to branch ISIS-2324-Merge-kroviz
in repository https://gitbox.apache.org/repos/asf/isis.git
commit b1743309008b968b66aa19699d894f9f1ef18569
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Tue Apr 7 15:40:46 2020 +0200
ISIS-2324 code cleanup
---
.../src/main/kotlin/org/apache/isis/client/kroviz/ui/FormItem.kt | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/FormItem.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/FormItem.kt
index 887d738..c0c8daa 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/FormItem.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/FormItem.kt
@@ -1,7 +1,6 @@
package org.apache.isis.client.kroviz.ui
import org.apache.isis.client.kroviz.to.Member
-import org.apache.isis.client.kroviz.to.ValueType
import pl.treksoft.kvision.window.Window
class FormItem(
@@ -10,8 +9,8 @@ class FormItem(
var content: Any? = null,
val size: Int? = null,
val description: String? = "not set",
- val member:org.apache.isis.client.kroviz.to.Member? = null,
- var dspl:org.apache.isis.client.kroviz.ui.Displayable? = null,
+ val member: Member? = null,
+ var dspl: Displayable? = null,
val callBackId: String? = null) {
private var originalContent: Any?
@@ -30,7 +29,7 @@ class FormItem(
member.value?.content = value
}
//IMPROVE this is special logic in a generic place
- if (type ==org.apache.isis.client.kroviz.to.ValueType.SLIDER.type) {
+ if (type == org.apache.isis.client.kroviz.to.ValueType.SLIDER.type) {
setOpacity(value!!)
}
}
@@ -42,7 +41,7 @@ class FormItem(
}
}
- fun setDisplay(displayable:org.apache.isis.client.kroviz.ui.Displayable) {
+ fun setDisplay(displayable: org.apache.isis.client.kroviz.ui.Displayable) {
dspl = displayable
}