
org.vectomatic.dom.svg.impl.CSSHelper Maven / Gradle / Ivy
/**********************************************
* Copyright (C) 2010 Lukas Laag
* This file is part of lib-gwt-svg.
*
* libgwtsvg is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* libgwtsvg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libgwtsvg. If not, see http://www.gnu.org/licenses/
**********************************************/
package org.vectomatic.dom.svg.impl;
import org.vectomatic.dom.svg.OMSVGStyle;
/**
* Class to encapsulate CSS discrepancies in web browsers
* @author laaglu
*/
public class CSSHelper {
public native String getProperty(OMSVGStyle style, String name) /*-{
return style.getPropertyValue(name);
}-*/;
public native void setProperty(OMSVGStyle style, String name, String value) /*-{
style.setProperty(name, value, '');
}-*/;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy