/** * Show or hide an element. * * @param element the element to show or hide * @param show true to show, false to hide */ private static void showOrHide(Element element, boolean show) { if (show) { element.getStyle().clearDisplay(); } else { element.getStyle().setDisplay(Display.NONE); } }
/** * Show or hide an element. * * @param element the element * @param show true to show, false to hide */ void showOrHide(Element element, boolean show) { if (element == null) { return; } if (show) { element.getStyle().clearDisplay(); } else { element.getStyle().setDisplay(Display.NONE); } } }
@Override public void setClip(Element popup, String rect) { super.setClip(popup, rect); popup.getStyle().setDisplay(Display.NONE); popup.getStyle().clearDisplay(); } }
@Override protected void onStart() { if (opening) { animFrame.getStyle().setHeight(1.0, Unit.PX); animFrame.getStyle().setPosition(Position.RELATIVE); animFrame.getStyle().clearDisplay(); height = contentContainer.getScrollHeight(); } else { height = contentContainer.getOffsetHeight(); } }
/** * Add a widget to the panel in the specified container. Note that this method * does not do the logical attach. * * @param w the widget to add * @param toReplace the widget to replace * @param container the container in which to place the widget */ private void add(Widget w, Widget toReplace, Element container) { // Validate. if (w == toReplace) { return; } // Detach new child. if (w != null) { w.removeFromParent(); } // Remove old child. if (toReplace != null) { remove(toReplace); } if (w != null) { // Physical attach. container.appendChild(w.getElement()); container.getStyle().clearDisplay(); adopt(w); } }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
@Override protected void refreshColumnWidths() { super.refreshColumnWidths(); /* * Clear the display for all columns that appear in the table. And update or remove the cols of * the colgroup that are no longer in the table according to the removeCOlumnsOnHide flag. */ if (colGroupEnabled) { int colCount = colgroup.getChildCount(); int lastColumn = getRealColumnCount(); for (int i = 0; i < lastColumn; i++) { ensureTableColElement(i).getStyle().clearDisplay(); } for (int i = colCount - 1; i >= lastColumn; i--) { if (removeColumnsOnHide) { colgroup.removeChild(colgroup.getChild(i)); } else { doSetColumnWidth(i, "0px"); ensureTableColElement(i).getStyle().setDisplay(Display.NONE); } } } }
@Override public void execute() { closeBox.getStyle().clearDisplay(); } });
@Override public void setActiveTab(final MagnoliaTabWidget tab) { this.activeTab = tab; // Hide all tabs showAllTabContents(false); tab.getElement().getStyle().clearDisplay(); animateHeightChange(tab); }
public DropdownContainer(String caption) { super(caption); for (Widget widget : getChildren()) { if (widget instanceof UnorderedList) { menu = (UnorderedList) widget; break; } } menu.getElement().getStyle().clearDisplay(); menu.getElement().getStyle().setDisplay(Style.Display.NONE); handlerManager = createHandlerManager(); }
private void setIndicatorVisible(boolean isVisible) { if (isVisible) { indicatorElem.getStyle().clearDisplay(); } else { indicatorElem.getStyle().setDisplay(Style.Display.NONE); } }
/** * Set the widget in the content portion between the header and footer. * * @param w the widget to use as the content */ public void setContentWidget(Widget w) { contentContainer.getStyle().clearDisplay(); add(w, content, contentContainer); // Logical attach. content = w; scheduledLayout(); }
@Override public void onSuccess( Row result ) { if( isVisible ) result.m_tr.getStyle().clearDisplay(); else result.m_tr.getStyle().setDisplay( Display.NONE ); } } );
/** * Set the widget in the footer portion at the bottom of the panel. * * @param w the widget to use as the footer */ public void setFooterWidget(Widget w) { footerContainer.getStyle().clearDisplay(); add(w, footer, footerContainer); // Logical attach. footer = w; scheduledLayout(); }
public void showField( Object field, boolean fShow ) { FieldInfo info = (FieldInfo) field; if( fShow ) table.getRowFormatter().getElement( info.row ).getStyle().clearDisplay(); else table.getRowFormatter().getElement( info.row ).getStyle().setDisplay( Display.NONE ); }
style.clearDisplay(); } else { style.setDisplay(Display.NONE);
@Override public void setClip(Element popup, String rect) { super.setClip(popup, rect); popup.getStyle().setDisplay(Display.NONE); popup.getStyle().clearDisplay(); } }
@Override protected void onStart() { if (opening) { animFrame.getStyle().setHeight(1.0, Unit.PX); animFrame.getStyle().setPosition(Position.RELATIVE); animFrame.getStyle().clearDisplay(); height = contentContainer.getScrollHeight(); } else { height = contentContainer.getOffsetHeight(); } }
private void clearTraces() { Style style = textWidget.getElement().getStyle(); style.clearLeft(); style.clearTop(); style.clearPosition(); style.clearZIndex(); stretchControl.getStyle().clearTop(); stretchControl.getStyle().clearLeft(); stretchControl.getStyle().clearDisplay(); JQueryWrapper.select("." + STRETCHER_BASE).setCss("display", ""); }