Examples of removeClassName()


Examples of com.google.gwt.dom.client.Element.removeClassName()

  @Override
  protected void onWidgetShow(Widget widget) {
    super.onWidgetShow(widget);
    Element p = widget.getElement().getParentElement();
    if (widget instanceof Component) {
      p.removeClassName(((Component) widget).getHideMode().value());
    } else {
      p.removeClassName(HideMode.DISPLAY.value());
    }
  }
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

    super.onWidgetShow(widget);
    Element p = widget.getElement().getParentElement();
    if (widget instanceof Component) {
      p.removeClassName(((Component) widget).getHideMode().value());
    } else {
      p.removeClassName(HideMode.DISPLAY.value());
    }
  }

  protected void scrollMenu(boolean top) {
    ul.setScrollTop(ul.getScrollTop() + scrollIncrement * (top ? -1 : 1));
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

  @Override
  protected void onEnable() {
    super.onEnable();
    Element li = getElement().getParentElement();
    if (li != null) {
      li.removeClassName(disabledStyle);
    }
  }

  protected boolean onEscape() {
    return true;
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

    if (shouldAutoHide) {
      deregisterAutoHider();
    }

    // trigger fade-out
    clone.removeClassName(Resources.INSTANCE.css().fadeIn());
    clone.addClassName(Resources.INSTANCE.css().fadeOut());
    clone.getOffsetWidth(); // Force update
    clone.getStyle().setOpacity(0.0);

View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

  private void updateDocumentEditState(boolean editing) {
    Element topLevel = getDocumentHtmlElement();
    // Set property to some arbitrary non-null value if we're in editing mode.
    full().getDocumentElement().setProperty(AnnotationPainter.DOCUMENT_MODE, editing);

    topLevel.removeClassName(WAVE_EDITOR_EDIT_ON);
    topLevel.removeClassName(WAVE_EDITOR_EDIT_OFF);
    topLevel.addClassName(editing ? WAVE_EDITOR_EDIT_ON : WAVE_EDITOR_EDIT_OFF);

    AnnotationPainter.maybeScheduleRepaint(content.getContext(), 0, mutable().size());
    DomHelper.setContentEditable(topLevel, editing, true);
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

    Element topLevel = getDocumentHtmlElement();
    // Set property to some arbitrary non-null value if we're in editing mode.
    full().getDocumentElement().setProperty(AnnotationPainter.DOCUMENT_MODE, editing);

    topLevel.removeClassName(WAVE_EDITOR_EDIT_ON);
    topLevel.removeClassName(WAVE_EDITOR_EDIT_OFF);
    topLevel.addClassName(editing ? WAVE_EDITOR_EDIT_ON : WAVE_EDITOR_EDIT_OFF);

    AnnotationPainter.maybeScheduleRepaint(content.getContext(), 0, mutable().size());
    DomHelper.setContentEditable(topLevel, editing, true);
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

   */
  protected void onCellDeselect(int row, int col) {
    Element cell = getCell(row, col);
    if (cell != null) {
      appearance.onCellSelect(cell, false);
      cell.removeClassName(states.cellSelected());
    }
  }

  /**
   * Handles selecting the given cell.
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

  protected void onRowDeselect(int rowIndex) {
    Element row = getRow(rowIndex);
    if (row != null) {
      appearance.onRowSelect(row, false);
      appearance.onRowHighlight(row, false);
      row.removeClassName(states.rowSelected());
    }
  }

  /**
   * Handles moving the mouse off a row.
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

          continue;
        }
        if (isAlt) {
          row.addClassName(cls);
        } else {
          row.removeClassName(cls);
        }
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.dom.client.Element.removeClassName()

        Element e = (Element) m.get("element");

        Boolean offset = (Boolean) m.get("hasxhideoffset");
        if (offset != null) {
          if (!offset.booleanValue()) {
            e.removeClassName(CommonStyles.get().hideOffsets());
          }
        }

        Boolean display = (Boolean) m.get("hasxhidedisplay");
        if (display != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.