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

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

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

YuiDatePicker.getIconStyle介绍

[英]Gets the style of the icon that triggers the popup.
[中]获取触发弹出窗口的图标的样式。

代码示例

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

response.write(getEscapedComponentMarkupId());
response.write("Dp\"></span><img style=\"");
response.write(getIconStyle());
response.write("\" id=\"");
response.write(getIconId());

代码示例来源: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<div class=\"yui-skin-sam\">&nbsp;<span style=\"");
  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\"></span><a style=\"");
  response.write(getIconStyle());
  response.write("\" id=\"");
  response.write(getIconId());
  response.write("\">");
  response.write(getIcon().getSpriteReference(IconSize.M));
  response.write("</a>");
  if (renderOnLoad()) {
    response.write("<br style=\"clear:left;\"/>");
  }
  response.write("</div>");
}

相关文章