Rename *ViewCB => *View

This commit is contained in:
Chris Beams 2014-11-22 15:42:16 +01:00
parent 4e6134a3a2
commit 71e2010a87
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
68 changed files with 230 additions and 250 deletions

View file

@ -20,7 +20,7 @@ package io.bitsquare.app;
import io.bitsquare.BitsquareException; import io.bitsquare.BitsquareException;
import io.bitsquare.btc.UserAgent; import io.bitsquare.btc.UserAgent;
import io.bitsquare.btc.WalletService; import io.bitsquare.btc.WalletService;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.persistence.Persistence; import io.bitsquare.persistence.Persistence;
import io.bitsquare.util.Utilities; import io.bitsquare.util.Utilities;
import io.bitsquare.util.spring.JOptCommandLinePropertySource; import io.bitsquare.util.spring.JOptCommandLinePropertySource;
@ -122,7 +122,7 @@ public class BitsquareEnvironment extends StandardEnvironment {
setProperty(Persistence.DIR_KEY, appDataDir); setProperty(Persistence.DIR_KEY, appDataDir);
setProperty(Persistence.PREFIX_KEY, appName + "_pref"); setProperty(Persistence.PREFIX_KEY, appName + "_pref");
setProperty(ViewCB.TITLE_KEY, appName); setProperty(View.TITLE_KEY, appName);
}}); }});
} }

View file

@ -30,14 +30,14 @@ import static com.google.common.base.Preconditions.checkNotNull;
* If caching is used for loader we use the CachedViewController for turning the controller into sleep mode if not * If caching is used for loader we use the CachedViewController for turning the controller into sleep mode if not
* active and awake it at reactivation. * active and awake it at reactivation.
*/ */
public abstract class CachedViewCB<M extends Activatable> extends ViewCB<M> implements Activatable { public abstract class CachedView<M extends Activatable> extends View<M> implements Activatable {
private static final Logger log = LoggerFactory.getLogger(CachedViewCB.class); private static final Logger log = LoggerFactory.getLogger(CachedView.class);
public CachedViewCB(M model) { public CachedView(M model) {
super(checkNotNull(model, "Model must not be null")); super(checkNotNull(model, "Model must not be null"));
} }
public CachedViewCB() { public CachedView() {
this((M) Activatable.NOOP_INSTANCE); this((M) Activatable.NOOP_INSTANCE);
} }

View file

@ -63,6 +63,6 @@ public class GuiModule extends BitsquareModule {
bind(Stage.class).toInstance(primaryStage); bind(Stage.class).toInstance(primaryStage);
Popups.primaryStage = primaryStage; Popups.primaryStage = primaryStage;
bindConstant().annotatedWith(Names.named(ViewCB.TITLE_KEY)).to(env.getRequiredProperty(ViewCB.TITLE_KEY)); bindConstant().annotatedWith(Names.named(View.TITLE_KEY)).to(env.getRequiredProperty(View.TITLE_KEY));
} }
} }

View file

