TimeScheduleDialog.java 文件源码

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

项目:HMM 作者:
protected void createArea(Composite parent) {
    Composite area = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(2, true);
    layout.marginWidth = 10;
    layout.horizontalSpacing = 10;
    area.setLayout(layout);
    area.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    Label label = new Label(area, SWT.LEFT);
    label.setText("Set the build start time and interval days:");
    label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));

    time = new DateTime(area, SWT.TIME);
    time.setTime(calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND));
    time.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

    interval = new Combo(area, SWT.DROP_DOWN | SWT.BORDER);
    for(int i = 1; i <= 14; ++i)
        interval.add(String.valueOf(i));
    interval.select(intervalDays - 1);
    interval.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号