org.hippoecm.frontend.plugins.yui.datetime.YuiDateTimeField.add()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(201)

本文整理了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

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) {

相关文章