热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.hippoecm.frontend.plugins.yui.datetime.YuiDatePicker类的使用及代码示例

本文整理了Java中org.hippoecm.frontend.plugins.yui.datetime.YuiDatePicker类的一些代码示例,展示了YuiDatePicker类的具体用法。这些

本文整理了Java中org.hippoecm.frontend.plugins.yui.datetime.YuiDatePicker类的一些代码示例,展示了YuiDatePicker类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YuiDatePicker类的具体详情如下:
包路径:org.hippoecm.frontend.plugins.yui.datetime.YuiDatePicker
类名称:YuiDatePicker

YuiDatePicker介绍

暂无

代码示例

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

/**
* Check that this behavior can get a date format out of the component it is coupled to. It checks whether {@link
* #getDatePattern()} produces a non-null value. If that method returns null, and exception will be thrown
*
* @param component the component this behavior is being coupled to
* @throws UnableToDetermineFormatException
* if this date picker is unable to determine a format.
*/
@SuppressWarnings("unused")
private void checkComponentProvidesDateFormat(Component component) {
if (getDatePattern() == null) {
throw new UnableToDetermineFormatException();
}
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

/**
* Gets the id of the icon that triggers the popup.
*
* @return The id of the icon
*/
protected final String getIconId() {
return getEscapedComponentMarkupId() + "Icon";
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

@Override
public void afterRender(Component component) {
super.afterRender(component);
// Append the span and img icon right after the rendering of the
// component. Not as pretty as working with a panel etc, but works
// for behaviors and is more efficient
Response respOnse= component.getResponse();
response.write("\n

  if (renderOnLoad()) {
response.write("display:block;");
} else {
response.write("display:none;");
response.write("position:absolute;");
}
response.write("z-index: 99999;\" id=\"");
response.write(getEscapedComponentMarkupId());
response.write("Dp\">
response.write(getIconStyle());
response.write("\" id=\"");
response.write(getIconId());
response.write("\">");
response.write(getIcon().getSpriteReference(IconSize.M));
response.write("
");
if (renderOnLoad()) {
response.write("
");
}
response.write("
");
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

if (renderOnLoad())
response.write(getEscapedComponentMarkupId());
response.write("Dp\">response.write(getIconStyle());
response.write("\" id=\"");
response.write(getIconId());
response.write("\" src=\"");
CharSequence icOnUrl= getIconUrl();
response.write(Strings.escapeMarkup(iconUrl != null ? iconUrl.toString() : ""));
response.write("\" alt=\"\"/>");
if (renderOnLoad())

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

@Override
public void bind(Component component) {
super.bind(component);
this.compOnent= component;
checkComponentProvidesDateFormat(component);
component.setOutputMarkupId(true);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

dateField.add(new YuiDatePicker(this.settings));

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

@Override
public void bind(Component component) {
super.bind(component);
this.compOnent= component;
checkComponentProvidesDateFormat(component);
component.setOutputMarkupId(true);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

dateField.remove(b);
dateField.add(new YuiDatePicker(settings));
IModel sizeModel = new LoadableDetachableModel() {
private static final long serialVersiOnUID= 1L;

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

/**
* Gets the id of the icon that triggers the popup.
*
* @return The id of the icon
*/
protected final String getIconId()
{
return getEscapedComponentMarkupId() + "Icon";
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

/**
* Check that this behavior can get a date format out of the component it is coupled to. It
* checks whether {@link #getDatePattern()} produces a non-null value. If that method returns
* null, and exception will be thrown
*
* @param component
* the component this behavior is being coupled to
* @throws UnableToDetermineFormatException
* if this date picker is unable to determine a format.
*/
private final void checkComponentProvidesDateFormat(Component component)
{
if (getDatePattern() == null)
{
throw new UnableToDetermineFormatException();
}
}

推荐阅读
author-avatar
手机用户2502898521
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有