DutyRosterController.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:Planchester 作者:
@FXML
public void initialize() {
    staticAgenda = agenda;
    staticScrollPane = scrollPane;

    getGroupColorsFromCSS();
    initializeAppointmentGroupsForEventtypes(); //must be the first initialize-call
    initialzeCalendarSettings();
    initialzeCalendarView();

    agenda.setOnMouseClicked(event -> {
        if(event.getTarget().toString().contains("DayBodyPane")) {
            resetSideContent();
            removeSelection();
        }
    });

    agenda.selectedAppointments().addListener((ListChangeListener<Agenda.Appointment>) c -> {
        if(agenda.selectedAppointments().isEmpty()) {
            resetSideContent();
            return;
        }

        resetSideContent();
        selectedAppointment = agenda.selectedAppointments().get(0);
        showDutyDetailView();
    });


    Permission permission = AccountAdministrationManager.getInstance().getUserPermissions();
    if(AccountAdministrationManager.getInstance().getSectionType() != null) {
        dutyRosterLabel.setText("Duty Roster: " + AccountAdministrationManager.getInstance().getSectionType());
    }
    publishDutyRoster.setVisible(permission.isPublishDutyRoster());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号