Set title for node explorer windows (#1551)

This commit is contained in:
Alberto Arri 2017-09-19 17:30:23 +01:00 committed by josecoll
parent 0e3005518e
commit 544fd943f4
3 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,8 @@ import net.corda.finance.contracts.asset.Cash
import tornadofx.*
import java.security.PublicKey
const val WINDOW_TITLE = "Corda Node Explorer"
/**
* Helper method to reduce boiler plate code
*/

View File

@ -10,7 +10,7 @@ import org.controlsfx.dialog.ExceptionDialog
import tornadofx.*
import kotlin.system.exitProcess
class LoginView : View() {
class LoginView : View(WINDOW_TITLE) {
override val root by fxml<DialogPane>()
private val hostTextField by fxid<TextField>()

View File

@ -30,7 +30,7 @@ import tornadofx.*
/**
* The root view embeds the [Shell] and provides support for the status bar, and modal dialogs.
*/
class MainView : View() {
class MainView : View(WINDOW_TITLE) {
override val root by fxml<Parent>()
// Inject components.