private static String getEltHeaderTheme(Element elt) { if (elt == null) return null; return JQMCommon.getStyleStartsWith(elt, JQMCommon.STYLE_UI_BAR); }
private static String getEltHeaderTheme(Element elt) { if (elt == null) return null; return JQMCommon.getStyleStartsWith(elt, JQMCommon.STYLE_UI_BAR); }
private static String getEltHeaderTheme(Element elt) { if (elt == null) return null; return JQMCommon.getStyleStartsWith(elt, JQMCommon.STYLE_UI_BAR); }
private static String getCurrentTheme(Element elt) { if (elt == null) return null; for (Entry<String, String> i : currentThemeSearch.entrySet()) { String v = i.getValue(); String s = v == null ? JQMCommon.getStyleStartsWith(elt, i.getKey()) : JQMCommon.getStyleStartsWith(elt, i.getKey(), v); if (s != null && !s.isEmpty()) { return s.substring(i.getKey().length()); } } return null; }
private static String getCurrentTheme(Element elt) { if (elt == null) return null; for (Entry<String, String> i : currentThemeSearch.entrySet()) { String v = i.getValue(); String s = v == null ? JQMCommon.getStyleStartsWith(elt, i.getKey()) : JQMCommon.getStyleStartsWith(elt, i.getKey(), v); if (s != null && !s.isEmpty()) { return s.substring(i.getKey().length()); } } return null; }
private static String getCurrentTheme(Element elt) { if (elt == null) return null; for (Entry<String, String> i : currentThemeSearch.entrySet()) { String v = i.getValue(); String s = v == null ? JQMCommon.getStyleStartsWith(elt, i.getKey()) : JQMCommon.getStyleStartsWith(elt, i.getKey(), v); if (s != null && !s.isEmpty()) { return s.substring(i.getKey().length()); } } return null; }
public static String getThemeEx(Element elt, String prefix, String... excludes) { String s = getStyleStartsWith(elt, prefix, excludes); if (s == null || s.isEmpty()) return null; s = s.substring(prefix.length()); // check length to prevent conflict with ui-btn-inline, ... in case of forgotten excludes if (s.length() > 1) { if (THEME_INHERIT.equals(s) || THEME_NONE.equals(s)) return s; else return null; } else { return s; } }
public static String getThemeEx(Element elt, String prefix, String... excludes) { String s = getStyleStartsWith(elt, prefix, excludes); if (s == null || s.isEmpty()) return null; s = s.substring(prefix.length()); // check length to prevent conflict with ui-btn-inline, ... in case of forgotten excludes if (s.length() > 1) { if (THEME_INHERIT.equals(s) || THEME_NONE.equals(s)) return s; else return null; } else { return s; } }
public static String getThemeEx(Element elt, String prefix, String... excludes) { String s = getStyleStartsWith(elt, prefix, excludes); if (s == null || s.isEmpty()) return null; s = s.substring(prefix.length()); // check length to prevent conflict with ui-btn-inline, ... in case of forgotten excludes if (s.length() > 1) { if (THEME_INHERIT.equals(s) || THEME_NONE.equals(s)) return s; else return null; } else { return s; } }
public static DataIcon getStyleIcon(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s == null || s.isEmpty()) return null; return DataIcon.fromJqmValue(s.substring(STYLE_UI_ICON.length())); }
public static DataIcon getStyleIcon(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s == null || s.isEmpty()) return null; return DataIcon.fromJqmValue(s.substring(STYLE_UI_ICON.length())); }
public static DataIcon getStyleIcon(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s == null || s.isEmpty()) return null; return DataIcon.fromJqmValue(s.substring(STYLE_UI_ICON.length())); }
public String getBackgroundTheme() { return JQMCommon.getStyleStartsWith(this.getElement(), JQMCommon.STYLE_UI_BODY); }
public String getBackgroundTheme() { return JQMCommon.getStyleStartsWith(this.getElement(), JQMCommon.STYLE_UI_BODY); }
public static String getIconExStr(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s != null && !s.isEmpty()) { s = s.substring(STYLE_UI_ICON.length()); return s; } s = getAttribute(elt, DATA_ICON); if (DataIcon.NONE.getJqmValue().equals(s)) return s; // NONE has no className, but stored in attribute return null; }
public static String getIconExStr(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s != null && !s.isEmpty()) { s = s.substring(STYLE_UI_ICON.length()); return s; } s = getAttribute(elt, DATA_ICON); if (DataIcon.NONE.getJqmValue().equals(s)) return s; // NONE has no className, but stored in attribute return null; }
public static String getIconExStr(Element elt) { String s = getStyleStartsWith(elt, STYLE_UI_ICON); if (s != null && !s.isEmpty()) { s = s.substring(STYLE_UI_ICON.length()); return s; } s = getAttribute(elt, DATA_ICON); if (DataIcon.NONE.getJqmValue().equals(s)) return s; // NONE has no className, but stored in attribute return null; }
public static IconPos getIconPosEx(Element elt, String prefix) { String s = getStyleStartsWith(elt, prefix); if (s != null && !s.isEmpty()) { s = s.substring(prefix.length()); return IconPos.fromJqmValue(s); } // className is present only if STYLE_UI_ICON is defined, // so first check className and if empty then attribute return IconPos.fromJqmValue(getAttribute(elt, DATA_ICONPOS)); }
public static IconPos getIconPosEx(Element elt, String prefix) { String s = getStyleStartsWith(elt, prefix); if (s != null && !s.isEmpty()) { s = s.substring(prefix.length()); return IconPos.fromJqmValue(s); } // className is present only if STYLE_UI_ICON is defined, // so first check className and if empty then attribute return IconPos.fromJqmValue(getAttribute(elt, DATA_ICONPOS)); }
public static IconPos getIconPosEx(Element elt, String prefix) { String s = getStyleStartsWith(elt, prefix); if (s != null && !s.isEmpty()) { s = s.substring(prefix.length()); return IconPos.fromJqmValue(s); } // className is present only if STYLE_UI_ICON is defined, // so first check className and if empty then attribute return IconPos.fromJqmValue(getAttribute(elt, DATA_ICONPOS)); }