congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Element.removeClassName
Code IndexAdd Tabnine to your IDE (free)

How to use
removeClassName
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.removeClassName (Showing top 20 results out of 315)

origin: com.haulmont.cuba/cuba-web-toolkit

/**
 * Removes any previous emphasis made by drag&drag
 */
protected void deEmphasis() {
  if (currentEmphasis != null) {
    currentEmphasis.removeClassName(OVER);
    currentEmphasis.removeClassName(OVER_SPLITTER);
    currentEmphasis = null;
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void openExpander() {
  element.removeClassName("hover");
  element.removeClassName("closed");
  element.addClassName("open");
  opened = true;
  updateColors();
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onMouseOut(MouseOutEvent event) {
    getElement().removeClassName("hover");
    updateColors();
  }
}, MouseOutEvent.getType());
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void closeExpander() {
  element.removeClassName("hover");
  element.removeClassName("open");
  element.addClassName("closed");
  opened = false;
  updateColors();
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void updateSingleTabStyle() {
  if (tabLabels.size() <= 1) {
    tabContainer.addClassName(SINGLE_TAB_CLASS_NAME);
  } else {
    tabContainer.removeClassName(SINGLE_TAB_CLASS_NAME);
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onTouchStart(TouchStartEvent event) {
    getElement().removeClassName("hover");
    setColorsClick();
  }
});
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

/**
 * Set the state: not active, not clicked.
 */
private void setColorsOff() {
  getElement().removeClassName("active");
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onTouchStart(TouchStartEvent event) {
    getElement().removeClassName("hover");
    setColorsClick();
    event.preventDefault();
  }
});
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onMouseOut(MouseOutEvent event) {
    getElement().removeClassName("hover");
    updateColors();
  }
}, MouseOutEvent.getType());
origin: errai/errai

 @Override
 public void invokeBinding(final Element element, final Annotation annotation) {
  final User user = userCache.getUser();
  final Set<Role> extractedRoles = roleExtractor.extractAllRoles((RestrictedAccess) annotation);
  if (User.ANONYMOUS.equals(user) || !user.getRoles().containsAll(extractedRoles)) {
   element.addClassName(RestrictedAccess.CSS_CLASS_NAME);
  }
  else {
   element.removeClassName(RestrictedAccess.CSS_CLASS_NAME);
  }
 }
});
origin: org.jboss.errai/errai-security-client

 @Override
 public void invokeBinding(final Element element, final Annotation annotation) {
  final User user = userCache.getUser();
  final Set<Role> extractedRoles = roleExtractor.extractAllRoles((RestrictedAccess) annotation);
  if (User.ANONYMOUS.equals(user) || !user.getRoles().containsAll(extractedRoles)) {
   element.addClassName(RestrictedAccess.CSS_CLASS_NAME);
  }
  else {
   element.removeClassName(RestrictedAccess.CSS_CLASS_NAME);
  }
 }
});
origin: gwtbootstrap/gwt-bootstrap

  private void classNameToggle(final boolean value,
                 final String className) {
    if (value) {
      getElement().addClassName(className);
    } else {
      getElement().removeClassName(className);
    }
  }
}
origin: org.overlord/overlord-commons-gwt

  /**
   * @param iconName
   */
  public void setFixedWidth(boolean fixedWidth) {
    if (fixedWidth)
      getElement().addClassName("fa-fw"); //$NON-NLS-1$
    else
      getElement().removeClassName("fa-fw"); //$NON-NLS-1$
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onTouchEnd(TouchEndEvent event) {
    getElement().removeClassName("hover");
    groupBar.handleTileClick((VTemporaryAppTileGroup) group, that);
    updateColors();
    event.preventDefault();
  }
});
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

/**
 * Set the state: active, but not in a click or touch.
 */
private void setColorsOn() {
  getElement().removeClassName("clicked");
  getElement().addClassName("active");
}
origin: com.haulmont.cuba/cuba-web-toolkit

@Override
public void setText(String value) {
  valueBuilder = maskValue(value);
  String text = valueBuilder.toString();
  if (text.equals(nullRepresentation) || valueBuilder.length() == 0) {
    getElement().addClassName(getEmptyFieldClass());
  } else {
    getElement().removeClassName(getEmptyFieldClass());
  }
  super.setText(text);
}
origin: GwtMaterialDesign/gwt-material

public void updateWaves(boolean enabled, UIObject obj) {
  if (obj instanceof MaterialWidget) {
    MaterialWidget widget = (MaterialWidget) obj;
    if (enabled) {
      if (widget.getWaves() != null) {
        widget.getElement().addClassName(CssName.WAVES_EFFECT);
      }
    } else {
      widget.getElement().removeClassName(CssName.WAVES_EFFECT);
    }
  }
}
origin: com.github.gwtmaterialdesign/gwt-material

public void updateWaves(boolean enabled, UIObject obj) {
  if (obj instanceof MaterialWidget) {
    MaterialWidget widget = (MaterialWidget) obj;
    if (enabled) {
      if (widget.getWaves() != null) {
        widget.getElement().addClassName(CssName.WAVES_EFFECT);
      }
    } else {
      widget.getElement().removeClassName(CssName.WAVES_EFFECT);
    }
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  @Override
  public void onTouchEnd(TouchEndEvent event) {
    getElement().removeClassName("hover");
    setActiveState(true);
    eventBus.fireEvent(new AppActivationEvent(appTile.getName()));
  }
});
origin: com.sksamuel.jqm4gwt/jqm4gwt-library

@Override
protected void setColPriority(ComplexPanel col, String priority) {
  super.setColPriority(col, priority);
  if (col == null) return;
  if (priority != null && !priority.isEmpty()) {
    JQMCommon.setAttribute(col.getElement(), "data-priority", priority);
    col.getElement().removeClassName(JQM4GWT_COL_PERSISTENT);
  } else {
    JQMCommon.setAttribute(col.getElement(), "data-priority", null);
    col.getElement().addClassName(JQM4GWT_COL_PERSISTENT);
  }
}
com.google.gwt.user.clientElementremoveClassName

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Notification (javax.management)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now