private boolean isMounted() { return getElement().hasChildNodes(); }
protected void cleanup(El row) { NodeList<Node> cn = row.dom.getChildNodes(); for (int i = cn.getLength() - 1; i >= 0; i--) { Element td = (Element) cn.getItem(i); if (!td.hasChildNodes()) { row.dom.removeChild(td); } } }
protected void cleanCells() { NodeList<Element> tds = DomQuery.select("tr.x-grid3-hd-row > td", table.getElement()); for (int i = 0; i < tds.getLength(); i++) { Element td = tds.getItem(i); if (!td.hasChildNodes()) { El.fly(td).removeFromParent(); } } }
public void addWidget(Widget w) { if (w != null) { if (hasSeparator) { if (widgetPanel.getElement().hasChildNodes()) { HTML separatorWrapper = new HTML("<span style='float: left; margin-left: .7em; margin-right: .7em'>|</span>"); separatorWrapper.addStyleName("ks-documentHeader-widgetPanel"); widgetPanel.add(separatorWrapper); } } w.addStyleName("ks-documentHeader-widgetPanel"); widgetPanel.add(w); } }
public void updateFromUIDL(UIDL uidl) { if (getElement().hasChildNodes()) { getElement().removeAllChildren(); initialized = getElement().hasChildNodes();
private void ensureFocusElement() { if (focusEl != null) { focusEl.removeFromParent(); } focusEl = new El(focusImpl.createFocusable()); focusEl.dom.getStyle().setProperty("outline", "none"); getElement().appendChild(focusEl.dom); if (focusEl.dom.hasChildNodes()) { focusEl.dom.getFirstChildElement().getStyle().setProperty("outline", "none"); com.google.gwt.dom.client.Style focusElStyle = focusEl.dom.getFirstChildElement().getStyle(); focusElStyle.setProperty("borderWidth", "0px"); focusElStyle.setProperty("fontSize", "1px"); focusElStyle.setPropertyPx("lineHeight", 1); } focusEl.setLeft(0); focusEl.setTop(0); focusEl.makePositionable(true); focusEl.addEventsSunk(Event.FOCUSEVENTS); }