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

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

Introduction

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

Prototype

@Override
    public boolean removeClassName(String className) 

Source Link

Usage

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

License:Apache License

public static void toggleRowExpansion(final LIElement liElement, boolean isShown) {
    if (isShown) {
        liElement.addClassName(NODE_HIDDEN);
        liElement.getStyle().setDisplay(Style.Display.NONE);
    } else {/* w  w  w .  j  a va  2 s .c  om*/
        liElement.removeClassName(NODE_HIDDEN);
        liElement.getStyle().setDisplay(Style.Display.BLOCK);
    }
}