diff --git a/app/src/main/java/org/cutem/cutecalendar/presenter/NewTodoItemStrategy.java b/app/src/main/java/org/cutem/cutecalendar/presenter/NewTodoItemStrategy.java index 70a1cde..24407f6 100644 --- a/app/src/main/java/org/cutem/cutecalendar/presenter/NewTodoItemStrategy.java +++ b/app/src/main/java/org/cutem/cutecalendar/presenter/NewTodoItemStrategy.java @@ -70,7 +70,7 @@ public class NewTodoItemStrategy extends VBox { public void setStage(Stage stage) { mNewItemStage = stage; - mNewItemStage.setScene(new Scene(this, 1000, 1000)); + mNewItemStage.setScene(new Scene(this, 600, 800)); } public void addFactory(@NotNull NewItemBuilder.IFactory factory) { diff --git a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/BaseTodoItemBuilder.java b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/BaseTodoItemBuilder.java index d26ad83..4d148b6 100644 --- a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/BaseTodoItemBuilder.java +++ b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/BaseTodoItemBuilder.java @@ -43,15 +43,15 @@ abstract class BaseTodoItemBuilder extends GeneralBuilder { } @FXML - protected ChoiceBox priorityBox; + private ChoiceBox priorityBox; @FXML - protected ChoiceBox importanceBox; + private ChoiceBox importanceBox; @FXML - protected ChoiceBox alarmMethodBox; + private ChoiceBox alarmMethodBox; @FXML - protected TextField alarmStartText; + private TextField alarmStartText; @FXML - protected TextField alarmIntervalText; + private TextField alarmIntervalText; protected BaseTodoItemBuilder(@Nullable TodoItem parent) { @@ -64,6 +64,7 @@ abstract class BaseTodoItemBuilder extends GeneralBuilder { @FXML protected void initialize() { + StringProperty p = new SimpleStringProperty(); p.bind(priorityBox.valueProperty()); diff --git a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/CourseTypeBuilder.java b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/CourseTypeBuilder.java index b592fbe..18662f4 100644 --- a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/CourseTypeBuilder.java +++ b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/CourseTypeBuilder.java @@ -32,7 +32,7 @@ public final class CourseTypeBuilder extends BaseTodoItemBuilder { private static final String COURSE_TYPE_LAYOUT = "fxml/newitem_layouts/course_type_layout.fxml"; - private static final int TYPE = TodoItem.OTHERS; + private static final int TYPE = TodoItem.COURSE; private static final String TYPE_NAME = TodoItem.typeName(TYPE); diff --git a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/InterviewTypeBuilder.java b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/InterviewTypeBuilder.java index 2ac70af..7ecad8c 100644 --- a/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/InterviewTypeBuilder.java +++ b/app/src/main/java/org/cutem/cutecalendar/presenter/newitems/lab5/InterviewTypeBuilder.java @@ -32,7 +32,7 @@ public final class InterviewTypeBuilder extends BaseTodoItemBuilder { private static final String INTERVIEW_TYPE_LAYOUT = "fxml/newitem_layouts/interview_type_layout.fxml"; - private static final int TYPE = TodoItem.OTHERS; + private static final int TYPE = TodoItem.INTERVIEW; private static final String TYPE_NAME = TodoItem.typeName(TYPE); diff --git a/app/src/main/resources/fxml/newitem_layouts/anniversary_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/anniversary_type_layout.fxml index d626dd3..cf5c52f 100644 --- a/app/src/main/resources/fxml/newitem_layouts/anniversary_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/anniversary_type_layout.fxml @@ -12,70 +12,58 @@ - - + + - - - - - - - - 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 4f37e97..281f675 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,79 +8,70 @@ xmlns:fx="http://javafx.com/fxml" type="VBox" > + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/resources/fxml/newitem_layouts/course_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/course_type_layout.fxml new file mode 100644 index 0000000..ac13e9e --- /dev/null +++ b/app/src/main/resources/fxml/newitem_layouts/course_type_layout.fxml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/resources/fxml/newitem_layouts/date_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/date_type_layout.fxml index f77811a..1330252 100644 --- a/app/src/main/resources/fxml/newitem_layouts/date_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/date_type_layout.fxml @@ -1,84 +1,72 @@ - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/resources/fxml/newitem_layouts/interview_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/interview_type_layout.fxml index 0486f77..1856244 100644 --- a/app/src/main/resources/fxml/newitem_layouts/interview_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/interview_type_layout.fxml @@ -9,89 +9,79 @@ type="VBox" > - - - - - - - - - - - + + + + \ No newline at end of file diff --git a/app/src/main/resources/fxml/newitem_layouts/other_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/other_type_layout.fxml index c0702c0..d50e878 100644 --- a/app/src/main/resources/fxml/newitem_layouts/other_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/other_type_layout.fxml @@ -12,60 +12,62 @@ - - + + - - - - - - - - diff --git a/app/src/main/resources/fxml/newitem_layouts/timeless_type_layout.fxml b/app/src/main/resources/fxml/newitem_layouts/timeless_type_layout.fxml index 5e16c7e..4af696c 100644 --- a/app/src/main/resources/fxml/newitem_layouts/timeless_type_layout.fxml +++ b/app/src/main/resources/fxml/newitem_layouts/timeless_type_layout.fxml @@ -10,19 +10,14 @@ - - + + - - - -