+ new Label("作業完了予定年月日"),
+ new Constraints { gridx = 0; gridy = 2 })
+ add(
+ expectedCompletionDate,
+ new Constraints() {
+ gridx = 1; gridy = 2; anchor = Anchor.West
+ ipadx = 3; ipady = 2; insets = commonInsets
+ })
+ expectedCompletionDate.minimumSize = expectedCompletionDate.preferredSize
+
+ private val deadline = new DateChooser {
+ dateFormatString = "yyyy-MM-dd"
+ calendarChooser.nullDateButtonVisible = true
+ calendarChooser.todayButtonVisible = true
+ calendarChooser.weekOfYearVisible = false
+ }
+ add(
+ new Label("タスク期限"),
+ new Constraints { gridx = 0; gridy = 3 })
+ add(
+ deadline,
+ new Constraints() {
+ gridx = 1; gridy = 3; anchor = Anchor.West
+ ipadx = 3; ipady = 3; insets = commonInsets
+ })
+ deadline.minimumSize = deadline.preferredSize
+
+ private val status = new ComboBox[Task.Status](Task.Status.all)
+ add(
+ new Label("状態"),
+ new Constraints { gridx = 0; gridy = 4 })
+ add(
+ status,
+ new Constraints {
+ gridx = 1; gridy = 4; anchor = Anchor.West
+ ipadx = 3; ipady = 3; insets = commonInsets
+ })
+
+ private val description = new TextArea() {
+ rows = 5
+ peer.setMargin(commonInsets)
+ }
+ private val scrollingDescription = new ScrollPane(description)
+ add(
+ new Label("説明"),
+ new Constraints { gridx = 0; gridy = 5 })