ElementStyleAttributeSetter.java :  » GWT » gwtoolbox » org » gwtoolbox » widget » client » support » setter » Java Open Source

Java Open Source » GWT » gwtoolbox 
gwtoolbox » org » gwtoolbox » widget » client » support » setter » ElementStyleAttributeSetter.java
package org.gwtoolbox.widget.client.support.setter;

import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.DOM;

/**
 * @author Uri Boness
 */
public class ElementStyleAttributeSetter implements ValueSetter<String> {

    private Element element;
    private String attribute;

    public ElementStyleAttributeSetter(Element element, String attribute) {
        this.element = element;
        this.attribute = attribute;
    }

    public void set(String value) {
        DOM.setStyleAttribute(element, attribute, value);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.