org.nuxeo.ecm.platform.annotations.gwt.client.util
Class CSSClassManager
java.lang.Object
org.nuxeo.ecm.platform.annotations.gwt.client.util.CSSClassManager
public class CSSClassManager
- extends java.lang.Object
- Author:
- Alexandre Russel
Constructor Summary |
CSSClassManager(com.google.gwt.dom.client.Element element)
|
Method Summary |
boolean |
addClass(java.lang.String name)
Add the class to the element. |
boolean |
isClassPresent(java.lang.String name)
|
boolean |
removeClass(java.lang.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 |
CSSClassManager
public CSSClassManager(com.google.gwt.dom.client.Element element)
removeClass
public boolean removeClass(java.lang.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(java.lang.String name)
addClass
public boolean addClass(java.lang.String name)
- Add the class to the element.
- Returns:
- true if the class was add, false if the class was already present.
Copyright © 2010 Nuxeo SAS. All Rights Reserved.