| | |
| | | public String getFormattedError(String text, boolean applyMargin) |
| | | { |
| | | String html; |
| | | if (!containsHtml(text)) { |
| | | if (!Utils.containsHtml(text)) { |
| | | html = UIFactory.getIconHtml(UIFactory.IconType.ERROR_LARGE) |
| | | + SPACE |
| | | + SPACE |
| | |
| | | public String getFormattedWarning(String text, boolean applyMargin) |
| | | { |
| | | String html; |
| | | if (!containsHtml(text)) { |
| | | if (!Utils.containsHtml(text)) { |
| | | html = |
| | | UIFactory.getIconHtml(UIFactory.IconType.WARNING_LARGE) |
| | | + SPACE |
| | |
| | | } |
| | | } |
| | | |
| | | private boolean containsHtml(String text) { |
| | | return (text != null && |
| | | text.indexOf('<') != -1 && |
| | | text.indexOf('>') != -1); |
| | | } |
| | | } |
| | | |