Rename NetworkSettingsViewCB => NetworkSettingsView

This commit is contained in:
Chris Beams 2014-11-23 05:17:59 +01:00
parent 4eb1b3994e
commit a392d78fc2
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
2 changed files with 5 additions and 10 deletions

View File

@ -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"

View File

@ -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());