mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Rename NetworkSettingsViewCB => NetworkSettingsView
This commit is contained in:
parent
4eb1b3994e
commit
a392d78fc2
@ -21,7 +21,7 @@
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.network.NetworkSettingsViewCB"
|
||||
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.network.NetworkSettingsView"
|
||||
hgap="5.0" vgap="5.0"
|
||||
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
|
||||
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"
|
||||
|
@ -18,19 +18,15 @@
|
||||
package io.bitsquare.gui.main.settings.network;
|
||||
|
||||
import io.bitsquare.btc.BitcoinNetwork;
|
||||
import io.bitsquare.gui.InitializableView;
|
||||
import io.bitsquare.network.ClientNode;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.Initializable;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
public class NetworkSettingsViewCB implements Initializable {
|
||||
public class NetworkSettingsView extends InitializableView {
|
||||
|
||||
private final String bitcoinNetworkValue;
|
||||
private final ClientNode clientNode;
|
||||
@ -38,13 +34,12 @@ public class NetworkSettingsViewCB implements Initializable {
|
||||
@FXML TextField bitcoinNetwork, connectionType, nodeAddress, bootstrapNodeAddress;
|
||||
|
||||
@Inject
|
||||
public NetworkSettingsViewCB(BitcoinNetwork bitcoinNetwork, ClientNode clientNode) {
|
||||
public NetworkSettingsView(BitcoinNetwork bitcoinNetwork, ClientNode clientNode) {
|
||||
this.bitcoinNetworkValue = bitcoinNetwork.toString();
|
||||
this.clientNode = clientNode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle rb) {
|
||||
public void initialize() {
|
||||
bitcoinNetwork.setText(bitcoinNetworkValue);
|
||||
connectionType.setText(clientNode.getConnectionType().toString());
|
||||
nodeAddress.setText(clientNode.getAddress().toString());
|
Loading…
Reference in New Issue
Block a user