/** * @return - true if this item was filtered out by {@link JQMFilterable}. */ public boolean isFilteredOut() { return JQMCommon.hasStyle(this, "ui-screen-hidden"); }
public boolean isIconAlt() { if (headingToggle == null) { return iconAlt; } else { boolean v = JQMCommon.isIconAlt(headingToggle); iconAlt = v; return iconAlt; } }
public boolean isIconNoDisc() { if (headingToggle == null) { return iconNoDisc; } else { boolean v = JQMCommon.isIconNoDisc(headingToggle); iconNoDisc = v; return iconNoDisc; } }
private void setFilterableElt(Element filterableElt) { filterable = filterableElt; if (filterable != null && JQMCommon.isFilterableReady(filterable)) { JavaScriptObject origFilter = JQMCommon.getFilterCallback(filterable); JQMCommon.bindFilterCallback(this, filterable, origFilter); } }
public void setContentStyleNames(String value) { if (contentStyleNames == value || contentStyleNames != null && contentStyleNames.equals(value)) return; if (collapsibleContent != null) JQMCommon.removeStyleNames(collapsibleContent, contentStyleNames); contentStyleNames = value; if (collapsibleContent != null) JQMCommon.addStyleNames(collapsibleContent, contentStyleNames); }
private void bindFilterCallback() { if (boundFilterCallback) return; Element elt = getDataFilterWidget().getElement(); origFilter = JQMCommon.getFilterCallback(elt); JQMCommon.bindFilterCallback(this, elt, origFilter); boundFilterCallback = true; }
/** * @param value - if true "white vs. black" icon style will be used */ public void setIconAlt(boolean value) { JQMCommon.setIconAlt(this, value); }
public void setIconNoDisc(boolean value) { iconNoDisc = value; if (headingToggle != null) { JQMCommon.setIconNoDisc(headingToggle, iconNoDisc); } }
@Override public String getText() { Element e = getElement(); if (JQMCommon.childrenCount(e) == 0) { return e.getInnerText(); } else { Element child = JQMCommon.firstChildElt(e); while (child != null) { e = child; child = JQMCommon.firstChildElt(e); } return e.getInnerText(); } }
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); }
@Override public void setTheme(String themeName) { JQMCommon.applyTheme(select, themeName); Element uiSel = findUiSelect(); if (uiSel != null) { Element btn = JQMCommon.findChild(uiSel, "ui-btn"); if (btn != null) JQMButton.setTheme(btn, themeName); } }
private void bindFilterEvents() { if (boundFilterEvents) return; JQMCommon.bindFilterEvents(this, getDataFilterWidget().getElement()); boundFilterEvents = true; }
/** * Additional class names can be added directly to content div for better custom styling. * The same idea as UiBinder's embedded addStyleNames functionality. * * <br> Example: * <pre><jqm:JQMPage contentAddStyleNames="aaa bbb ccc"/></pre> */ public void setContentAddStyleNames(String value) { if (value == null || value.isEmpty()) return; JQMCommon.addStyleNames(content, value); }
protected ComplexPanel addToHeadGroups(ColumnDef grp, int index) { if (grp == null || index < 0) return null; final int colspan = grp.getColspan(); final int rowspan = grp.getRowspan(); final boolean isTitleTh = isTh(grp.getTitle()); boolean addTh = colspan > 1 || rowspan > 1 || isTitleTh; ComplexPanel col = getCol(getHeadGroupsRow(), index, addTh); if (col == null) return null; setColPriority(col, grp.getPriority()); col.getElement().setInnerHTML(isTitleTh ? removeTh(grp.getTitle()) : grp.getTitle()); if (colspan > 1) JQMCommon.setAttribute(col, "colspan", String.valueOf(colspan)); if (rowspan > 1) JQMCommon.setAttribute(col, "rowspan", String.valueOf(rowspan)); String classes = calcColClassNames(index, true/*head*/); if (!Empty.is(classes)) JQMCommon.addStyleNames(col, classes); applyImgOnly(col); return col; }
@Override public void setTheme(String themeName) { JQMCommon.applyTheme(select, themeName); }
private void bindFilterCallback() { if (boundFilterCallback) return; Element elt = getDataFilterWidget().getElement(); origFilter = JQMCommon.getFilterCallback(elt); JQMCommon.bindFilterCallback(this, elt, origFilter); boundFilterCallback = true; }
private void setFilterableElt(Element filterableElt) { filterable = filterableElt; if (filterable != null && JQMCommon.isFilterableReady(filterable)) { JavaScriptObject origFilter = JQMCommon.getFilterCallback(filterable); JQMCommon.bindFilterCallback(this, filterable, origFilter); } }
/** * @param value - if true "white vs. black" icon style will be used */ public void setIconAlt(boolean value) { JQMCommon.setIconAlt(this, value); }
public void setIconNoDisc(boolean value) { JQMCommon.setIconNoDisc(this, value); }
@Override public String getText() { Element e = getElement(); if (JQMCommon.childrenCount(e) == 0) { return e.getInnerText(); } else { Element child = JQMCommon.firstChildElt(e); while (child != null) { e = child; child = JQMCommon.firstChildElt(e); } return e.getInnerText(); } }