@ -31,9 +31,9 @@ import org.slf4j.LoggerFactory;
/** /**
* Non caching version for code behind classes using the PM pattern * Non caching version for code behind classes using the PM pattern
*/ */
public abstract class ViewCB<M> implements Initializable { public abstract class View<M> implements Initializable {
private static final Logger log = LoggerFactory.getLogger(ViewCB.class); private static final Logger log = LoggerFactory.getLogger(View.class);
public static final String TITLE_KEY = "view.title"; public static final String TITLE_KEY = "view.title";
@ -44,11 +44,11 @@ public abstract class ViewCB<M> implements Initializable {
@FXML protected Parent root; @FXML protected Parent root;
public ViewCB(M model) { public View(M model) {
this.model = model; this.model = model;
} }
public ViewCB() { public View() {
this(null); this(null);
} }

View file

@ -22,7 +22,7 @@ import io.bitsquare.bank.BankAccount;
import io.bitsquare.gui.FxmlController; import io.bitsquare.gui.FxmlController;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import io.bitsquare.gui.components.SystemNotification; import io.bitsquare.gui.components.SystemNotification;
@ -125,8 +125,8 @@ public class MainViewCB extends FxmlController<Pane, MainModel> {
ViewLoader.Item loaded = viewLoader.load(navItems[1].getFxmlUrl()); ViewLoader.Item loaded = viewLoader.load(navItems[1].getFxmlUrl());
contentContainer.getChildren().setAll(loaded.view); contentContainer.getChildren().setAll(loaded.view);
if (loaded.controller instanceof ViewCB) if (loaded.controller instanceof View)
((ViewCB) loaded.controller).setParent(this); ((View) loaded.controller).setParent(this);
navButtons.getToggles().stream() navButtons.getToggles().stream()
.filter(toggle -> toggle instanceof ToggleButton) .filter(toggle -> toggle instanceof ToggleButton)

View file

@ -19,7 +19,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.AccountViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.AccountView"
prefHeight="630.0" prefWidth="1000.0" prefHeight="630.0" prefWidth="1000.0"
AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0" AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0"

View file

@ -17,9 +17,9 @@
package io.bitsquare.gui.main.account; package io.bitsquare.gui.main.account;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import java.net.URL; import java.net.URL;
@ -36,9 +36,9 @@ import javafx.scene.control.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class AccountViewCB extends CachedViewCB { public class AccountView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(AccountViewCB.class); private static final Logger log = LoggerFactory.getLogger(AccountView.class);
private Navigation.Listener navigationListener; private Navigation.Listener navigationListener;
private ChangeListener<Tab> tabChangeListener; private ChangeListener<Tab> tabChangeListener;
@ -55,7 +55,7 @@ public class AccountViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private AccountViewCB(AccountPM model, ViewLoader viewLoader, Navigation navigation) { private AccountView(AccountPM model, ViewLoader viewLoader, Navigation navigation) {
this.model = model; this.model = model;
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
@ -157,7 +157,7 @@ public class AccountViewCB extends CachedViewCB {
tab.setContent(loaded.view); tab.setContent(loaded.view);
((TabPane) root).getSelectionModel().select(tab); ((TabPane) root).getSelectionModel().select(tab);
Initializable childController = loaded.controller; Initializable childController = loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
return childController; return childController;
} }

View file

@ -17,8 +17,8 @@
package io.bitsquare.gui.main.account; package io.bitsquare.gui.main.account;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
public interface MultiStepNavigation { public interface MultiStepNavigation {
void nextStep(ViewCB useSettingsContext); void nextStep(View useSettingsContext);
} }

View file

@ -21,7 +21,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.ArbitratorSettingsViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.ArbitratorSettingsView"
prefHeight="660.0" prefWidth="1000.0" prefHeight="660.0" prefWidth="1000.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<VBox spacing="20"> <VBox spacing="20">

View file

@ -17,14 +17,10 @@
package io.bitsquare.gui.main.account.arbitrator; package io.bitsquare.gui.main.account.arbitrator;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.main.account.arbitrator.registration.ArbitratorRegistrationViewCB; import io.bitsquare.gui.main.account.arbitrator.registration.ArbitratorRegistrationView;
import java.net.URL;
import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
@ -35,13 +31,13 @@ import javafx.stage.Modality;
import javafx.stage.Stage; import javafx.stage.Stage;
// TODO Arbitration is very basic yet // TODO Arbitration is very basic yet
public class ArbitratorSettingsViewCB extends CachedViewCB { public class ArbitratorSettingsView extends CachedView {
private final ViewLoader viewLoader; private final ViewLoader viewLoader;
private final Navigation navigation; private final Navigation navigation;
private final Stage primaryStage; private final Stage primaryStage;
private ArbitratorRegistrationViewCB arbitratorRegistrationViewCB; private ArbitratorRegistrationView arbitratorRegistrationViewCB;
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@ -49,7 +45,7 @@ public class ArbitratorSettingsViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private ArbitratorSettingsViewCB(ViewLoader viewLoader, Navigation navigation, Stage primaryStage) { private ArbitratorSettingsView(ViewLoader viewLoader, Navigation navigation, Stage primaryStage) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
this.primaryStage = primaryStage; this.primaryStage = primaryStage;
@ -64,7 +60,7 @@ public class ArbitratorSettingsViewCB extends CachedViewCB {
@Override @Override
protected Initializable loadView(Navigation.Item navigationItem) { protected Initializable loadView(Navigation.Item navigationItem) {
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl(), false); ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl(), false);
arbitratorRegistrationViewCB = (ArbitratorRegistrationViewCB) loaded.controller; arbitratorRegistrationViewCB = (ArbitratorRegistrationView) loaded.controller;
final Stage stage = new Stage(); final Stage stage = new Stage();
stage.setTitle("Arbitrator"); stage.setTitle("Arbitrator");

View file

@ -18,7 +18,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.browser.ArbitratorBrowserViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.browser.ArbitratorBrowserView"
prefHeight="600" prefWidth="800" AnchorPane.bottomAnchor="30.0" AnchorPane.leftAnchor="10.0" prefHeight="600" prefWidth="800" AnchorPane.bottomAnchor="30.0" AnchorPane.leftAnchor="10.0"
AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -19,11 +19,11 @@ package io.bitsquare.gui.main.account.arbitrator.browser;
import io.bitsquare.account.AccountSettings; import io.bitsquare.account.AccountSettings;
import io.bitsquare.arbitrator.Arbitrator; import io.bitsquare.arbitrator.Arbitrator;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.main.account.arbitrator.profile.ArbitratorProfileViewCB; import io.bitsquare.gui.main.account.arbitrator.profile.ArbitratorProfileView;
import io.bitsquare.locale.LanguageUtil; import io.bitsquare.locale.LanguageUtil;
import io.bitsquare.msg.MessageService; import io.bitsquare.msg.MessageService;
import io.bitsquare.msg.listeners.ArbitratorListener; import io.bitsquare.msg.listeners.ArbitratorListener;
@ -44,7 +44,7 @@ import javafx.scene.layout.*;
import javafx.stage.Stage; import javafx.stage.Stage;
// TODO Arbitration is very basic yet // TODO Arbitration is very basic yet
public class ArbitratorBrowserViewCB extends CachedViewCB implements ArbitratorListener { public class ArbitratorBrowserView extends CachedView implements ArbitratorListener {
private final ViewLoader viewLoader; private final ViewLoader viewLoader;
private final AccountSettings accountSettings; private final AccountSettings accountSettings;
@ -54,7 +54,7 @@ public class ArbitratorBrowserViewCB extends CachedViewCB implements ArbitratorL
private final List<Arbitrator> allArbitrators = new ArrayList<>(); private final List<Arbitrator> allArbitrators = new ArrayList<>();
private Arbitrator currentArbitrator; private Arbitrator currentArbitrator;
private ArbitratorProfileViewCB arbitratorProfileViewCB; private ArbitratorProfileView arbitratorProfileViewCB;
private int index = -1; private int index = -1;
@FXML Button prevButton, nextButton, selectButton, closeButton; @FXML Button prevButton, nextButton, selectButton, closeButton;
@ -66,8 +66,8 @@ public class ArbitratorBrowserViewCB extends CachedViewCB implements ArbitratorL
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
public ArbitratorBrowserViewCB(ViewLoader viewLoader, AccountSettings accountSettings, Persistence persistence, public ArbitratorBrowserView(ViewLoader viewLoader, AccountSettings accountSettings, Persistence persistence,
MessageService messageService) { MessageService messageService) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.accountSettings = accountSettings; this.accountSettings = accountSettings;
this.persistence = persistence; this.persistence = persistence;
@ -121,8 +121,8 @@ public class ArbitratorBrowserViewCB extends CachedViewCB implements ArbitratorL
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl()); ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl());
((Pane) root).getChildren().set(0, loaded.view); ((Pane) root).getChildren().set(0, loaded.view);
Initializable childController = arbitratorProfileViewCB = (ArbitratorProfileViewCB) loaded.controller; Initializable childController = arbitratorProfileViewCB = (ArbitratorProfileView) loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
return childController; return childController;
} }

View file

@ -19,7 +19,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.profile.ArbitratorProfileViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.arbitrator.profile.ArbitratorProfileView"
hgap="5.0" vgap="5.0" AnchorPane.bottomAnchor="80.0" AnchorPane.leftAnchor="10.0" hgap="5.0" vgap="5.0" AnchorPane.bottomAnchor="80.0" AnchorPane.leftAnchor="10.0"
AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -18,22 +18,18 @@
package io.bitsquare.gui.main.account.arbitrator.profile; package io.bitsquare.gui.main.account.arbitrator.profile;
import io.bitsquare.arbitrator.Arbitrator; import io.bitsquare.arbitrator.Arbitrator;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.util.BSFormatter; import io.bitsquare.gui.util.BSFormatter;
import io.bitsquare.persistence.Persistence; import io.bitsquare.persistence.Persistence;
import io.bitsquare.settings.Preferences; import io.bitsquare.settings.Preferences;
import java.net.URL;
import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.control.*; import javafx.scene.control.*;
// TODO Arbitration is very basic yet // TODO Arbitration is very basic yet
public class ArbitratorProfileViewCB extends CachedViewCB { public class ArbitratorProfileView extends CachedView {
private final Preferences preferences; private final Preferences preferences;
@ -53,8 +49,8 @@ public class ArbitratorProfileViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
public ArbitratorProfileViewCB(Preferences preferences, Persistence persistence, public ArbitratorProfileView(Preferences preferences, Persistence persistence,
BSFormatter formatter) { BSFormatter formatter) {
this.preferences = preferences; this.preferences = preferences;
this.persistence = persistence; this.persistence = persistence;

View file

@ -21,7 +21,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" <AnchorPane fx:id="root"
fx:controller="io.bitsquare.gui.main.account.arbitrator.registration.ArbitratorRegistrationViewCB" fx:controller="io.bitsquare.gui.main.account.arbitrator.registration.ArbitratorRegistrationView"
prefHeight="600" prefWidth="800" AnchorPane.bottomAnchor="30.0" AnchorPane.leftAnchor="10.0" prefHeight="600" prefWidth="800" AnchorPane.bottomAnchor="30.0" AnchorPane.leftAnchor="10.0"
AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -20,7 +20,7 @@ package io.bitsquare.gui.main.account.arbitrator.registration;
import io.bitsquare.arbitrator.Arbitrator; import io.bitsquare.arbitrator.Arbitrator;
import io.bitsquare.arbitrator.Reputation; import io.bitsquare.arbitrator.Reputation;
import io.bitsquare.btc.WalletService; import io.bitsquare.btc.WalletService;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.confidence.ConfidenceProgressIndicator; import io.bitsquare.gui.components.confidence.ConfidenceProgressIndicator;
import io.bitsquare.gui.util.BSFormatter; import io.bitsquare.gui.util.BSFormatter;
import io.bitsquare.locale.BSResources; import io.bitsquare.locale.BSResources;
@ -61,8 +61,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
// TODO Arbitration is very basic yet // TODO Arbitration is very basic yet
public class ArbitratorRegistrationViewCB extends CachedViewCB { public class ArbitratorRegistrationView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(ArbitratorRegistrationViewCB.class); private static final Logger log = LoggerFactory.getLogger(ArbitratorRegistrationView.class);
private final Persistence persistence; private final Persistence persistence;
private final WalletService walletService; private final WalletService walletService;
@ -100,8 +100,8 @@ public class ArbitratorRegistrationViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private ArbitratorRegistrationViewCB(Persistence persistence, WalletService walletService, private ArbitratorRegistrationView(Persistence persistence, WalletService walletService,
MessageService messageService, User user, BSFormatter formatter) { MessageService messageService, User user, BSFormatter formatter) {
this.persistence = persistence; this.persistence = persistence;
this.walletService = walletService; this.walletService = walletService;
this.messageService = messageService; this.messageService = messageService;

View file

@ -22,7 +22,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.changepassword.ChangePasswordViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.changepassword.ChangePasswordView"
hgap="5.0" vgap="5.0" hgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.account.content.changepassword; package io.bitsquare.gui.main.account.content.changepassword;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
import io.bitsquare.gui.main.account.content.ContextAware; import io.bitsquare.gui.main.account.content.ContextAware;
import io.bitsquare.gui.main.help.Help; import io.bitsquare.gui.main.help.Help;
@ -36,9 +36,9 @@ import javafx.scene.layout.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class ChangePasswordViewCB extends ViewCB<ChangePasswordPM> implements ContextAware { public class ChangePasswordView extends View<ChangePasswordPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(ChangePasswordViewCB.class); private static final Logger log = LoggerFactory.getLogger(ChangePasswordView.class);
@FXML HBox buttonsHBox; @FXML HBox buttonsHBox;
@FXML Button saveButton, skipButton; @FXML Button saveButton, skipButton;
@ -50,7 +50,7 @@ public class ChangePasswordViewCB extends ViewCB<ChangePasswordPM> implements Co
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private ChangePasswordViewCB(ChangePasswordPM model) { private ChangePasswordView(ChangePasswordPM model) {
super(model); super(model);
} }

View file

@ -24,7 +24,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.fiat.FiatAccountViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.fiat.FiatAccountView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -19,7 +19,7 @@ package io.bitsquare.gui.main.account.content.fiat;
import io.bitsquare.bank.BankAccount; import io.bitsquare.bank.BankAccount;
import io.bitsquare.bank.BankAccountType; import io.bitsquare.bank.BankAccountType;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
@ -56,9 +56,9 @@ import org.slf4j.LoggerFactory;
import static javafx.beans.binding.Bindings.createBooleanBinding; import static javafx.beans.binding.Bindings.createBooleanBinding;
public class FiatAccountViewCB extends CachedViewCB<FiatAccountPM> implements ContextAware { public class FiatAccountView extends CachedView<FiatAccountPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(FiatAccountViewCB.class); private static final Logger log = LoggerFactory.getLogger(FiatAccountView.class);
@FXML HBox buttonsHBox; @FXML HBox buttonsHBox;
@FXML ComboBox<Region> regionComboBox; @FXML ComboBox<Region> regionComboBox;
@ -76,7 +76,7 @@ public class FiatAccountViewCB extends CachedViewCB<FiatAccountPM> implements Co
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
FiatAccountViewCB(FiatAccountPM model, OverlayManager overlayManager) { FiatAccountView(FiatAccountPM model, OverlayManager overlayManager) {
super(model); super(model);
this.overlayManager = overlayManager; this.overlayManager = overlayManager;

View file

@ -24,7 +24,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.irc.IrcAccountViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.irc.IrcAccountView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -18,7 +18,7 @@
package io.bitsquare.gui.main.account.content.irc; package io.bitsquare.gui.main.account.content.irc;
import io.bitsquare.bank.BankAccountType; import io.bitsquare.bank.BankAccountType;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
@ -47,9 +47,9 @@ import org.slf4j.LoggerFactory;
/* /*
Just temporary for giving the user a possibility to test the app via simulating the bank transfer in a IRC chat. Just temporary for giving the user a possibility to test the app via simulating the bank transfer in a IRC chat.
*/ */
public class IrcAccountViewCB extends CachedViewCB<IrcAccountPM> implements ContextAware { public class IrcAccountView extends CachedView<IrcAccountPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(IrcAccountViewCB.class); private static final Logger log = LoggerFactory.getLogger(IrcAccountView.class);
@FXML HBox buttonsHBox; @FXML HBox buttonsHBox;
@FXML InputTextField ircNickNameTextField; @FXML InputTextField ircNickNameTextField;
@ -63,7 +63,7 @@ public class IrcAccountViewCB extends CachedViewCB<IrcAccountPM> implements Cont
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
IrcAccountViewCB(IrcAccountPM model) { IrcAccountView(IrcAccountPM model) {
super(model); super(model);
} }

View file

@ -22,7 +22,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.password.PasswordViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.password.PasswordView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.account.content.password; package io.bitsquare.gui.main.account.content.password;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
import io.bitsquare.gui.main.account.content.ContextAware; import io.bitsquare.gui.main.account.content.ContextAware;
import io.bitsquare.gui.main.help.Help; import io.bitsquare.gui.main.help.Help;
@ -36,9 +36,9 @@ import javafx.scene.layout.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class PasswordViewCB extends ViewCB<PasswordPM> implements ContextAware { public class PasswordView extends View<PasswordPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(PasswordViewCB.class); private static final Logger log = LoggerFactory.getLogger(PasswordView.class);
@FXML HBox buttonsHBox; @FXML HBox buttonsHBox;
@FXML Button saveButton, skipButton; @FXML Button saveButton, skipButton;
@ -50,7 +50,7 @@ public class PasswordViewCB extends ViewCB<PasswordPM> implements ContextAware {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private PasswordViewCB(PasswordPM model) { private PasswordView(PasswordPM model) {
super(model); super(model);
} }

View file

@ -24,7 +24,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.registration.RegistrationViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.registration.RegistrationView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -18,7 +18,7 @@
package io.bitsquare.gui.main.account.content.registration; package io.bitsquare.gui.main.account.content.registration;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.components.AddressTextField; import io.bitsquare.gui.components.AddressTextField;
import io.bitsquare.gui.components.BalanceTextField; import io.bitsquare.gui.components.BalanceTextField;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
@ -48,9 +48,9 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class RegistrationViewCB extends ViewCB<RegistrationPM> implements ContextAware { public class RegistrationView extends View<RegistrationPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(RegistrationViewCB.class); private static final Logger log = LoggerFactory.getLogger(RegistrationView.class);
private final OverlayManager overlayManager; private final OverlayManager overlayManager;
@ -67,7 +67,7 @@ public class RegistrationViewCB extends ViewCB<RegistrationPM> implements Contex
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private RegistrationViewCB(RegistrationPM model, OverlayManager overlayManager) { private RegistrationView(RegistrationPM model, OverlayManager overlayManager) {
super(model); super(model);
this.overlayManager = overlayManager; this.overlayManager = overlayManager;
} }
@ -127,7 +127,7 @@ public class RegistrationViewCB extends ViewCB<RegistrationPM> implements Contex
getProperties().put("type", "CLOSE"); getProperties().put("type", "CLOSE");
try { try {
if (parent instanceof MultiStepNavigation) if (parent instanceof MultiStepNavigation)
((MultiStepNavigation) parent).nextStep(RegistrationViewCB.this); ((MultiStepNavigation) parent).nextStep(RegistrationView.this);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

View file

@ -22,13 +22,13 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.restrictions.RestrictionsViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.restrictions.RestrictionsView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<!-- <!--
languages languages
--> -->
<TitledGroupBg text="Add languages" GridPane.rowSpan="3"/> <TitledGroupBg text="Add languages" GridPane.rowSpan="3"/>
@ -47,7 +47,7 @@
<InfoDisplay gridPane="$root" onAction="#onOpenLanguagesHelp" rowIndex="2" <InfoDisplay gridPane="$root" onAction="#onOpenLanguagesHelp" rowIndex="2"
text="Trade with users who have at least 1 shared language."/> text="Trade with users who have at least 1 shared language."/>
<!-- <!--
countries countries
--> -->
<TitledGroupBg text="Add countries" GridPane.rowIndex="3" GridPane.rowSpan="3"> <TitledGroupBg text="Add countries" GridPane.rowIndex="3" GridPane.rowSpan="3">
@ -84,7 +84,7 @@
text="Restrict trades with these payments account countries."/> text="Restrict trades with these payments account countries."/>
<!-- <!--
arbitrators arbitrators
--> -->
<TitledGroupBg text="Add arbitrators" GridPane.rowIndex="6" GridPane.rowSpan="3"> <TitledGroupBg text="Add arbitrators" GridPane.rowIndex="6" GridPane.rowSpan="3">

View file

@ -18,7 +18,7 @@
package io.bitsquare.gui.main.account.content.restrictions; package io.bitsquare.gui.main.account.content.restrictions;
import io.bitsquare.arbitrator.Arbitrator; import io.bitsquare.arbitrator.Arbitrator;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
@ -50,9 +50,9 @@ import javafx.util.StringConverter;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class RestrictionsViewCB extends CachedViewCB<RestrictionsPM> implements ContextAware { public class RestrictionsView extends CachedView<RestrictionsPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(RestrictionsViewCB.class); private static final Logger log = LoggerFactory.getLogger(RestrictionsView.class);
@FXML ListView<Locale> languagesListView; @FXML ListView<Locale> languagesListView;
@FXML ListView<Country> countriesListView; @FXML ListView<Country> countriesListView;
@ -71,7 +71,7 @@ public class RestrictionsViewCB extends CachedViewCB<RestrictionsPM> implements
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private RestrictionsViewCB(RestrictionsPM model, ViewLoader viewLoader, Stage primaryStage) { private RestrictionsView(RestrictionsPM model, ViewLoader viewLoader, Stage primaryStage) {
super(model); super(model);
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.primaryStage = primaryStage; this.primaryStage = primaryStage;

View file

@ -23,7 +23,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.seedwords.SeedWordsViewCB" hgap="5.0" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.content.seedwords.SeedWordsView" hgap="5.0"
vgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.account.content.seedwords; package io.bitsquare.gui.main.account.content.seedwords;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
import io.bitsquare.gui.main.account.content.ContextAware; import io.bitsquare.gui.main.account.content.ContextAware;
import io.bitsquare.gui.main.help.Help; import io.bitsquare.gui.main.help.Help;
@ -36,9 +36,9 @@ import javafx.scene.layout.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class SeedWordsViewCB extends ViewCB<SeedWordsPM> implements ContextAware { public class SeedWordsView extends View<SeedWordsPM> implements ContextAware {
private static final Logger log = LoggerFactory.getLogger(SeedWordsViewCB.class); private static final Logger log = LoggerFactory.getLogger(SeedWordsView.class);
@FXML Button completedButton; @FXML Button completedButton;
@FXML TextArea seedWordsTextArea; @FXML TextArea seedWordsTextArea;
@ -49,7 +49,7 @@ public class SeedWordsViewCB extends ViewCB<SeedWordsPM> implements ContextAware
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private SeedWordsViewCB(SeedWordsPM model) { private SeedWordsView(SeedWordsPM model) {
super(model); super(model);
} }

View file

@ -19,7 +19,7 @@
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.settings.AccountSettingsViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.settings.AccountSettingsView"
prefHeight="660.0" prefWidth="1000.0" prefHeight="660.0" prefWidth="1000.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,9 +17,9 @@
package io.bitsquare.gui.main.account.settings; package io.bitsquare.gui.main.account.settings;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.main.account.content.ContextAware; import io.bitsquare.gui.main.account.content.ContextAware;
import io.bitsquare.gui.util.Colors; import io.bitsquare.gui.util.Colors;
@ -43,9 +43,9 @@ import de.jensd.fx.fontawesome.AwesomeIcon;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class AccountSettingsViewCB extends CachedViewCB { public class AccountSettingsView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(AccountSettingsViewCB.class); private static final Logger log = LoggerFactory.getLogger(AccountSettingsView.class);
private final ViewLoader viewLoader; private final ViewLoader viewLoader;
private final Navigation navigation; private final Navigation navigation;
@ -62,7 +62,7 @@ public class AccountSettingsViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private AccountSettingsViewCB(ViewLoader viewLoader, Navigation navigation) { private AccountSettingsView(ViewLoader viewLoader, Navigation navigation) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
} }
@ -139,7 +139,7 @@ public class AccountSettingsViewCB extends CachedViewCB {
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl()); ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl());
content.getChildren().setAll(loaded.view); content.getChildren().setAll(loaded.view);
childController = loaded.controller; childController = loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
((ContextAware) childController).useSettingsContext(true); ((ContextAware) childController).useSettingsContext(true);
return childController; return childController;
} }

View file

@ -19,7 +19,7 @@
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.setup.AccountSetupViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.account.setup.AccountSetupView"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<VBox fx:id="leftVBox" spacing="5" prefWidth="300" AnchorPane.bottomAnchor="20" AnchorPane.leftAnchor="15" <VBox fx:id="leftVBox" spacing="5" prefWidth="300" AnchorPane.bottomAnchor="20" AnchorPane.leftAnchor="15"

View file

@ -17,17 +17,16 @@
package io.bitsquare.gui.main.account.setup; package io.bitsquare.gui.main.account.setup;
import io.bitsquare.gui.Model;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.main.account.MultiStepNavigation; import io.bitsquare.gui.main.account.MultiStepNavigation;
import io.bitsquare.gui.main.account.content.ContextAware; import io.bitsquare.gui.main.account.content.ContextAware;
import io.bitsquare.gui.main.account.content.irc.IrcAccountViewCB; import io.bitsquare.gui.main.account.content.irc.IrcAccountView;
import io.bitsquare.gui.main.account.content.password.PasswordViewCB; import io.bitsquare.gui.main.account.content.password.PasswordView;
import io.bitsquare.gui.main.account.content.registration.RegistrationViewCB; import io.bitsquare.gui.main.account.content.registration.RegistrationView;
import io.bitsquare.gui.main.account.content.restrictions.RestrictionsViewCB; import io.bitsquare.gui.main.account.content.restrictions.RestrictionsView;
import io.bitsquare.gui.main.account.content.seedwords.SeedWordsViewCB; import io.bitsquare.gui.main.account.content.seedwords.SeedWordsView;
import java.net.URL; import java.net.URL;
@ -48,9 +47,9 @@ import org.slf4j.LoggerFactory;
/** /**
* This UI is not cached as it is normally only needed once. * This UI is not cached as it is normally only needed once.
*/ */
public class AccountSetupViewCB extends ViewCB implements MultiStepNavigation { public class AccountSetupView extends View implements MultiStepNavigation {
private static final Logger log = LoggerFactory.getLogger(AccountSetupViewCB.class); private static final Logger log = LoggerFactory.getLogger(AccountSetupView.class);
private WizardItem seedWords, password, fiatAccount, restrictions, registration; private WizardItem seedWords, password, fiatAccount, restrictions, registration;
private Navigation.Listener listener; private Navigation.Listener listener;
@ -67,7 +66,7 @@ public class AccountSetupViewCB extends ViewCB implements MultiStepNavigation {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private AccountSetupViewCB(ViewLoader viewLoader, Navigation navigation) { private AccountSetupView(ViewLoader viewLoader, Navigation navigation) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
} }
@ -153,24 +152,24 @@ public class AccountSetupViewCB extends ViewCB implements MultiStepNavigation {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public void nextStep(ViewCB childView) { public void nextStep(View childView) {
if (childView instanceof SeedWordsViewCB) { if (childView instanceof SeedWordsView) {
seedWords.onCompleted(); seedWords.onCompleted();
childController = password.show(); childController = password.show();
} }
else if (childView instanceof PasswordViewCB) { else if (childView instanceof PasswordView) {
password.onCompleted(); password.onCompleted();
childController = restrictions.show(); childController = restrictions.show();
} }
else if (childView instanceof RestrictionsViewCB) { else if (childView instanceof RestrictionsView) {
restrictions.onCompleted(); restrictions.onCompleted();
childController = fiatAccount.show(); childController = fiatAccount.show();
} }
else if (childView instanceof IrcAccountViewCB) { else if (childView instanceof IrcAccountView) {
fiatAccount.onCompleted(); fiatAccount.onCompleted();
childController = registration.show(); childController = registration.show();
} }
else if (childView instanceof RegistrationViewCB) { else if (childView instanceof RegistrationView) {
registration.onCompleted(); registration.onCompleted();
childController = null; childController = null;
@ -191,7 +190,7 @@ public class AccountSetupViewCB extends ViewCB implements MultiStepNavigation {
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl()); ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl());
content.getChildren().setAll(loaded.view); content.getChildren().setAll(loaded.view);
childController = loaded.controller; childController = loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
((ContextAware) childController).useSettingsContext(false); ((ContextAware) childController).useSettingsContext(false);
return childController; return childController;
} }
@ -200,15 +199,15 @@ public class AccountSetupViewCB extends ViewCB implements MultiStepNavigation {
class WizardItem extends HBox { class WizardItem extends HBox {
private static final Logger log = LoggerFactory.getLogger(WizardItem.class); private static final Logger log = LoggerFactory.getLogger(WizardItem.class);
private ViewCB childController; private View childController;
private final ImageView imageView; private final ImageView imageView;
private final Label titleLabel; private final Label titleLabel;
private final Label subTitleLabel; private final Label subTitleLabel;
private final AccountSetupViewCB host; private final AccountSetupView host;
private final Navigation.Item navigationItem; private final Navigation.Item navigationItem;
WizardItem(AccountSetupViewCB host, String title, String subTitle, WizardItem(AccountSetupView host, String title, String subTitle,
Navigation.Item navigationItem) { Navigation.Item navigationItem) {
this.host = host; this.host = host;
this.navigationItem = navigationItem; this.navigationItem = navigationItem;
@ -247,7 +246,7 @@ class WizardItem extends HBox {
getChildren().addAll(imageView, vBox); getChildren().addAll(imageView, vBox);
} }
ViewCB show() { View show() {
host.loadView(navigationItem); host.loadView(navigationItem);
/* navigation.navigationTo(Navigation.Item.MAIN, Navigation.Item.ACCOUNT, Navigation /* navigation.navigationTo(Navigation.Item.MAIN, Navigation.Item.ACCOUNT, Navigation
.Item.ACCOUNT_SETUP, .Item.ACCOUNT_SETUP,

View file

@ -18,7 +18,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.funds.FundsViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.funds.FundsView"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
AnchorPane.topAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,9 +17,9 @@
package io.bitsquare.gui.main.funds; package io.bitsquare.gui.main.funds;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import java.net.URL; import java.net.URL;
@ -33,7 +33,7 @@ import javafx.fxml.FXML;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.*; import javafx.scene.control.*;
public class FundsViewCB extends CachedViewCB { public class FundsView extends CachedView {
private Navigation.Listener navigationListener; private Navigation.Listener navigationListener;
private ChangeListener<Tab> tabChangeListener; private ChangeListener<Tab> tabChangeListener;
@ -50,7 +50,7 @@ public class FundsViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
FundsViewCB(ViewLoader viewLoader, Navigation navigation) { FundsView(ViewLoader viewLoader, Navigation navigation) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
} }
@ -120,7 +120,7 @@ public class FundsViewCB extends CachedViewCB {
currentTab.setContent(loaded.view); currentTab.setContent(loaded.view);
((TabPane) root).getSelectionModel().select(currentTab); ((TabPane) root).getSelectionModel().select(currentTab);
Initializable childController = loaded.controller; Initializable childController = loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
return childController; return childController;
} }

View file

@ -21,7 +21,7 @@
<?import javafx.scene.control.cell.*?> <?import javafx.scene.control.cell.*?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<VBox fx:id="root" fx:controller="io.bitsquare.gui.main.funds.transactions.TransactionsViewCB" <VBox fx:id="root" fx:controller="io.bitsquare.gui.main.funds.transactions.TransactionsView"
spacing="10" xmlns:fx="http://javafx.com/fxml"> spacing="10" xmlns:fx="http://javafx.com/fxml">
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>

View file

@ -18,7 +18,7 @@
package io.bitsquare.gui.main.funds.transactions; package io.bitsquare.gui.main.funds.transactions;
import io.bitsquare.btc.WalletService; import io.bitsquare.btc.WalletService;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import io.bitsquare.gui.util.BSFormatter; import io.bitsquare.gui.util.BSFormatter;
@ -42,8 +42,8 @@ import javafx.util.Callback;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class TransactionsViewCB extends CachedViewCB { public class TransactionsView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(TransactionsViewCB.class); private static final Logger log = LoggerFactory.getLogger(TransactionsView.class);
private final WalletService walletService; private final WalletService walletService;
private final BSFormatter formatter; private final BSFormatter formatter;
@ -59,7 +59,7 @@ public class TransactionsViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private TransactionsViewCB(WalletService walletService, BSFormatter formatter) { private TransactionsView(WalletService walletService, BSFormatter formatter) {
this.walletService = walletService; this.walletService = walletService;
this.formatter = formatter; this.formatter = formatter;
} }

View file

@ -21,7 +21,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.control.cell.*?> <?import javafx.scene.control.cell.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<VBox fx:id="root" fx:controller="io.bitsquare.gui.main.funds.withdrawal.WithdrawalViewCB" <VBox fx:id="root" fx:controller="io.bitsquare.gui.main.funds.withdrawal.WithdrawalView"
spacing="10" xmlns:fx="http://javafx.com/fxml"> spacing="10" xmlns:fx="http://javafx.com/fxml">
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>

View file

@ -22,7 +22,7 @@ import io.bitsquare.btc.FeePolicy;
import io.bitsquare.btc.Restrictions; import io.bitsquare.btc.Restrictions;
import io.bitsquare.btc.WalletService; import io.bitsquare.btc.WalletService;
import io.bitsquare.btc.listeners.BalanceListener; import io.bitsquare.btc.listeners.BalanceListener;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import io.bitsquare.gui.util.BSFormatter; import io.bitsquare.gui.util.BSFormatter;
import io.bitsquare.util.Utilities; import io.bitsquare.util.Utilities;
@ -59,8 +59,8 @@ import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class WithdrawalViewCB extends CachedViewCB { public class WithdrawalView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(WithdrawalViewCB.class); private static final Logger log = LoggerFactory.getLogger(WithdrawalView.class);
private final WalletService walletService; private final WalletService walletService;
@ -79,7 +79,7 @@ public class WithdrawalViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private WithdrawalViewCB(WalletService walletService, BSFormatter formatter) { private WithdrawalView(WalletService walletService, BSFormatter formatter) {
this.walletService = walletService; this.walletService = walletService;
this.formatter = formatter; this.formatter = formatter;
} }

View file

@ -20,7 +20,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.home.HomeViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.home.HomeView"
AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0" AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,19 +17,15 @@
package io.bitsquare.gui.main.home; package io.bitsquare.gui.main.home;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import java.net.URL;
import java.util.ResourceBundle;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
// home is just hosting the arbiters buttons yet, but that's just for dev, not clear yet what will be in home, // home is just hosting the arbiters buttons yet, but that's just for dev, not clear yet what will be in home,
// probably overview, event history, news, charts,... -> low prio // probably overview, event history, news, charts,... -> low prio
public class HomeViewCB extends CachedViewCB { public class HomeView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(HomeViewCB.class); private static final Logger log = LoggerFactory.getLogger(HomeView.class);
} }

View file

@ -20,7 +20,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.msg.MsgViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.msg.MsgView"
AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0" AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,13 +17,9 @@
package io.bitsquare.gui.main.msg; package io.bitsquare.gui.main.msg;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import java.net.URL;
import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
@ -34,8 +30,8 @@ import org.slf4j.LoggerFactory;
// will be probably only used for arbitration communication, will be renamed and the icon changed // will be probably only used for arbitration communication, will be renamed and the icon changed
public class MsgViewCB extends CachedViewCB { public class MsgView extends CachedView {
private static final Logger log = LoggerFactory.getLogger(MsgViewCB.class); private static final Logger log = LoggerFactory.getLogger(MsgView.class);
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@ -43,7 +39,7 @@ public class MsgViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private MsgViewCB() { private MsgView() {
} }

View file

@ -19,7 +19,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.PortfolioViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.PortfolioView"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" tabClosingPolicy="UNAVAILABLE"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,9 +17,9 @@
package io.bitsquare.gui.main.portfolio; package io.bitsquare.gui.main.portfolio;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.trade.TradeManager; import io.bitsquare.trade.TradeManager;
@ -34,7 +34,7 @@ import javafx.fxml.FXML;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.*; import javafx.scene.control.*;
public class PortfolioViewCB extends CachedViewCB { public class PortfolioView extends CachedView {
private Tab currentTab; private Tab currentTab;
private Navigation.Listener navigationListener; private Navigation.Listener navigationListener;
@ -52,7 +52,7 @@ public class PortfolioViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
PortfolioViewCB(ViewLoader viewLoader, Navigation navigation, TradeManager tradeManager) { PortfolioView(ViewLoader viewLoader, Navigation navigation, TradeManager tradeManager) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
this.tradeManager = tradeManager; this.tradeManager = tradeManager;
@ -130,7 +130,7 @@ public class PortfolioViewCB extends CachedViewCB {
currentTab.setContent(loaded.view); currentTab.setContent(loaded.view);
((TabPane) root).getSelectionModel().select(currentTab); ((TabPane) root).getSelectionModel().select(currentTab);
Initializable childController = loaded.controller; Initializable childController = loaded.controller;
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
return childController; return childController;
} }

View file

@ -21,7 +21,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.closed.ClosedTradesViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.closed.ClosedTradesView"
hgap="5.0" vgap="5" hgap="5.0" vgap="5"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<padding> <padding>

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.portfolio.closed; package io.bitsquare.gui.main.portfolio.closed;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import java.net.URL; import java.net.URL;
@ -34,8 +34,8 @@ import javafx.util.Callback;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class ClosedTradesViewCB extends CachedViewCB<ClosedTradesPM> { public class ClosedTradesView extends CachedView<ClosedTradesPM> {
private static final Logger log = LoggerFactory.getLogger(ClosedTradesViewCB.class); private static final Logger log = LoggerFactory.getLogger(ClosedTradesView.class);
@FXML TableColumn<ClosedTradesListItem, ClosedTradesListItem> priceColumn, amountColumn, volumeColumn, @FXML TableColumn<ClosedTradesListItem, ClosedTradesListItem> priceColumn, amountColumn, volumeColumn,
directionColumn, dateColumn, tradeIdColumn; directionColumn, dateColumn, tradeIdColumn;
@ -47,7 +47,7 @@ public class ClosedTradesViewCB extends CachedViewCB<ClosedTradesPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private ClosedTradesViewCB(ClosedTradesPM model) { private ClosedTradesView(ClosedTradesPM model) {
super(model); super(model);
} }

View file

@ -21,7 +21,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.offer.OffersViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.offer.OffersView"
hgap="5.0" vgap="5" hgap="5.0" vgap="5"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<padding> <padding>

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.portfolio.offer; package io.bitsquare.gui.main.portfolio.offer;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.components.Popups; import io.bitsquare.gui.components.Popups;
import io.bitsquare.util.Utilities; import io.bitsquare.util.Utilities;
@ -36,8 +36,8 @@ import javafx.util.Callback;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class OffersViewCB extends CachedViewCB<OffersPM> { public class OffersView extends CachedView<OffersPM> {
private static final Logger log = LoggerFactory.getLogger(OffersViewCB.class); private static final Logger log = LoggerFactory.getLogger(OffersView.class);
@FXML TableColumn<OfferListItem, OfferListItem> priceColumn, amountColumn, volumeColumn, @FXML TableColumn<OfferListItem, OfferListItem> priceColumn, amountColumn, volumeColumn,
directionColumn, dateColumn, offerIdColumn, removeItemColumn; directionColumn, dateColumn, offerIdColumn, removeItemColumn;
@ -49,7 +49,7 @@ public class OffersViewCB extends CachedViewCB<OffersPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private OffersViewCB(OffersPM model) { private OffersView(OffersPM model) {
super(model); super(model);
} }

View file

@ -28,7 +28,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.control.cell.*?> <?import javafx.scene.control.cell.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.pending.PendingTradesViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.portfolio.pending.PendingTradesView"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<ScrollPane fx:id="scrollPane" fitToWidth="true" fitToHeight="true" <ScrollPane fx:id="scrollPane" fitToWidth="true" fitToHeight="true"
@ -121,7 +121,7 @@
</GridPane.margin> </GridPane.margin>
</Button> </Button>
<!-- <!--
Payments Payments
--> -->
<TitledGroupBg fx:id="paymentsGroupBg" text="Payments details" GridPane.rowIndex="5" GridPane.rowSpan="6" <TitledGroupBg fx:id="paymentsGroupBg" text="Payments details" GridPane.rowIndex="5" GridPane.rowSpan="6"
@ -173,7 +173,7 @@
</GridPane.margin> </GridPane.margin>
</Button> </Button>
<!-- <!--
Summary Summary
--> -->
<TitledGroupBg fx:id="summaryGroupBg" text="Summary" GridPane.rowIndex="5" GridPane.rowSpan="5" <TitledGroupBg fx:id="summaryGroupBg" text="Summary" GridPane.rowIndex="5" GridPane.rowSpan="5"
@ -211,7 +211,7 @@
<InfoDisplay fx:id="summaryInfoDisplay" onAction="#onOpenSummaryHelp" rowIndex="9" gridPane="$gridPane" <InfoDisplay fx:id="summaryInfoDisplay" onAction="#onOpenSummaryHelp" rowIndex="9" gridPane="$gridPane"
managed="false" visible="false"/> managed="false" visible="false"/>
<!-- <!--
Withdraw Withdraw
--> -->
<TitledGroupBg fx:id="withdrawGroupBg" text="Withdraw your bitcoins" GridPane.rowIndex="10" <TitledGroupBg fx:id="withdrawGroupBg" text="Withdraw your bitcoins" GridPane.rowIndex="10"
@ -272,4 +272,3 @@
</GridPane> </GridPane>
</ScrollPane> </ScrollPane>
</AnchorPane> </AnchorPane>

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.portfolio.pending; package io.bitsquare.gui.main.portfolio.pending;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.components.InfoDisplay; import io.bitsquare.gui.components.InfoDisplay;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
@ -58,8 +58,8 @@ import javafx.util.StringConverter;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class PendingTradesViewCB extends CachedViewCB<PendingTradesPM> { public class PendingTradesView extends CachedView<PendingTradesPM> {
private static final Logger log = LoggerFactory.getLogger(PendingTradesViewCB.class); private static final Logger log = LoggerFactory.getLogger(PendingTradesView.class);
private ChangeListener<PendingTradesListItem> selectedItemChangeListener; private ChangeListener<PendingTradesListItem> selectedItemChangeListener;
@ -99,7 +99,7 @@ public class PendingTradesViewCB extends CachedViewCB<PendingTradesPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
PendingTradesViewCB(PendingTradesPM model, Navigation navigation) { PendingTradesView(PendingTradesPM model, Navigation navigation) {
super(model); super(model);
this.navigation = navigation; this.navigation = navigation;

View file

@ -19,7 +19,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.SettingsViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.SettingsView"
AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0" AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">

View file

@ -17,9 +17,9 @@
package io.bitsquare.gui.main.settings; package io.bitsquare.gui.main.settings;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewCB; import io.bitsquare.gui.View;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.settings.Preferences; import io.bitsquare.settings.Preferences;
@ -34,7 +34,7 @@ import javafx.fxml.FXML;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.*; import javafx.scene.control.*;
public class SettingsViewCB extends CachedViewCB { public class SettingsView extends CachedView {
private final ViewLoader viewLoader; private final ViewLoader viewLoader;
private final Navigation navigation; private final Navigation navigation;
@ -51,7 +51,7 @@ public class SettingsViewCB extends CachedViewCB {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
SettingsViewCB(ViewLoader viewLoader, Navigation navigation, Preferences preferences) { SettingsView(ViewLoader viewLoader, Navigation navigation, Preferences preferences) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
this.preferences = preferences; this.preferences = preferences;
@ -127,8 +127,8 @@ public class SettingsViewCB extends CachedViewCB {
tab.setContent(loaded.view); tab.setContent(loaded.view);
((TabPane) root).getSelectionModel().select(tab); ((TabPane) root).getSelectionModel().select(tab);
Initializable childController = loaded.controller; Initializable childController = loaded.controller;
if (childController instanceof ViewCB) if (childController instanceof View)
((ViewCB) childController).setParent(this); ((View) childController).setParent(this);
return childController; return childController;
} }

View file

@ -22,7 +22,7 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.application.PreferencesViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.settings.application.PreferencesView"
hgap="5.0" vgap="5.0" hgap="5.0" vgap="5.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.settings.application; package io.bitsquare.gui.main.settings.application;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import java.net.URL; import java.net.URL;
@ -34,9 +34,9 @@ import org.slf4j.LoggerFactory;
/** /**
* This UI is not cached as it is normally only needed once. * This UI is not cached as it is normally only needed once.
*/ */
public class PreferencesViewCB extends CachedViewCB<PreferencesPM> { public class PreferencesView extends CachedView<PreferencesPM> {
private static final Logger log = LoggerFactory.getLogger(PreferencesViewCB.class); private static final Logger log = LoggerFactory.getLogger(PreferencesView.class);
@FXML ComboBox<String> btcDenominationComboBox; @FXML ComboBox<String> btcDenominationComboBox;
@FXML CheckBox useAnimationsCheckBox, useEffectsCheckBox; @FXML CheckBox useAnimationsCheckBox, useEffectsCheckBox;
@ -47,7 +47,7 @@ public class PreferencesViewCB extends CachedViewCB<PreferencesPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private PreferencesViewCB(PreferencesPM model) { private PreferencesView(PreferencesPM model) {
super(model); super(model);
} }

View file

@ -19,7 +19,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.BuyViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.BuyView"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
AnchorPane.topAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml"/> xmlns:fx="http://javafx.com/fxml"/>

View file

@ -22,10 +22,10 @@ import io.bitsquare.gui.ViewLoader;
import javax.inject.Inject; import javax.inject.Inject;
public class BuyViewCB extends TradeViewCB { public class BuyView extends TradeView {
@Inject @Inject
public BuyViewCB(ViewLoader viewLoader, Navigation navigation) { public BuyView(ViewLoader viewLoader, Navigation navigation) {
super(viewLoader, navigation); super(viewLoader, navigation);
} }
} }

View file

@ -19,7 +19,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.SellViewCB" <TabPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.SellView"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
AnchorPane.topAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml"/> xmlns:fx="http://javafx.com/fxml"/>

View file

@ -22,10 +22,10 @@ import io.bitsquare.gui.ViewLoader;
import javax.inject.Inject; import javax.inject.Inject;
public class SellViewCB extends TradeViewCB { public class SellView extends TradeView {
@Inject @Inject
public SellViewCB(ViewLoader viewLoader, Navigation navigation) { public SellView(ViewLoader viewLoader, Navigation navigation) {
super(viewLoader, navigation); super(viewLoader, navigation);
} }
} }

View file

@ -17,13 +17,13 @@
package io.bitsquare.gui.main.trade; package io.bitsquare.gui.main.trade;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.ViewLoader; import io.bitsquare.gui.ViewLoader;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
import io.bitsquare.gui.main.trade.createoffer.CreateOfferViewCB; import io.bitsquare.gui.main.trade.createoffer.CreateOfferView;
import io.bitsquare.gui.main.trade.offerbook.OfferBookViewCB; import io.bitsquare.gui.main.trade.offerbook.OfferBookView;
import io.bitsquare.gui.main.trade.takeoffer.TakeOfferViewCB; import io.bitsquare.gui.main.trade.takeoffer.TakeOfferView;
import io.bitsquare.offer.Direction; import io.bitsquare.offer.Direction;
import io.bitsquare.offer.Offer; import io.bitsquare.offer.Offer;
@ -44,12 +44,12 @@ import javafx.scene.control.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class TradeViewCB extends CachedViewCB implements TradeNavigator { public class TradeView extends CachedView implements TradeNavigator {
private static final Logger log = LoggerFactory.getLogger(TradeViewCB.class); private static final Logger log = LoggerFactory.getLogger(TradeView.class);
private OfferBookViewCB offerBookViewCB; private OfferBookView offerBookViewCB;
private CreateOfferViewCB createOfferViewCB; private CreateOfferView createOfferViewCB;
private TakeOfferViewCB takeOfferViewCB; private TakeOfferView takeOfferViewCB;
private Node createOfferView; private Node createOfferView;
private Node takeOfferView; private Node takeOfferView;
private Navigation.Listener listener; private Navigation.Listener listener;
@ -67,7 +67,7 @@ public class TradeViewCB extends CachedViewCB implements TradeNavigator {
// Constructor // Constructor
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
protected TradeViewCB(ViewLoader viewLoader, Navigation navigation) { protected TradeView(ViewLoader viewLoader, Navigation navigation) {
this.viewLoader = viewLoader; this.viewLoader = viewLoader;
this.navigation = navigation; this.navigation = navigation;
} }
@ -79,7 +79,7 @@ public class TradeViewCB extends CachedViewCB implements TradeNavigator {
@Override @Override
public void initialize(URL url, ResourceBundle rb) { public void initialize(URL url, ResourceBundle rb) {
direction = (this instanceof BuyViewCB) ? Direction.BUY : Direction.SELL; direction = (this instanceof BuyView) ? Direction.BUY : Direction.SELL;
navigationItem = (direction == Direction.BUY) ? Navigation.Item.BUY : Navigation.Item.SELL; navigationItem = (direction == Direction.BUY) ? Navigation.Item.BUY : Navigation.Item.SELL;
listener = navigationItems -> { listener = navigationItems -> {
@ -160,7 +160,7 @@ public class TradeViewCB extends CachedViewCB implements TradeNavigator {
tab.setClosable(false); tab.setClosable(false);
tab.setContent(loaded.view); tab.setContent(loaded.view);
tabPane.getTabs().add(tab); tabPane.getTabs().add(tab);
offerBookViewCB = (OfferBookViewCB) loaded.controller; offerBookViewCB = (OfferBookView) loaded.controller;
offerBookViewCB.setParent(this); offerBookViewCB.setParent(this);
offerBookViewCB.setDirection(direction); offerBookViewCB.setDirection(direction);
@ -173,7 +173,7 @@ public class TradeViewCB extends CachedViewCB implements TradeNavigator {
// in different graphs // in different graphs
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl(), false); ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl(), false);
createOfferView = loaded.view; createOfferView = loaded.view;
createOfferViewCB = (CreateOfferViewCB) loaded.controller; createOfferViewCB = (CreateOfferView) loaded.controller;
createOfferViewCB.setParent(this); createOfferViewCB.setParent(this);
createOfferViewCB.initWithData(direction, amount, price); createOfferViewCB.initWithData(direction, amount, price);
final Tab tab = new Tab("Create offer"); final Tab tab = new Tab("Create offer");
@ -189,7 +189,7 @@ public class TradeViewCB extends CachedViewCB implements TradeNavigator {
// in different graphs // in different graphs
ViewLoader.Item loaded = viewLoader.load(Navigation.Item.TAKE_OFFER.getFxmlUrl(), false); ViewLoader.Item loaded = viewLoader.load(Navigation.Item.TAKE_OFFER.getFxmlUrl(), false);
takeOfferView = loaded.view; takeOfferView = loaded.view;
takeOfferViewCB = (TakeOfferViewCB) loaded.controller; takeOfferViewCB = (TakeOfferView) loaded.controller;
takeOfferViewCB.setParent(this); takeOfferViewCB.setParent(this);
takeOfferViewCB.initWithData(direction, amount, offer); takeOfferViewCB.initWithData(direction, amount, offer);
final Tab tab = new Tab("Take offer"); final Tab tab = new Tab("Take offer");

View file

@ -27,7 +27,7 @@
<?import javafx.scene.image.*?> <?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.createoffer.CreateOfferViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.createoffer.CreateOfferView"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" vbarPolicy="NEVER" fitToWidth="true" fitToHeight="true" <ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" vbarPolicy="NEVER" fitToWidth="true" fitToHeight="true"
@ -40,7 +40,7 @@
<Insets bottom="-10.0" left="25.0" top="30.0" right="25"/> <Insets bottom="-10.0" left="25.0" top="30.0" right="25"/>
</padding> </padding>
<!-- <!--
Amount/Price group Amount/Price group
--> -->
<TitledGroupBg fx:id="priceAmountPane" text="%createOffer.amountPriceBox.title" <TitledGroupBg fx:id="priceAmountPane" text="%createOffer.amountPriceBox.title"
@ -136,8 +136,8 @@
</GridPane.margin> </GridPane.margin>
</Button> </Button>
<!-- <!--
Pay funds group Pay funds group
--> -->
<TitledGroupBg fx:id="payFundsPane" text="%createOffer.fundsBox.title" GridPane.rowIndex="4" <TitledGroupBg fx:id="payFundsPane" text="%createOffer.fundsBox.title" GridPane.rowIndex="4"
GridPane.rowSpan="4" GridPane.columnSpan="3" visible="false"/> GridPane.rowSpan="4" GridPane.columnSpan="3" visible="false"/>
@ -195,7 +195,7 @@
</GridPane.margin> </GridPane.margin>
</HBox> </HBox>
<!-- <!--
Advanced settings group Advanced settings group
--> -->
<TitledGroupBg fx:id="showDetailsPane" text="%createOffer.advancedBox.title" GridPane.columnSpan="3" <TitledGroupBg fx:id="showDetailsPane" text="%createOffer.advancedBox.title" GridPane.columnSpan="3"
@ -282,4 +282,3 @@
</GridPane> </GridPane>
</ScrollPane> </ScrollPane>
</AnchorPane> </AnchorPane>

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.trade.createoffer; package io.bitsquare.gui.main.trade.createoffer;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.CloseListener; import io.bitsquare.gui.CloseListener;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
@ -73,8 +73,8 @@ import static javafx.beans.binding.Bindings.createStringBinding;
// TODO Implement other positioning method in InoutTextField to display it over the field instead of right side // TODO Implement other positioning method in InoutTextField to display it over the field instead of right side
// priceAmountHBox is too large after redesign as to be used as layoutReference. // priceAmountHBox is too large after redesign as to be used as layoutReference.
public class CreateOfferViewCB extends CachedViewCB<CreateOfferPM> { public class CreateOfferView extends CachedView<CreateOfferPM> {
private static final Logger log = LoggerFactory.getLogger(CreateOfferViewCB.class); private static final Logger log = LoggerFactory.getLogger(CreateOfferView.class);
private final Navigation navigation; private final Navigation navigation;
@ -117,8 +117,8 @@ public class CreateOfferViewCB extends CachedViewCB<CreateOfferPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private CreateOfferViewCB(CreateOfferPM model, Navigation navigation, private CreateOfferView(CreateOfferPM model, Navigation navigation,
OverlayManager overlayManager) { OverlayManager overlayManager) {
super(model); super(model);
this.navigation = navigation; this.navigation = navigation;
this.overlayManager = overlayManager; this.overlayManager = overlayManager;

View file

@ -24,7 +24,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.offerbook.OfferBookViewCB" <GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.offerbook.OfferBookView"
hgap="5.0" vgap="0" hgap="5.0" vgap="0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<padding> <padding>

View file

@ -17,7 +17,7 @@
package io.bitsquare.gui.main.trade.offerbook; package io.bitsquare.gui.main.trade.offerbook;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
@ -62,8 +62,8 @@ import static javafx.beans.binding.Bindings.createStringBinding;
* TODO: The advanced filters are not impl. yet * TODO: The advanced filters are not impl. yet
* The restrictions handling is open from the concept and is only implemented for countries yet. * The restrictions handling is open from the concept and is only implemented for countries yet.
*/ */
public class OfferBookViewCB extends CachedViewCB<OfferBookPM> { public class OfferBookView extends CachedView<OfferBookPM> {
private static final Logger log = LoggerFactory.getLogger(OfferBookViewCB.class); private static final Logger log = LoggerFactory.getLogger(OfferBookView.class);
private final Navigation navigation; private final Navigation navigation;
private final OverlayManager overlayManager; private final OverlayManager overlayManager;
@ -90,11 +90,11 @@ public class OfferBookViewCB extends CachedViewCB<OfferBookPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
OfferBookViewCB(OfferBookPM model, OfferBookView(OfferBookPM model,
Navigation navigation, Navigation navigation,
OverlayManager overlayManager, OverlayManager overlayManager,
OptionalBtcValidator optionalBtcValidator, OptionalBtcValidator optionalBtcValidator,
OptionalFiatValidator optionalFiatValidator) { OptionalFiatValidator optionalFiatValidator) {
super(model); super(model);
this.navigation = navigation; this.navigation = navigation;

View file

@ -27,7 +27,7 @@
<?import javafx.scene.image.*?> <?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.takeoffer.TakeOfferViewCB" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.takeoffer.TakeOfferView"
AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0"
AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
@ -42,7 +42,7 @@
<Insets bottom="-10.0" left="25.0" top="30.0" right="25"/> <Insets bottom="-10.0" left="25.0" top="30.0" right="25"/>
</padding> </padding>
<!-- <!--
Amount/Price group Amount/Price group
--> -->
<TitledGroupBg fx:id="priceAmountPane" text="%takeOffer.amountPriceBox.title" <TitledGroupBg fx:id="priceAmountPane" text="%takeOffer.amountPriceBox.title"
@ -129,8 +129,8 @@
</GridPane.margin> </GridPane.margin>
</Button> </Button>
<!-- <!--
Pay funds group Pay funds group
--> -->
<TitledGroupBg fx:id="payFundsPane" text="%takeOffer.fundsBox.title" GridPane.rowIndex="4" <TitledGroupBg fx:id="payFundsPane" text="%takeOffer.fundsBox.title" GridPane.rowIndex="4"
GridPane.rowSpan="4" GridPane.columnSpan="3" visible="false"/> GridPane.rowSpan="4" GridPane.columnSpan="3" visible="false"/>
@ -188,7 +188,7 @@
</GridPane.margin> </GridPane.margin>
</HBox> </HBox>
<!-- <!--
Advanced settings group Advanced settings group
--> -->
<TitledGroupBg fx:id="showDetailsPane" text="%takeOffer.advancedBox.title" GridPane.columnSpan="3" <TitledGroupBg fx:id="showDetailsPane" text="%takeOffer.advancedBox.title" GridPane.columnSpan="3"
@ -269,4 +269,3 @@
</GridPane> </GridPane>
</ScrollPane> </ScrollPane>
</AnchorPane> </AnchorPane>

View file

@ -18,7 +18,7 @@
package io.bitsquare.gui.main.trade.takeoffer; package io.bitsquare.gui.main.trade.takeoffer;
import io.bitsquare.gui.CachedViewCB; import io.bitsquare.gui.CachedView;
import io.bitsquare.gui.CloseListener; import io.bitsquare.gui.CloseListener;
import io.bitsquare.gui.Navigation; import io.bitsquare.gui.Navigation;
import io.bitsquare.gui.OverlayManager; import io.bitsquare.gui.OverlayManager;
@ -69,8 +69,8 @@ import org.controlsfx.dialog.Dialog;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class TakeOfferViewCB extends CachedViewCB<TakeOfferPM> { public class TakeOfferView extends CachedView<TakeOfferPM> {
private static final Logger log = LoggerFactory.getLogger(TakeOfferViewCB.class); private static final Logger log = LoggerFactory.getLogger(TakeOfferView.class);
private final Navigation navigation; private final Navigation navigation;
private final OverlayManager overlayManager; private final OverlayManager overlayManager;
@ -112,8 +112,8 @@ public class TakeOfferViewCB extends CachedViewCB<TakeOfferPM> {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private TakeOfferViewCB(TakeOfferPM model, Navigation navigation, private TakeOfferView(TakeOfferPM model, Navigation navigation,
OverlayManager overlayManager) { OverlayManager overlayManager) {
super(model); super(model);
this.navigation = navigation; this.navigation = navigation;

View file

@ -41,8 +41,8 @@
<logger name="io.bitsquare.gui.DataModel" level="WARN"/> <logger name="io.bitsquare.gui.DataModel" level="WARN"/>
<logger name="io.bitsquare.gui.ActivatableWithDelegate" level="WARN"/> <logger name="io.bitsquare.gui.ActivatableWithDelegate" level="WARN"/>
<logger name="io.bitsquare.gui.ViewController" level="WARN"/> <logger name="io.bitsquare.gui.ViewController" level="WARN"/>
<logger name="io.bitsquare.gui.ViewCB" level="WARN"/> <logger name="io.bitsquare.gui.View" level="WARN"/>
<logger name="io.bitsquare.gui.CachedViewCB" level="WARN"/> <logger name="io.bitsquare.gui.CachedView" level="WARN"/>
<logger name="io.bitsquare.gui.util.Profiler" level="WARN"/> <logger name="io.bitsquare.gui.util.Profiler" level="WARN"/>
<logger name="io.bitsquare.persistence.Persistence" level="WARN"/> <logger name="io.bitsquare.persistence.Persistence" level="WARN"/>
<logger name="io.bitsquare.locale.BSResources" level="OFF"/> <logger name="io.bitsquare.locale.BSResources" level="OFF"/>