added StartupView elements
This commit is contained in:
parent
b2568b43f8
commit
450ecbccad
@ -1,15 +1,56 @@
|
|||||||
package org.hso.texturesyncclient.view.startupView
|
package org.hso.texturesyncclient.view.startupView
|
||||||
|
|
||||||
import javafx.scene.Parent
|
import com.jfoenix.controls.JFXButton
|
||||||
|
import com.jfoenix.controls.JFXSpinner
|
||||||
|
import com.jfoenix.controls.JFXTextField
|
||||||
|
import javafx.geometry.Insets
|
||||||
|
import javafx.geometry.Pos
|
||||||
|
import javafx.scene.control.Label
|
||||||
|
import javafx.scene.layout.Background
|
||||||
|
import javafx.scene.layout.BackgroundFill
|
||||||
|
import javafx.scene.layout.CornerRadii
|
||||||
|
import javafx.scene.paint.Color
|
||||||
import tornadofx.*
|
import tornadofx.*
|
||||||
|
|
||||||
class StartupView : View() {
|
class StartupView : View() {
|
||||||
|
|
||||||
override val root: Parent
|
val labelStatus = Label("Verbinden")
|
||||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
|
||||||
|
|
||||||
|
val spinnerStatus = JFXSpinner()
|
||||||
|
|
||||||
|
val labelServerIP = Label("Server-IP")
|
||||||
|
|
||||||
|
val tfServerIP = JFXTextField()
|
||||||
|
|
||||||
|
val btnConnect = JFXButton("Manuell Verbinden")
|
||||||
|
|
||||||
|
override val root = borderpane {
|
||||||
|
|
||||||
|
center = vbox(50) {
|
||||||
|
maxWidth = 150.0
|
||||||
|
alignment = Pos.CENTER
|
||||||
|
|
||||||
|
add(labelStatus).apply {
|
||||||
|
labelStatus.background = Background(BackgroundFill(Color.YELLOWGREEN, CornerRadii.EMPTY, Insets.EMPTY))
|
||||||
|
}
|
||||||
|
add(spinnerStatus)
|
||||||
|
|
||||||
|
vbox(10){
|
||||||
|
alignment = Pos.CENTER
|
||||||
|
|
||||||
|
add(labelServerIP)
|
||||||
|
add(tfServerIP)
|
||||||
|
add(btnConnect)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
style {
|
||||||
|
minWidth = 900.px
|
||||||
|
minHeight = 600.px
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -3,4 +3,7 @@ package org.hso.texturesyncclient.view.startupView
|
|||||||
import tornadofx.Controller
|
import tornadofx.Controller
|
||||||
|
|
||||||
class StartupViewController : Controller() {
|
class StartupViewController : Controller() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user