/** * Ask JQuery Mobile to "render" the element with the given id. */ public static void render(String id) { JQMContext.render(id); }
/** * Ask JQuery Mobile to "render" the element with the given id. */ public static void render(String id) { JQMContext.render(id); }
/** * Ask JQuery Mobile to "render" the element with the given id. */ public static void render(String id) { JQMContext.render(id); }
/** * Needed in some cases (when refresh() is not enough/working) for dynamic list views. * <p>For example after adding complex list items you have to call recreate() and then refresh().</p> */ public void recreate() { JQMContext.render(getElement()); }
/** * Needed in some cases (when refresh() is not enough/working) for dynamic list views. * <p>For example after adding complex list items you have to call recreate() and then refresh().</p> */ public void recreate() { JQMContext.render(getElement()); }
/** * Needed in some cases (when refresh() is not enough/working) for dynamic list views. * <p>For example after adding complex list items you have to call recreate() and then refresh().</p> */ public void recreate() { JQMContext.render(getElement()); }
private static void enhance(JQMContainer c) { render(c.getElement()); }
private static void enhance(JQMContainer c) { render(c.getElement()); }
private static void enhance(JQMContainer c) { render(c.getElement()); }
/** * Adds the given {@link Widget} before the given position. * * This is an O(n) operation because after the widget is inserted all the * remaining cells need to have their style sheets updated to reflect * their new position. * */ public Widget insert(Widget w, int beforeIndex) { FlowPanel widgetWrapper = new FlowPanel(); widgetWrapper.getElement().setId(Document.get().createUniqueId()); widgetWrapper.add(w); flow.insert(w, beforeIndex); JQMContext.render(widgetWrapper.getElement().getId()); rebase(); return widgetWrapper; }
/** * Adds the given {@link Widget} before the given position. * * This is an O(n) operation because after the widget is inserted all the * remaining cells need to have their style sheets updated to reflect * their new position. * */ public Widget insert(Widget w, int beforeIndex) { FlowPanel widgetWrapper = new FlowPanel(); widgetWrapper.getElement().setId(Document.get().createUniqueId()); widgetWrapper.add(w); flow.insert(w, beforeIndex); JQMContext.render(widgetWrapper.getElement().getId()); rebase(); return widgetWrapper; }
/** * Adds the given {@link Widget} before the given position. * * This is an O(n) operation because after the widget is inserted all the * remaining cells need to have their style sheets updated to reflect * their new position. * */ public Widget insert(Widget w, int beforeIndex) { FlowPanel widgetWrapper = new FlowPanel(); widgetWrapper.getElement().setId(Document.get().createUniqueId()); widgetWrapper.add(w); flow.insert(w, beforeIndex); JQMContext.render(widgetWrapper.getElement().getId()); rebase(); return widgetWrapper; }
/** * Add the given {@link Widget} into the next available cell. This call * will wrap to a new row if the existing row is already filled. * * The given widget will be wrapped inside a div with the appropriate * JQuery Mobile class name given (eg, "ui-block-a" for the first cell, * etc). This created div will have an automatically assigned id. * * @param addStyleNames - space separated additional style names for this particular cell * @return the widget that was created to wrap the given content */ @UiChild(tagname = "cell") public Widget add(Widget widget, String addStyleNames) { int size = getElement().getChildCount(); String klass = getCellStyleName(size); JQMTableCell cell = new JQMTableCell(); Element cellElt = cell.getElement(); cellElt.setId(Document.get().createUniqueId()); removeAllCellStyles(cellElt); cellElt.addClassName(klass); prepareCellPercentStyle(size, cell); if (addStyleNames != null && !addStyleNames.isEmpty()) { JQMCommon.addStyleNames(cell, addStyleNames); } cell.add(widget); flow.add(cell); JQMContext.render(cell.getElement().getId()); return cell; }
/** * Add the given {@link Widget} into the next available cell. This call * will wrap to a new row if the existing row is already filled. * * The given widget will be wrapped inside a div with the appropriate * JQuery Mobile class name given (eg, "ui-block-a" for the first cell, * etc). This created div will have an automatically assigned id. * * @param addStyleNames - space separated additional style names for this particular cell * @return the widget that was created to wrap the given content */ @UiChild(tagname = "cell") public Widget add(Widget widget, String addStyleNames) { int size = getElement().getChildCount(); String klass = getCellStyleName(size); JQMTableCell cell = new JQMTableCell(); Element cellElt = cell.getElement(); cellElt.setId(Document.get().createUniqueId()); removeAllCellStyles(cellElt); cellElt.addClassName(klass); prepareCellPercentStyle(size, cell); if (addStyleNames != null && !addStyleNames.isEmpty()) { JQMCommon.addStyleNames(cell, addStyleNames); } cell.add(widget); flow.add(cell); JQMContext.render(cell.getElement().getId()); return cell; }
/** * Add the given {@link Widget} into the next available cell. This call * will wrap to a new row if the existing row is already filled. * * The given widget will be wrapped inside a div with the appropriate * JQuery Mobile class name given (eg, "ui-block-a" for the first cell, * etc). This created div will have an automatically assigned id. * * @param addStyleNames - space separated additional style names for this particular cell * @return the widget that was created to wrap the given content */ @UiChild(tagname = "cell") public Widget add(Widget widget, String addStyleNames) { int size = getElement().getChildCount(); String klass = getCellStyleName(size); JQMTableCell cell = new JQMTableCell(); Element cellElt = cell.getElement(); cellElt.setId(Document.get().createUniqueId()); removeAllCellStyles(cellElt); cellElt.addClassName(klass); prepareCellPercentStyle(size, cell); if (addStyleNames != null && !addStyleNames.isEmpty()) { JQMCommon.addStyleNames(cell, addStyleNames); } cell.add(widget); flow.add(cell); JQMContext.render(cell.getElement().getId()); return cell; }