Browse Source

delete unneeded partial in/out panes

bwt
Craig Raw 5 years ago
parent
commit
16bac7326e
  1. 19
      src/main/java/com/sparrowwallet/sparrow/transaction/PartialInputController.java
  2. 25
      src/main/java/com/sparrowwallet/sparrow/transaction/PartialInputForm.java
  3. 19
      src/main/java/com/sparrowwallet/sparrow/transaction/PartialOutputController.java
  4. 25
      src/main/java/com/sparrowwallet/sparrow/transaction/PartialOutputForm.java
  5. 14
      src/main/resources/com/sparrowwallet/sparrow/transaction/partialinput.fxml
  6. 14
      src/main/resources/com/sparrowwallet/sparrow/transaction/partialoutput.fxml

19
src/main/java/com/sparrowwallet/sparrow/transaction/PartialInputController.java

@ -1,19 +0,0 @@
package com.sparrowwallet.sparrow.transaction;
import javafx.fxml.Initializable;
import java.net.URL;
import java.util.ResourceBundle;
public class PartialInputController extends TransactionFormController implements Initializable {
private PartialInputForm partialInputForm;
@Override
public void initialize(URL location, ResourceBundle resources) {
}
public void setModel(PartialInputForm form) {
this.partialInputForm = form;
}
}

25
src/main/java/com/sparrowwallet/sparrow/transaction/PartialInputForm.java

@ -1,25 +0,0 @@
package com.sparrowwallet.sparrow.transaction;
import com.sparrowwallet.drongo.protocol.Transaction;
import com.sparrowwallet.drongo.psbt.PSBTInput;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import java.io.IOException;
public class PartialInputForm extends TransactionForm {
private PSBTInput psbtInput;
public PartialInputForm(Transaction transaction, PSBTInput psbtInput) {
super(transaction);
this.psbtInput = psbtInput;
}
public Node getContents() throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("partialinput.fxml"));
Node node = loader.load();
PartialInputController controller = loader.getController();
controller.setModel(this);
return node;
}
}

19
src/main/java/com/sparrowwallet/sparrow/transaction/PartialOutputController.java

@ -1,19 +0,0 @@
package com.sparrowwallet.sparrow.transaction;
import javafx.fxml.Initializable;
import java.net.URL;
import java.util.ResourceBundle;
public class PartialOutputController extends TransactionFormController implements Initializable {
private PartialOutputForm partialOutputForm;
@Override
public void initialize(URL location, ResourceBundle resources) {
}
public void setModel(PartialOutputForm form) {
this.partialOutputForm = form;
}
}

25
src/main/java/com/sparrowwallet/sparrow/transaction/PartialOutputForm.java

@ -1,25 +0,0 @@
package com.sparrowwallet.sparrow.transaction;
import com.sparrowwallet.drongo.protocol.Transaction;
import com.sparrowwallet.drongo.psbt.PSBTOutput;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import java.io.IOException;
public class PartialOutputForm extends TransactionForm {
private PSBTOutput psbtOutput;
public PartialOutputForm(Transaction transaction, PSBTOutput psbtOutput) {
super(transaction);
this.psbtOutput = psbtOutput;
}
public Node getContents() throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("partialoutput.fxml"));
Node node = loader.load();
PartialOutputController controller = loader.getController();
controller.setModel(this);
return node;
}
}

14
src/main/resources/com/sparrowwallet/sparrow/transaction/partialinput.fxml

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="com.sparrowwallet.sparrow.transaction.PartialInputController"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>

14
src/main/resources/com/sparrowwallet/sparrow/transaction/partialoutput.fxml

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="com.sparrowwallet.sparrow.transaction.PartialOutputController"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>
Loading…
Cancel
Save