From a9a7cc76778ec9d1eb538a80616eade5851291ee Mon Sep 17 00:00:00 2001 From: akasakaisami <16302016004@fudan.edu.cn> Date: Tue, 29 May 2018 15:43:35 +0800 Subject: [PATCH] update Conference type new item builder fxml --- .../conference_type_layout.fxml | 23 ++++++++++--------- app/src/test/java/org/cutem/MainTest.java | 4 ++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/app/src/main/resources/fxml/newitem_layouts/conference_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/conference_type_layout.fxml index 340a79c..a2b0246 100644 --- a/app/src/main/resources/fxml/newitem_layouts/conference_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/conference_type_layout.fxml @@ -8,6 +8,7 @@ xmlns:fx="http://javafx.com/fxml" type="VBox" > + @@ -26,16 +27,16 @@ - - \ No newline at end of file + diff --git a/app/src/test/java/org/cutem/MainTest.java b/app/src/test/java/org/cutem/MainTest.java index 36e1e44..83f5e61 100644 --- a/app/src/test/java/org/cutem/MainTest.java +++ b/app/src/test/java/org/cutem/MainTest.java @@ -9,6 +9,8 @@ import javafx.scene.Scene; import javafx.stage.Stage; import org.cutem.cutecalendar.model.TodoItem; import org.cutem.cutecalendar.presenter.*; +import org.cutem.cutecalendar.presenter.newitems.ConferenceTypeNewItemBuilder; +import org.cutem.cutecalendar.presenter.newitems.InterviewTypeNewItemBuilder; import org.cutem.cutecalendar.presenter.newitems.OtherTypeNewItemBuilder; import org.cutem.cutecalendar.presenter.newitems.TimelessTypeBuilder; import org.jetbrains.annotations.NotNull; @@ -61,6 +63,8 @@ public class MainTest extends Application { // add IoC newItemStrategy.addFactory(new TimelessTypeBuilder.Factory()); newItemStrategy.addFactory(new OtherTypeNewItemBuilder.Factory()); + newItemStrategy.addFactory(new ConferenceTypeNewItemBuilder.Factory()); + newItemStrategy.addFactory(new InterviewTypeNewItemBuilder.Factory()); mPresenter.goWork(); }