public static void setIcon(Widget widget, DataIcon icon) { setIcon(widget.getElement(), icon); }
public void setDataIcon(DataIcon icon) { JQMCommon.setIcon(getElement(), icon); }
public void setDataIcon(DataIcon icon) { JQMCommon.setIcon(getElement(), icon); }
public void setSplitIcon(DataIcon icon) { JQMCommon.setIcon(getElement(), icon); }
public void setDataIcon(DataIcon icon) { JQMCommon.setIcon(getElement(), icon); }
public void setSplitIcon(DataIcon icon) { JQMCommon.setIcon(getElement(), icon); }
public static void setIcon(Widget widget, DataIcon icon) { setIcon(widget.getElement(), icon); }
public static void setIcon(Widget widget, DataIcon icon) { setIcon(widget.getElement(), icon); }
private static void prepareOption(OptionElement opt, String value, String filterText, boolean placeholder, boolean selected, boolean disabled, DataIcon icon, String customIcon) { if (value == null) JQMCommon.setAttribute(opt, "value", null); if (filterText != null && !filterText.isEmpty()) { JQMCommon.setFilterText(opt, filterText); } if (placeholder) JQMCommon.setAttribute(opt, "data-placeholder", "true"); if (selected) JQMCommon.setAttribute(opt, "selected", "selected"); if (disabled) JQMCommon.setAttribute(opt, "disabled", "disabled"); if (icon != null) JQMCommon.setIcon(opt, icon); else if (customIcon != null) JQMCommon.setIcon(opt, customIcon); }
private static void prepareOption(OptionElement opt, String value, String filterText, boolean placeholder, boolean selected, boolean disabled, DataIcon icon, String customIcon) { if (value == null) JQMCommon.setAttribute(opt, "value", null); if (filterText != null && !filterText.isEmpty()) { JQMCommon.setFilterText(opt, filterText); } if (placeholder) JQMCommon.setAttribute(opt, "data-placeholder", "true"); if (selected) JQMCommon.setAttribute(opt, "selected", "selected"); if (disabled) JQMCommon.setAttribute(opt, "disabled", "disabled"); if (icon != null) JQMCommon.setIcon(opt, icon); else if (customIcon != null) JQMCommon.setIcon(opt, customIcon); }
private static void prepareOption(OptionElement opt, String value, String filterText, boolean placeholder, boolean selected, boolean disabled, DataIcon icon, String customIcon) { if (value == null) JQMCommon.setAttribute(opt, "value", null); if (filterText != null && !filterText.isEmpty()) { JQMCommon.setFilterText(opt, filterText); } if (placeholder) JQMCommon.setAttribute(opt, "data-placeholder", "true"); if (selected) JQMCommon.setAttribute(opt, "selected", "selected"); if (disabled) JQMCommon.setAttribute(opt, "disabled", "disabled"); if (icon != null) JQMCommon.setIcon(opt, icon); else if (customIcon != null) JQMCommon.setIcon(opt, customIcon); }
@Override public JQMSelect removeIcon() { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, null); refreshIcon(getElement(), oldIcon, ""); return this; }
@Override public JQMSelect removeIcon() { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, null); refreshIcon(getElement(), oldIcon, ""); return this; }
@Override public JQMSelect removeIcon() { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, null); refreshIcon(getElement(), oldIcon, ""); return this; }
/** * Sets the icon used by this button. See {@link DataIcon}. */ @Override public void setBuiltInIcon(DataIcon icon) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, icon); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }
/** * Sets the icon used by this button. See {@link DataIcon}. */ @Override public void setBuiltInIcon(DataIcon icon) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, icon); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }
/** * Sets the icon used by this button. See {@link DataIcon}. */ @Override public void setBuiltInIcon(DataIcon icon) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select, icon); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }
@Override public void setIconURL(String src) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select.getElement(), src); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }
@Override public void setIconURL(String src) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select.getElement(), src); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }
@Override public void setIconURL(String src) { String oldIcon = JQMCommon.getCustomIcon(select.getElement()); oldIcon = oldIcon == null ? "" : JQMCommon.STYLE_UI_ICON + oldIcon; JQMCommon.setIcon(select.getElement(), src); String newIcon = JQMCommon.getCustomIcon(select.getElement()); newIcon = newIcon == null ? "" : JQMCommon.STYLE_UI_ICON + newIcon; refreshIcon(getElement(), oldIcon, newIcon); }