Created
January 28, 2019 20:51
-
-
Save bjonnh/c187e7b2a8b60d2247d951428e870730 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QueryFragment : Fragment() { | |
val name = SimpleStringProperty("Default") | |
val error = SimpleStringProperty("Wow") | |
var query: TextArea by singleAssign() | |
var errorPane: NotificationPane by singleAssign() | |
var button: Button by singleAssign() | |
override val root = vbox { | |
form { | |
fieldset { | |
field("Name") { | |
textfield(name) | |
} | |
} | |
} | |
errorPane = notificationPane {} | |
add(errorPane) | |
query = textarea("SELECT ?s ?p ?o WHERE { ?s ?p ?o. } LIMIT 1") { | |
} | |
button = button("Run Query") {} | |
errorPane.text = "Foajlslausl" | |
errorPane.show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment