Module Client : correction erreurs de compilation + suppression import inutiles

This commit is contained in:
Notmoo-PC\Notmoo 2017-10-09 16:20:57 +02:00
parent 0a9356fdbe
commit 20ac907c73
4 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,9 @@ import com.pqt.core.entities.user_account.Account;
import com.pqt.core.entities.user_account.AccountLevel;
import javafx.event.Event;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
class SaleScreenController {
@ -45,7 +47,7 @@ class SaleScreenController {
@Override
public void onAccountListUpdatedEvent() {
view.setAccounts(model.getAccountList());
view.setAccounts(new ArrayList<>(model.getAccountList()));
}
@ -99,7 +101,7 @@ class SaleScreenController {
return model.getProductList();
}
private List<Account> fetchAccountList(){
return model.getAccountList();
return new ArrayList<>(model.getAccountList());
}
private List<SaleType> fetchSaleTypeList(){
return model.getSaleTypeList();

View File

@ -17,6 +17,7 @@ import com.pqt.core.entities.user_account.AccountLevel;
import javax.swing.event.EventListenerList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
@ -143,7 +144,7 @@ class SaleScreenModel {
.forEach(ISaleScreenModelListener::onAccountConnectedStateUpdatedEvent);
}
List<Account> getAccountList() {
Collection<Account> getAccountList() {
return accountService.getAllAccounts();
}

View File

@ -1,8 +1,6 @@
package com.pqt.client.module.sale;
import com.pqt.client.module.query.QueryExecutor;
import com.pqt.client.module.query.QueryMessageFactory;
import com.pqt.client.module.query.query_callback.ICollectionItemMessageCallback;
import com.pqt.client.module.query.query_callback.INoItemMessageCallback;
import com.pqt.client.module.sale.listeners.ISaleFirerer;
import com.pqt.client.module.sale.listeners.ISaleListener;

View File

@ -1,7 +1,6 @@
package com.pqt.client.module.stat;
import com.pqt.client.module.query.QueryExecutor;
import com.pqt.client.module.query.QueryMessageFactory;
import com.pqt.client.module.query.query_callback.IMapItemMessageCallback;
import com.pqt.client.module.stat.listeners.IStatFirerer;
import com.pqt.client.module.stat.listeners.IStatListener;