Compare commits
4 Commits
59be5048d8
...
f23a596f47
Author | SHA1 | Date | |
---|---|---|---|
f23a596f47 | |||
0522908001 | |||
34e51cb72f | |||
88c8a30ad0 |
@ -28,15 +28,15 @@ public class CreateEventController {
|
||||
@FXML
|
||||
protected JFXComboBox<String> comboBoxPriority;
|
||||
@FXML
|
||||
private JFXToggleButton toggleBtnIsFullDay;
|
||||
protected JFXToggleButton toggleBtnIsFullDay;
|
||||
@FXML
|
||||
private JFXToggleButton toggleBtnIsPrivate;
|
||||
protected JFXToggleButton toggleBtnIsPrivate;
|
||||
@FXML
|
||||
private Label labelError;
|
||||
@FXML
|
||||
private JFXTimePicker timeStart;
|
||||
protected JFXTimePicker timeStart;
|
||||
@FXML
|
||||
private JFXTimePicker timeEnd;
|
||||
protected JFXTimePicker timeEnd;
|
||||
|
||||
|
||||
public CreateEventController() {
|
||||
|
@ -4,6 +4,8 @@ import helper.HttpRequestException;
|
||||
import container.DataController;
|
||||
import container.Event;
|
||||
|
||||
import java.time.LocalTime;
|
||||
|
||||
public class EditEventController extends CreateEventController{
|
||||
|
||||
private Event currentEvent;
|
||||
@ -19,7 +21,17 @@ public class EditEventController extends CreateEventController{
|
||||
datePickerDate.setValue(currentEvent.getDate().toLocalDate());
|
||||
comboBoxPriority.getSelectionModel().select(currentEvent.getPriority());
|
||||
|
||||
//timeEnd.setValue(currentEvent.getEnd());
|
||||
try{
|
||||
timeStart.setValue(LocalTime.parse(currentEvent.getStart()));
|
||||
}catch (Exception e){}
|
||||
|
||||
|
||||
try{
|
||||
timeEnd.setValue(LocalTime.parse(currentEvent.getEnd()));
|
||||
}catch (Exception e){}
|
||||
|
||||
toggleBtnIsFullDay.setSelected(currentEvent.isFullDay());
|
||||
toggleBtnIsPrivate.setSelected(currentEvent.isPrivate());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -57,7 +57,7 @@ public class MainApplication extends Application {
|
||||
scene.getStylesheets().add(Objects.requireNonNull(
|
||||
MainApplication.class.getResource("main-view.css")).toExternalForm()
|
||||
);
|
||||
stage.setTitle("SharePlaner");
|
||||
stage.setTitle("SharePlanner");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user