/** * @return - true if this item was filtered out by {@link JQMFilterable}. */ public boolean isFilteredOut() { return JQMCommon.hasStyle(this, "ui-screen-hidden"); }
/** * @return - true if this item was filtered out by {@link JQMFilterable}. */ public boolean isFilteredOut() { return JQMCommon.hasStyle(this, "ui-screen-hidden"); }
/** * Returns true if this {@link JQMCollapsible} is currently collapsed. */ public boolean isCollapsed() { boolean v = JQMCommon.hasStyle(this, "ui-collapsible-collapsed"); if (v) return v; if (!created) { v = getAttributeBoolean("data-collapsed"); if (v) return v; } return false; }
/** * Returns true if this {@link JQMCollapsible} is currently collapsed. */ public boolean isCollapsed() { boolean v = JQMCommon.hasStyle(this, "ui-collapsible-collapsed"); if (v) return v; if (!created) { v = getAttributeBoolean("data-collapsed"); if (v) return v; } return false; }
@Override public boolean isVisible() { return super.isVisible() && JQMCommon.hasStyle(getElement(), "ui-page-active"); // ui-page-active works for both: pages and dialogs }
public static void setStyleIcon(Element elt, String icon) { if (icon == null || icon.isEmpty()) { removeStylesStartsWith(elt, STYLE_UI_ICON); return; } String s = STYLE_UI_ICON + icon; if (hasStyle(elt, s)) return; removeStylesStartsWith(elt, STYLE_UI_ICON); elt.addClassName(s); }
public static void setStyleIcon(Element elt, String icon) { if (icon == null || icon.isEmpty()) { removeStylesStartsWith(elt, STYLE_UI_ICON); return; } String s = STYLE_UI_ICON + icon; if (hasStyle(elt, s)) return; removeStylesStartsWith(elt, STYLE_UI_ICON); elt.addClassName(s); }
public static void setStyleIcon(Element elt, String icon) { if (icon == null || icon.isEmpty()) { removeStylesStartsWith(elt, STYLE_UI_ICON); return; } String s = STYLE_UI_ICON + icon; if (hasStyle(elt, s)) return; removeStylesStartsWith(elt, STYLE_UI_ICON); elt.addClassName(s); }
public void setRadioVisible(int index, boolean visible) { if (index < 0 || index >= radios.size()) return; JQMRadio r = radios.get(index); Element p = r.getElement().getParentElement(); while (p != null) { if (JQMCommon.hasStyle(p, "ui-radio")) { UIObject.setVisible(p, visible); break; } p = p.getParentElement(); } }
public boolean isRadioVisible(int index) { if (index < 0 || index >= radios.size()) return false; JQMRadio r = radios.get(index); Element p = r.getElement().getParentElement(); while (p != null) { if (JQMCommon.hasStyle(p, "ui-radio")) { return UIObject.isVisible(p); } p = p.getParentElement(); } return false; }
public boolean isRadioVisible(int index) { if (index < 0 || index >= radios.size()) return false; JQMRadio r = radios.get(index); Element p = r.getElement().getParentElement(); while (p != null) { if (JQMCommon.hasStyle(p, "ui-radio")) { return UIObject.isVisible(p); } p = p.getParentElement(); } return false; }
public void setRadioVisible(int index, boolean visible) { if (index < 0 || index >= radios.size()) return; JQMRadio r = radios.get(index); Element p = r.getElement().getParentElement(); while (p != null) { if (JQMCommon.hasStyle(p, "ui-radio")) { UIObject.setVisible(p, visible); break; } p = p.getParentElement(); } }
public void setRadioVisible(int index, boolean visible) { if (index < 0 || index >= radios.size()) return; JQMRadio r = radios.get(index); Element p = r.getElement().getParentElement(); while (p != null) { if (JQMCommon.hasStyle(p, "ui-radio")) { UIObject.setVisible(p, visible); break; } p = p.getParentElement(); } }
@Override public boolean isVisible() { return super.isVisible() && JQMCommon.isVisible(this) && JQMCommon.hasStyle(getElement(), "ui-page-active"); // ui-page-active works for both: pages and dialogs }
@Override public boolean isVisible() { return super.isVisible() && JQMCommon.isVisible(this) && JQMCommon.hasStyle(getElement(), "ui-page-active"); // ui-page-active works for both: pages and dialogs }
private void processVisible() { if (!enhanced) return; Element tableElt = getElement(); Element elt = tableElt.getParentElement(); while (elt != null) { if (JQMCommon.hasStyle(elt, WRAPPER)) { UIObject.setVisible(elt, visible); return; } elt = elt.getParentElement(); } }
private void processVisible() { if (!enhanced) return; Element tableElt = getElement(); Element elt = tableElt.getParentElement(); while (elt != null) { if (JQMCommon.hasStyle(elt, WRAPPER)) { UIObject.setVisible(elt, visible); return; } elt = elt.getParentElement(); } }