本文整理了Java中org.hippoecm.frontend.plugins.yui.datetime.YuiDateTimeField.add()
方法的一些代码示例,展示了YuiDateTimeField.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YuiDateTimeField.add()
方法的具体详情如下:
包路径:org.hippoecm.frontend.plugins.yui.datetime.YuiDateTimeField
类名称:YuiDateTimeField
方法名:add
暂无
代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend
public DatePickerComponent(String id, IModel<Date> dateModel, IModel<String> label) {
super(id);
add(new Label("question", label));
add(CssClass.append("date-picker-container"));
Calendar minimum = Calendar.getInstance();
minimum.setTime(dateModel.getObject());
minimum.set(Calendar.SECOND, 0);
minimum.set(Calendar.MILLISECOND, 0);
// if you want to round upwards, the following ought to be executed: minimum.add(Calendar.MINUTE, 1);
dateModel.setObject(minimum.getTime());
YuiDateTimeField ydtf = new YuiDateTimeField("value", dateModel);
ydtf.add(new FutureDateValidator());
add(ydtf);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui
add(today = new AjaxLink<Date>("today") {
private static final long serialVersionUID = 1L;
add(CSSPackageResource.getHeaderContribution(YuiDateTimeField.class, "yuidatetime.css"));
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
add(currentDateLink = new AjaxLink<Date>("current-date") {
@Override
public void onClick(final AjaxRequestTarget target) {
内容来源于网络,如有侵权,请联系作者删除!