DateCellSkin.java 文件源码

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

项目:graphing-loan-analyzer 作者:
public DateCellSkin(final DateCell control) {
    this.dateCell = control;
    button = new Button();
    button.textProperty().bind(control.textProperty());

    button.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
    button.setAlignment(Pos.CENTER);
    button.setMinWidth(30);
    button.setOnAction(new EventHandler<ActionEvent>() {
        @Override
        public void handle(ActionEvent actionEvent) {
            control.getCalendarView().setSelectedDate(control.getItem());
        }
    });

    button.tooltipProperty().bind(control.tooltipProperty());

    getChildren().add(button);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号