Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.annotations.gwt.client.util
Class CSSClassManager

java.lang.Object
  extended by org.nuxeo.ecm.platform.annotations.gwt.client.util.CSSClassManager

public class CSSClassManager
extends Object

Author:
Alexandre Russel

Constructor Summary
CSSClassManager(com.google.gwt.dom.client.Element element)
           
 
Method Summary
 boolean addClass(String name)
          Add the class to the element.
 boolean isClassPresent(String name)
           
 boolean removeClass(String name)
          remove the class from the specified element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSClassManager

public CSSClassManager(com.google.gwt.dom.client.Element element)
Method Detail

removeClass

public boolean removeClass(String name)
remove the class from the specified element.

Returns:
true if the class was removed, false if the class was not found.

isClassPresent

public boolean isClassPresent(String name)

addClass

public boolean addClass(String name)
Add the class to the element.

Returns:
true if the class was add, false if the class was already present.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.