Example usage for com.google.gwt.dom.client SpanElement removeClassName

List of usage examples for com.google.gwt.dom.client SpanElement removeClassName

Introduction

In this page you can find the example usage for com.google.gwt.dom.client SpanElement removeClassName.

Prototype

@Override
    public boolean removeClassName(String className) 

Source Link

Usage

From source file:com.tasktop.c2c.server.profile.web.ui.client.view.components.account.profile.AccountNotificationsReadOnlyView.java

License:Open Source License

private void updateCBSpanStyle(SpanElement span, boolean checked) {
    if (checked) {
        span.addClassName("active");
    } else {/*from  w  w w .j a v a 2 s .co m*/
        span.removeClassName("active");
    }
}

From source file:org.drools.workbench.screens.scenariosimulation.client.collectioneditor.CollectionEditorUtils.java

License:Apache License

public static void toggleRowExpansion(SpanElement faAngleRight, boolean toExpand) {
    if (toExpand) {
        faAngleRight.addClassName(FA_ANGLE_DOWN);
        faAngleRight.removeClassName(FA_ANGLE_RIGHT);
    } else {/*from   w ww  .jav a  2 s.  co m*/
        faAngleRight.addClassName(FA_ANGLE_RIGHT);
        faAngleRight.removeClassName(FA_ANGLE_DOWN);
    }
}