All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.vutbr.web.css.MediaQuery Maven / Gradle / Ivy

Go to download

jStyleParser is a CSS parser written in Java. It has its own application interface that is designed to allow an efficient CSS processing in Java and mapping the values to the Java data types. It parses CSS 2.1 style sheets into structures that can be efficiently assigned to DOM elements. It is intended be the primary CSS parser for the CSSBox library. While handling errors, it is user agent conforming according to the CSS specification.

There is a newer version: 4.0.1
Show newest version
/**
 * MediaQuery.java
 *
 * Created on 26. 6. 2014, 15:34:42 by burgetr
 */
package cz.vutbr.web.css;

/**
 * Holds the media query: the media type and a list of media expressions
 * 
 * @author burgetr
 */
public interface MediaQuery extends Rule
{

    /**
     * Sets the negative flag (i.e. the media query starts with NOT)
     * @param negative
     */
    public void setNegative(boolean negative);

    /**
     * Checks whether the query starts with NOT
     * @return true when the rule starts with NOT
     */
    public boolean isNegative();

    /**
     * Sets the media type.
     * @param type
     */
    public void setType(String type);
    
    /**
     * Obtains the declared media type.
     * @return the declared media type or null when no type is declared
     */
    public String getType();
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy