Skip to content

Instantly share code, notes, and snippets.

@bjonnh
Created January 28, 2019 20:51
Show Gist options
  • Save bjonnh/c187e7b2a8b60d2247d951428e870730 to your computer and use it in GitHub Desktop.
Save bjonnh/c187e7b2a8b60d2247d951428e870730 to your computer and use it in GitHub Desktop.
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