Module Client, écran de vente : clss SaleScreen implémente désormais IGuiModule; Corrections mineures

This commit is contained in:
Notmoo 2017-08-15 00:40:51 +02:00
parent d1fdc64cad
commit 60e3caf4de
4 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,7 @@
package com.pqt.client.gui.modules;
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
public interface IGuiModule extends IFXComponent{
String getModuleName();
}

View File

@ -1,12 +1,14 @@
package com.pqt.client.gui.modules.sale_screen;
import com.pqt.client.gui.modules.IGuiModule;
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
import com.pqt.client.gui.ressources.strings.GUIStringTool;
import com.pqt.client.module.account.AccountService;
import com.pqt.client.module.sale.SaleService;
import com.pqt.client.module.stock.StockService;
import javafx.scene.layout.Pane;
public class SaleScreen implements IFXComponent {
public class SaleScreen implements IGuiModule {
private SaleScreenView view;
@ -23,4 +25,9 @@ public class SaleScreen implements IFXComponent {
public Pane getPane() {
return view.getPane();
}
@Override
public String getModuleName() {
return GUIStringTool.getSaleGuiModuleName();
}
}

View File

@ -133,7 +133,7 @@ class SaleScreenController {
}
Account getDefaultAccount() {
return new Account(" - ", null, AccountLevel.getLowest());
return new Account(null, null, AccountLevel.getLowest());
}
IValidatorComponentListener getValidatorListener() {

View File

@ -4,7 +4,6 @@ import com.pqt.client.gui.modules.sale_screen.sale_validation_screen.SaleValidat
import com.pqt.client.gui.ressources.components.CommandComposerSaleDisplayer;
import com.pqt.client.gui.ressources.components.SimpleValidator;
import com.pqt.client.gui.ressources.components.generics.javafx_override.CssEnabledGridPane;
import com.pqt.client.gui.ressources.css.GUICssTool;
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
import com.pqt.client.gui.ressources.strings.GUIStringTool;
import com.pqt.client.gui.ressources.components.CategoryTabStockDisplayer;