public static class CSSStyles.Rules
extends java.lang.Object
Constructor and Description |
---|
Rules(java.net.URL baseDir) |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getBaseDir() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Return the properties.
|
java.lang.String |
getProperty(java.lang.String name)
Return the property value for a specified name.
|
int |
getPropertyAsInt(java.lang.String name,
int defaultSize)
Return the property value for a specified name as an int.
|
boolean |
hasProperty(java.lang.String name)
Return true if there is a property with a specified name.
|
boolean |
isEmpty()
Return true if these rules have no properties.
|
CSSStyles.Rules |
merge(CSSStyles.Rules other)
Merge these rules with other rules.
|
public java.net.URL getBaseDir()
public boolean isEmpty()
public CSSStyles.Rules merge(CSSStyles.Rules other)
other
- the other rulespublic boolean hasProperty(java.lang.String name)
name
- the property namepublic java.lang.String getProperty(java.lang.String name)
name
- the property namepublic int getPropertyAsInt(java.lang.String name, int defaultSize)
name
- the property namedefaultSize
- the default font sizepublic java.util.Map<java.lang.String,java.lang.String> getProperties()
Copyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence