List of usage examples for com.google.gwt.user.client.ui UIObject removeStyleDependentName
public void removeStyleDependentName(String styleSuffix)
From source file:cc.kune.common.client.ui.BlinkAnimation.java
License:GNU Affero Public License
/** * Instantiates a new blink animation./*from w w w . j ava 2 s.com*/ * * @param obj the object to animate * @param interval between blinks */ public BlinkAnimation(final UIObject obj, final int interval) { this.interval = interval; timer = new Timer() { @Override public void run() { if (!blink) { obj.addStyleDependentName("blink"); iteration++; } else { obj.removeStyleDependentName("blink"); if (iteration == stopIter) { timer.cancel(); } } blink = !blink; } }; }
From source file:com.pietschy.gwt.pectin.client.style.DependentStyleBinding.java
License:Apache License
protected void updateTarget(Boolean value) { for (UIObject widget : widgets) { if (Boolean.TRUE.equals(value)) { widget.addStyleDependentName(styleName); } else {/*from ww w .j av a 2 s . c o m*/ widget.removeStyleDependentName(styleName); } } }