mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-15 10:26:37 -04:00
Apply formatting to strip trailing whitespace
This commit is contained in:
parent
98c6e34b23
commit
1955250ae8
@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* Well known node which is reachable for all peers for bootstrapping.
|
||||
* There will be several SeedNodes running on several servers.
|
||||
* <p>
|
||||
* <p/>
|
||||
* TODO: Alternative bootstrap methods will follow later (save locally list of known nodes reported form other peers...)
|
||||
*/
|
||||
public class SeedNode extends Thread {
|
||||
|
@ -103,7 +103,7 @@ public class GuiceFXMLLoader {
|
||||
* A JavaFX controller factory for constructing controllers via Guice DI. To
|
||||
* install this in the {@link javafx.fxml.FXMLLoader}, pass it as a parameter to
|
||||
* {@link javafx.fxml.FXMLLoader#setControllerFactory(javafx.util.Callback)}.
|
||||
* <p>
|
||||
* <p/>
|
||||
* Once set, make sure you do <b>not</b> use the static methods on
|
||||
* {@link javafx.fxml.FXMLLoader} when creating your JavaFX node.
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* TextField with validation support. Validation is executed on the Validator object.
|
||||
* In case of a invalid result we display a error message with a PopOver.
|
||||
* The position is derived from the textField or if set from the errorPopupLayoutReference object.
|
||||
* <p>
|
||||
* <p/>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public class ValidatingTextField extends TextField {
|
||||
|
@ -43,22 +43,22 @@ import javafx.scene.control.*;
|
||||
* <p>
|
||||
* ProgressIndicator sets focusTraversable to false.
|
||||
* </p>
|
||||
* <p>
|
||||
* <p>
|
||||
* <p/>
|
||||
* <p/>
|
||||
* This first example creates a ProgressIndicator with an indeterminate value :
|
||||
* <pre><code>
|
||||
* import javafx.scene.control.ProgressIndicator;
|
||||
* ProgressIndicator p1 = new ProgressIndicator();
|
||||
* </code></pre>
|
||||
* <p>
|
||||
* <p>
|
||||
* <p/>
|
||||
* <p/>
|
||||
* This next example creates a ProgressIndicator which is 25% complete :
|
||||
* <pre><code>
|
||||
* import javafx.scene.control.ProgressIndicator;
|
||||
* ProgressIndicator p2 = new ProgressIndicator();
|
||||
* p2.setProgress(0.25F);
|
||||
* </code></pre>
|
||||
* <p>
|
||||
* <p/>
|
||||
* Implementation of ProgressIndicator According to JavaFX UI Control API Specification
|
||||
*
|
||||
* @since JavaFX 2.0
|
||||
@ -81,7 +81,7 @@ public class ConfidenceProgressIndicator extends Control {
|
||||
**************************************************************************/
|
||||
/**
|
||||
* Initialize the style class to 'progress-indicator'.
|
||||
* <p>
|
||||
* <p/>
|
||||
* This is the selector class from which CSS can be used to style
|
||||
* this control.
|
||||
*/
|
||||
|
@ -41,20 +41,20 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Code behind (FXML Controller is part of View, not a classical controller from MVC):
|
||||
* <p>
|
||||
* <p/>
|
||||
* Creates Presenter and passes Model from DI to Presenter. Does not hold a reference to Model
|
||||
* <p>
|
||||
* <p/>
|
||||
* - Setup binding from Presenter to View elements (also bidirectional - Inputs). Binding are only to presenters
|
||||
* properties, not logical bindings or cross-view element bindings.
|
||||
* - Listen to UI events (Action) from View and call method in Presenter.
|
||||
* - Is entry node for hierarchical view graphs. Passes method calls to Presenter. Calls methods on sub views.
|
||||
* - Handle lifecycle and self removal from scene graph.
|
||||
* - Non declarative (dynamic) view definitions (if it gets larger, then user a ViewBuilder)
|
||||
* <p>
|
||||
* <p/>
|
||||
* View:
|
||||
* - Mostly declared in FXML. Dynamic parts are declared in Controller. If more view elements need to be defined in
|
||||
* code then use ViewBuilder.
|
||||
* <p>
|
||||
* <p/>
|
||||
* Optional ViewBuilder:
|
||||
* - Replacement for FXML view definitions.
|
||||
*/
|
||||
@ -211,7 +211,7 @@ public class CreateOfferCodeBehind extends CachedViewController {
|
||||
transactionIdTextField.visibleProperty().bind(viewModel.isOfferPlacedScreen);
|
||||
*/
|
||||
|
||||
// TODO
|
||||
// TODO
|
||||
/* placeOfferButton.disableProperty().bind(amountTextField.isValidProperty()
|
||||
.and(minAmountTextField.isValidProperty())
|
||||
.and(volumeTextField.isValidProperty())
|
||||
@ -294,4 +294,3 @@ public class CreateOfferCodeBehind extends CachedViewController {
|
||||
}*/
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ import static com.google.common.base.Preconditions.checkArgument;
|
||||
* Model:
|
||||
* Does not know the Presenter and View (CodeBehind)
|
||||
* Use Guice for DI
|
||||
* <p>
|
||||
* <p/>
|
||||
* - Holds domain data
|
||||
* - Use Properties for bindable data
|
||||
*/
|
||||
|
@ -43,11 +43,11 @@ import static javafx.beans.binding.Bindings.createStringBinding;
|
||||
/**
|
||||
* Presenter:
|
||||
* Knows Model, does not know the View (CodeBehind)
|
||||
* <p>
|
||||
* <p/>
|
||||
* - Holds data and state of the View (formatted)
|
||||
* - Receive view input from Controller. Validates input, apply business logic, format to Presenter properties and
|
||||
* - Receive view input from Controller. Validates input, apply business logic, format to Presenter properties and
|
||||
* convert input to Model.
|
||||
* - Listen to updates from Model, apply business logic and format it to Presenter properties. Model update handling
|
||||
* - Listen to updates from Model, apply business logic and format it to Presenter properties. Model update handling
|
||||
* can be done via Binding.
|
||||
*/
|
||||
class CreateOfferPresenter {
|
||||
@ -102,7 +102,7 @@ class CreateOfferPresenter {
|
||||
|
||||
collateralLabel.bind(Bindings.createStringBinding(() -> "Collateral (" + BSFormatter.formatCollateralPercent
|
||||
(model.collateralAsLong.get()) + "):", model.collateralAsLong));
|
||||
bankAccountType.bind(Bindings.createStringBinding(() -> Localisation.get(model.bankAccountType.get()),
|
||||
bankAccountType.bind(Bindings.createStringBinding(() -> Localisation.get(model.bankAccountType.get()),
|
||||
model.bankAccountType));
|
||||
bankAccountCurrency.bind(model.bankAccountCurrency);
|
||||
bankAccountCounty.bind(model.bankAccountCounty);
|
||||
@ -166,7 +166,7 @@ class CreateOfferPresenter {
|
||||
placeOfferButtonVisible.set(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
{
|
||||
isOfferPlacedScreen.set(true);
|
||||
@ -185,7 +185,7 @@ class CreateOfferPresenter {
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
private boolean inputValid() {
|
||||
@ -249,7 +249,7 @@ class CreateOfferPresenter {
|
||||
|
||||
if (model.collateralAsCoin != null) {
|
||||
model.totalToPayAsCoin.set(model.collateralAsCoin.add(model.totalFeesAsCoin));
|
||||
totalToPay.bind(createStringBinding(() -> formatBtcWithCode(model.totalToPayAsCoin.get()),
|
||||
totalToPay.bind(createStringBinding(() -> formatBtcWithCode(model.totalToPayAsCoin.get()),
|
||||
model.totalToPayAsCoin));
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* BtcValidator for validating BTC values.
|
||||
* <p>
|
||||
* <p/>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public class BtcValidator extends NumberValidator {
|
||||
|
@ -22,7 +22,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* FiatNumberValidator for validating fiat values.
|
||||
* <p>
|
||||
* <p/>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public class FiatValidator extends NumberValidator {
|
||||
|
@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
|
||||
* Localisation not supported at the moment
|
||||
* The decimal mark can be either "." or ",". Thousand separators are not supported yet,
|
||||
* but might be added alter with Local support.
|
||||
* <p>
|
||||
* <p/>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public abstract class NumberValidator {
|
||||
|
@ -67,7 +67,7 @@ import org.slf4j.LoggerFactory;
|
||||
* It is the translating domain specific functionality to the messaging layer.
|
||||
* The TomP2P library codebase shall not be used outside that facade.
|
||||
* That way we limit the dependency of the TomP2P library only to that class (and it's sub components).
|
||||
* <p>
|
||||
* <p/>
|
||||
* TODO: improve callbacks that Platform.runLater is not necessary. We call usually that methods form teh UI thread.
|
||||
*/
|
||||
public class MessageFacade implements MessageBroker {
|
||||
|
@ -50,9 +50,9 @@ import static io.bitsquare.util.Validator.*;
|
||||
/**
|
||||
* Responsible for the correct execution of the sequence of tasks, message passing to the peer and message processing
|
||||
* from the peer.
|
||||
* <p>
|
||||
* <p/>
|
||||
* This class handles the role of the offerer as the Bitcoin buyer.
|
||||
* <p>
|
||||
* <p/>
|
||||
* It uses sub tasks to not pollute the main class too much with all the async result/fault handling.
|
||||
* Any data from incoming messages need to be validated before further processing.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user