add author info
This commit is contained in:
parent
ccd7431d7b
commit
64b5be452f
|
@ -1,5 +1,8 @@
|
|||
package org.cutem.cutecalendar.presenter;
|
||||
|
||||
/**
|
||||
* @author hlq07
|
||||
*/
|
||||
public class CalendarUnit {
|
||||
|
||||
public static final int TODAY_FLAG = 1;
|
||||
|
|
|
@ -17,6 +17,7 @@ import java.net.URL;
|
|||
import java.util.ResourceBundle;
|
||||
|
||||
|
||||
@Deprecated
|
||||
public class NewTodoItemStage implements Initializable {
|
||||
private ChoiceBox typeChoicebox;
|
||||
private TextField titleInput;
|
||||
|
@ -46,7 +47,6 @@ public class NewTodoItemStage implements Initializable {
|
|||
addStage.setTitle("Add a Todo Item");
|
||||
|
||||
|
||||
|
||||
ObservableList<String> ways = FXCollections.observableArrayList();
|
||||
ways.add("Conference");
|
||||
ways.add("Dates");
|
||||
|
@ -183,4 +183,4 @@ public class NewTodoItemStage implements Initializable {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,9 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @author akasakaisami
|
||||
*/
|
||||
public class NewTodoItemStrategy {
|
||||
private static final String FXML_FILE = "fxml/addTodoItemStage.fxml";
|
||||
private Parent root;
|
||||
|
|
|
@ -10,25 +10,18 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlq07
|
||||
*/
|
||||
public abstract class Presenter {
|
||||
private static Object LOCK = new Object();
|
||||
|
||||
private TodoItemManager manager = TodoItemManager.getInstance();
|
||||
|
||||
|
||||
/**
|
||||
* @author hlq
|
||||
*/
|
||||
protected abstract Calendar getCalendarShowingDate();
|
||||
|
||||
/**
|
||||
* @author lyq
|
||||
*/
|
||||
protected abstract void showTodoItemDetail(TodoItem item);
|
||||
|
||||
/**
|
||||
* @author akasakaisami
|
||||
*/
|
||||
protected abstract void showNewTodoItemStage();
|
||||
|
||||
private void save() {
|
||||
|
@ -54,10 +47,6 @@ public abstract class Presenter {
|
|||
save();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @author hlq
|
||||
*/
|
||||
protected abstract void paintCalendar(@NotNull Calendar date, @NotNull List<CalendarUnit> days);
|
||||
|
||||
public final void paintCalendar(@NotNull Calendar date) {
|
||||
|
@ -91,9 +80,6 @@ public abstract class Presenter {
|
|||
paintCalendar(date, days);
|
||||
}
|
||||
|
||||
/**
|
||||
* @author tintin
|
||||
*/
|
||||
protected abstract void listTodoItems(List<TodoItem> items);
|
||||
|
||||
protected final void listTodoItemDuring(Calendar from, Calendar to) {
|
||||
|
|
|
@ -7,6 +7,9 @@ import org.jetbrains.annotations.NotNull;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlq07
|
||||
*/
|
||||
public class PresenterSimpleImpl extends Presenter {
|
||||
|
||||
private ListTodoItemsStrategy mListStrategy;
|
||||
|
|
|
@ -11,6 +11,9 @@ import org.cutem.cutecalendar.model.TodoItem;
|
|||
import org.cutem.cutecalendar.util.CalendarUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author lyq
|
||||
*/
|
||||
public class ShowTodoItemDetailStrategy {
|
||||
|
||||
private Stage mStage;
|
||||
|
@ -121,5 +124,4 @@ public class ShowTodoItemDetailStrategy {
|
|||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue