org.w3c.dom.css
Interface CSS2FontFaceSrc

All Superinterfaces:
CSSValue

public interface CSS2FontFaceSrc
extends CSSValue

The CSS2FontFaceSrc interface represents the src CSS Level 2 descriptor.

For this extension of the CSSValue interface, the valueType attribute of the underlying CSSValue interface shall be CSS_CUSTOM .

See also the Document Object Model (DOM) Level 2 Specification.

Since:
DOM Level 2

Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
 
Method Summary
 java.lang.String getFontFaceName()
          Specifies the full font name of a locally installed font.
 CSSValueList getFormat()
          This attribute contains a list of strings for the format CSS function.
 java.lang.String getUri()
          Specifies the source of the font, empty string otherwise.
 void setFontFaceName(java.lang.String fontFaceName)
           
 void setUri(java.lang.String uri)
           
 
Methods inherited from interface org.w3c.dom.css.CSSValue
getCssText, getCssValueType, setCssText
 

Method Detail

getUri

public java.lang.String getUri()
Specifies the source of the font, empty string otherwise.
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setUri

public void setUri(java.lang.String uri)
            throws DOMException

getFormat

public CSSValueList getFormat()
This attribute contains a list of strings for the format CSS function.

getFontFaceName

public java.lang.String getFontFaceName()
Specifies the full font name of a locally installed font.
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setFontFaceName

public void setFontFaceName(java.lang.String fontFaceName)
                     throws DOMException

Source code is GPL'd at http://xmlconf.sourceforge.net.