forked from fanruan/design
Browse Source
* commit '2124e5f7abbe112aac4844b9b74ef15e9e940f07': CQ-9 没有装插件的设计打开带有插件控件的表单时,需要能正确的打开并提示 【国际化修改】修改了一处翻译。。。。 无JIRA任务, dev国际化->release 【国际化修改】 根据代理商意见修改翻译 syoki 超链悬浮窗图表,点击确定无效,报null错误 【国际化修改】 修改几处翻译问题 BI-5822 调整接口,使用标准的状态码返回给移动端 更改lib依赖 【国际化修改】 根据代理商的意见修改design部分的翻译 庄奇20170606 去掉部分代码 无JIRA任务, 论坛消息屏蔽master
superman
7 years ago
11 changed files with 642 additions and 677 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
||||
package com.fr.design.designer.creator; |
||||
|
||||
import com.fr.form.ui.ErrorMarker; |
||||
import com.fr.form.ui.Widget; |
||||
import com.fr.stable.StringUtils; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by richie on 2017/6/28. |
||||
*/ |
||||
public class ErrorCreator extends NullCreator { |
||||
|
||||
public ErrorCreator(Widget widget, Dimension initSize) { |
||||
super(widget, initSize); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
protected String showText() { |
||||
ErrorMarker marker = (ErrorMarker)toData(); |
||||
String text = marker.getWidgetValue().getDisplayValue(); |
||||
if (StringUtils.isEmpty(text)) { |
||||
return super.showText(); |
||||
} |
||||
return text; |
||||
} |
||||
} |
Loading…
Reference in new issue