Convert sources to unix line endings

Performed with the following command:

    $ git ls-files | xargs dos2unix
This commit is contained in:
Chris Beams 2014-08-26 08:55:13 +02:00
parent 26b8bb09be
commit 681f2d55b8
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
7 changed files with 1342 additions and 1342 deletions

View file

@ -1,86 +1,86 @@
/* /*
* This file is part of Bitsquare. * This file is part of Bitsquare.
* *
* Bitsquare is free software: you can redistribute it and/or modify it * Bitsquare is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by * under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at * the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. * your option) any later version.
* *
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details. * License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. * along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
*/ */
package io.bitsquare.gui.funds; package io.bitsquare.gui.funds;
import io.bitsquare.gui.CachedViewController; import io.bitsquare.gui.CachedViewController;
import io.bitsquare.gui.NavigationItem; import io.bitsquare.gui.NavigationItem;
import io.bitsquare.gui.ViewController; import io.bitsquare.gui.ViewController;
import io.bitsquare.gui.components.CachingTabPane; import io.bitsquare.gui.components.CachingTabPane;
import io.bitsquare.storage.Persistence; import io.bitsquare.storage.Persistence;
import java.net.URL; import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class FundsController extends CachedViewController public class FundsController extends CachedViewController
{ {
private static final Logger log = LoggerFactory.getLogger(FundsController.class); private static final Logger log = LoggerFactory.getLogger(FundsController.class);
private final Persistence persistence; private final Persistence persistence;
private ViewController childController; private ViewController childController;
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Constructor // Constructor
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private FundsController(Persistence persistence) private FundsController(Persistence persistence)
{ {
this.persistence = persistence; this.persistence = persistence;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Lifecycle // Lifecycle
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public void initialize(URL url, ResourceBundle rb) public void initialize(URL url, ResourceBundle rb)
{ {
super.initialize(url, rb); super.initialize(url, rb);
((CachingTabPane) root).initialize(this, persistence, NavigationItem.DEPOSIT.getFxmlUrl(), NavigationItem.WITHDRAWAL.getFxmlUrl(), NavigationItem.TRANSACTIONS.getFxmlUrl()); ((CachingTabPane) root).initialize(this, persistence, NavigationItem.DEPOSIT.getFxmlUrl(), NavigationItem.WITHDRAWAL.getFxmlUrl(), NavigationItem.TRANSACTIONS.getFxmlUrl());
} }
@Override @Override
public void deactivate() public void deactivate()
{ {
super.deactivate(); super.deactivate();
} }
@Override @Override
public void activate() public void activate()
{ {
super.activate(); super.activate();
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Navigation // Navigation
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public ViewController loadViewAndGetChildController(NavigationItem navigationItem) public ViewController loadViewAndGetChildController(NavigationItem navigationItem)
{ {
childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl()); childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl());
return childController; return childController;
} }
} }

View file

@ -1,31 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
~ This file is part of Bitsquare. ~ This file is part of Bitsquare.
~ ~
~ Bitsquare is free software: you can redistribute it and/or modify it ~ Bitsquare is free software: you can redistribute it and/or modify it
~ under the terms of the GNU Affero General Public License as published by ~ under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or (at ~ the Free Software Foundation, either version 3 of the License, or (at
~ your option) any later version. ~ your option) any later version.
~ ~
~ Bitsquare is distributed in the hope that it will be useful, but WITHOUT ~ Bitsquare is distributed in the hope that it will be useful, but WITHOUT
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
~ License for more details. ~ License for more details.
~ ~
~ You should have received a copy of the GNU Affero General Public License ~ You should have received a copy of the GNU Affero General Public License
~ along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. ~ along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
--> -->
<?import io.bitsquare.gui.components.CachingTabPane?> <?import io.bitsquare.gui.components.CachingTabPane?>
<?import javafx.scene.control.Tab?> <?import javafx.scene.control.Tab?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<CachingTabPane fx:id="root" fx:controller="io.bitsquare.gui.funds.FundsController" <CachingTabPane fx:id="root" fx:controller="io.bitsquare.gui.funds.FundsController"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<Tab text="Deposit" closable="false"/> <Tab text="Deposit" closable="false"/>
<Tab text="Withdrawal" closable="false"/> <Tab text="Withdrawal" closable="false"/>
<Tab text="Transactions" closable="false"/> <Tab text="Transactions" closable="false"/>
</CachingTabPane> </CachingTabPane>

View file

@ -1,126 +1,126 @@
/* /*
* This file is part of Bitsquare. * This file is part of Bitsquare.
* *
* Bitsquare is free software: you can redistribute it and/or modify it * Bitsquare is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by * under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at * the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. * your option) any later version.
* *
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details. * License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. * along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
*/ */
package io.bitsquare.gui.home; package io.bitsquare.gui.home;
import io.bitsquare.BitSquare; import io.bitsquare.BitSquare;
import io.bitsquare.di.GuiceFXMLLoader; import io.bitsquare.di.GuiceFXMLLoader;
import io.bitsquare.gui.CachedViewController; import io.bitsquare.gui.CachedViewController;
import io.bitsquare.gui.NavigationItem; import io.bitsquare.gui.NavigationItem;
import io.bitsquare.gui.ViewController; import io.bitsquare.gui.ViewController;
import io.bitsquare.gui.arbitrators.registration.ArbitratorRegistrationController; import io.bitsquare.gui.arbitrators.registration.ArbitratorRegistrationController;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.Parent; import javafx.scene.Parent;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.stage.Modality; import javafx.stage.Modality;
import javafx.stage.Stage; import javafx.stage.Stage;
public class HomeController extends CachedViewController public class HomeController extends CachedViewController
{ {
private ArbitratorRegistrationController arbitratorRegistrationController; private ArbitratorRegistrationController arbitratorRegistrationController;
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Lifecycle // Lifecycle
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public void initialize(URL url, ResourceBundle rb) public void initialize(URL url, ResourceBundle rb)
{ {
super.initialize(url, rb); super.initialize(url, rb);
} }
@Override @Override
public void terminate() public void terminate()
{ {
super.terminate(); super.terminate();
} }
@Override @Override
public void deactivate() public void deactivate()
{ {
super.deactivate(); super.deactivate();
} }
@Override @Override
public void activate() public void activate()
{ {
super.activate(); super.activate();
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Navigation // Navigation
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public ViewController loadViewAndGetChildController(NavigationItem navigationItem) public ViewController loadViewAndGetChildController(NavigationItem navigationItem)
{ {
// don't use caching here, cause exc. -> need to investigate and is rarely called so no caching is better // don't use caching here, cause exc. -> need to investigate and is rarely called so no caching is better
final GuiceFXMLLoader loader = new GuiceFXMLLoader(getClass().getResource(navigationItem.getFxmlUrl()), false); final GuiceFXMLLoader loader = new GuiceFXMLLoader(getClass().getResource(navigationItem.getFxmlUrl()), false);
try try
{ {
final Parent view = loader.load(); final Parent view = loader.load();
arbitratorRegistrationController = loader.getController(); arbitratorRegistrationController = loader.getController();
arbitratorRegistrationController.setParentController(this); arbitratorRegistrationController.setParentController(this);
final Stage rootStage = BitSquare.getPrimaryStage(); final Stage rootStage = BitSquare.getPrimaryStage();
final Stage stage = new Stage(); final Stage stage = new Stage();
stage.setTitle("Arbitrator"); stage.setTitle("Arbitrator");
stage.setMinWidth(800); stage.setMinWidth(800);
stage.setMinHeight(400); stage.setMinHeight(400);
stage.setWidth(800); stage.setWidth(800);
stage.setHeight(600); stage.setHeight(600);
stage.setX(rootStage.getX() + 50); stage.setX(rootStage.getX() + 50);
stage.setY(rootStage.getY() + 50); stage.setY(rootStage.getY() + 50);
stage.initModality(Modality.WINDOW_MODAL); stage.initModality(Modality.WINDOW_MODAL);
stage.initOwner(rootStage); stage.initOwner(rootStage);
Scene scene = new Scene(view, 800, 600); Scene scene = new Scene(view, 800, 600);
stage.setScene(scene); stage.setScene(scene);
stage.show(); stage.show();
return arbitratorRegistrationController; return arbitratorRegistrationController;
} catch (IOException e) } catch (IOException e)
{ {
e.printStackTrace(); e.printStackTrace();
} }
return null; return null;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// UI Handlers // UI Handlers
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@FXML @FXML
public void onArbitratorRegistration() public void onArbitratorRegistration()
{ {
loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION);
} }
@FXML @FXML
public void onArbitratorEdit() public void onArbitratorEdit()
{ {
loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION);
arbitratorRegistrationController.setEditMode(true); arbitratorRegistrationController.setEditMode(true);
} }
} }

View file

@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
~ This file is part of Bitsquare. ~ This file is part of Bitsquare.
~ ~
~ Bitsquare is free software: you can redistribute it and/or modify it ~ Bitsquare is free software: you can redistribute it and/or modify it
~ under the terms of the GNU Affero General Public License as published by ~ under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or (at ~ the Free Software Foundation, either version 3 of the License, or (at
~ your option) any later version. ~ your option) any later version.
~ ~
~ Bitsquare is distributed in the hope that it will be useful, but WITHOUT ~ Bitsquare is distributed in the hope that it will be useful, but WITHOUT
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
~ License for more details. ~ License for more details.
~ ~
~ You should have received a copy of the GNU Affero General Public License ~ You should have received a copy of the GNU Affero General Public License
~ along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. ~ along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
--> -->
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.home.HomeController" <AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.home.HomeController"
AnchorPane.bottomAnchor="30" AnchorPane.leftAnchor="10" AnchorPane.rightAnchor="10" AnchorPane.topAnchor="10" AnchorPane.bottomAnchor="30" AnchorPane.leftAnchor="10" AnchorPane.rightAnchor="10" AnchorPane.topAnchor="10"
xmlns:fx="http://javafx.com/fxml"> xmlns:fx="http://javafx.com/fxml">
<VBox spacing="20" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <VBox spacing="20" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<Label id="headline-label" text="Overview"/> <Label id="headline-label" text="Overview"/>
<Label text="TODO"/> <Label text="TODO"/>
<Button text="Register yourself as an arbitrator" onAction="#onArbitratorRegistration"/> <Button text="Register yourself as an arbitrator" onAction="#onArbitratorRegistration"/>
<Button text="Edit my arbitrator details" onAction="#onArbitratorEdit"/> <Button text="Edit my arbitrator details" onAction="#onArbitratorEdit"/>
</VBox> </VBox>
</AnchorPane> </AnchorPane>

View file

@ -1,95 +1,95 @@
/* /*
* This file is part of Bitsquare. * This file is part of Bitsquare.
* *
* Bitsquare is free software: you can redistribute it and/or modify it * Bitsquare is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by * under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at * the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. * your option) any later version.
* *
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details. * License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. * along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
*/ */
package io.bitsquare.gui.msg; package io.bitsquare.gui.msg;
import io.bitsquare.gui.CachedViewController; import io.bitsquare.gui.CachedViewController;
import io.bitsquare.gui.NavigationItem; import io.bitsquare.gui.NavigationItem;
import io.bitsquare.gui.ViewController; import io.bitsquare.gui.ViewController;
import java.net.URL; import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class MsgController extends CachedViewController public class MsgController extends CachedViewController
{ {
private static final Logger log = LoggerFactory.getLogger(MsgController.class); private static final Logger log = LoggerFactory.getLogger(MsgController.class);
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Constructor // Constructor
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Inject @Inject
private MsgController() private MsgController()
{ {
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Lifecycle // Lifecycle
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public void initialize(URL url, ResourceBundle rb) public void initialize(URL url, ResourceBundle rb)
{ {
super.initialize(url, rb); super.initialize(url, rb);
} }
@Override @Override
public void terminate() public void terminate()
{ {
super.terminate(); super.terminate();
} }
@Override @Override
public void deactivate() public void deactivate()
{ {
super.deactivate(); super.deactivate();
} }
@Override @Override
public void activate() public void activate()
{ {
super.activate(); super.activate();
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Navigation // Navigation
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public ViewController loadViewAndGetChildController(NavigationItem navigationItem) public ViewController loadViewAndGetChildController(NavigationItem navigationItem)
{ {
return null; return null;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// GUI Event handlers // GUI Event handlers
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Private Methods // Private Methods
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
} }

View file

@ -1,103 +1,103 @@
/* /*
* This file is part of Bitsquare. * This file is part of Bitsquare.
* *
* Bitsquare is free software: you can redistribute it and/or modify it * Bitsquare is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by * under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at * the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. * your option) any later version.
* *
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details. * License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>. * along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
*/ */
package io.bitsquare.gui.orders; package io.bitsquare.gui.orders;
import io.bitsquare.gui.CachedViewController; import io.bitsquare.gui.CachedViewController;
import io.bitsquare.gui.NavigationItem; import io.bitsquare.gui.NavigationItem;
import io.bitsquare.gui.ViewController; import io.bitsquare.gui.ViewController;
import io.bitsquare.gui.components.CachingTabPane; import io.bitsquare.gui.components.CachingTabPane;
import io.bitsquare.storage.Persistence; import io.bitsquare.storage.Persistence;
import java.net.URL; import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javax.inject.Inject; import javax.inject.Inject;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class OrdersController extends CachedViewController public class OrdersController extends CachedViewController
{ {
private static final Logger log = LoggerFactory.getLogger(OrdersController.class); private static final Logger log = LoggerFactory.getLogger(OrdersController.class);
private static OrdersController INSTANCE; private static OrdersController INSTANCE;
private final Persistence persistence; private final Persistence persistence;
@Inject @Inject
private OrdersController(Persistence persistence) private OrdersController(Persistence persistence)
{ {
this.persistence = persistence; this.persistence = persistence;
INSTANCE = this; INSTANCE = this;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Constructor // Constructor
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
public static OrdersController GET_INSTANCE() public static OrdersController GET_INSTANCE()
{ {
return INSTANCE; return INSTANCE;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Lifecycle // Lifecycle
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public void initialize(URL url, ResourceBundle rb) public void initialize(URL url, ResourceBundle rb)
{ {
super.initialize(url, rb); super.initialize(url, rb);
((CachingTabPane) root).initialize(this, persistence, NavigationItem.OFFER.getFxmlUrl(), NavigationItem.PENDING_TRADE.getFxmlUrl(), NavigationItem.CLOSED_TRADE.getFxmlUrl()); ((CachingTabPane) root).initialize(this, persistence, NavigationItem.OFFER.getFxmlUrl(), NavigationItem.PENDING_TRADE.getFxmlUrl(), NavigationItem.CLOSED_TRADE.getFxmlUrl());
} }
@Override @Override
public void deactivate() public void deactivate()
{ {
super.deactivate(); super.deactivate();
} }
@Override @Override
public void activate() public void activate()
{ {
super.activate(); super.activate();
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Navigation // Navigation
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
@Override @Override
public ViewController loadViewAndGetChildController(NavigationItem navigationItem) public ViewController loadViewAndGetChildController(NavigationItem navigationItem)
{ {
childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl()); childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl());
return childController; return childController;
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Public Methods // Public Methods
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
public void setSelectedTabIndex(int index) public void setSelectedTabIndex(int index)
{ {
log.trace("setSelectedTabIndex " + index); log.trace("setSelectedTabIndex " + index);
((CachingTabPane) root).setSelectedTabIndex(index); ((CachingTabPane) root).setSelectedTabIndex(index);
persistence.write(this, "selectedTabIndex", index); persistence.write(this, "selectedTabIndex", index);
} }
} }

File diff suppressed because it is too large Load diff