com.atlassian.renderer.v2.macro.basic
Class CssSizeValue
java.lang.Object
com.atlassian.renderer.v2.macro.basic.CssSizeValue
public class CssSizeValue
- extends Object
Class used to extract the size out of CSS value (dropping the unit of measurement off)
Method Summary |
boolean |
isValid()
Returns true if a size value can be parsed. |
int |
value()
Returns the actual size excluding units of measurement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CssSizeValue
public CssSizeValue(String raw)
value
public int value()
- Returns the actual size excluding units of measurement. If a size could not be parsed, returns 0.
- Returns:
- returns the actual size excluding units of measurement. If a size could not be parsed, returns 0.
isValid
public boolean isValid()
- Returns true if a size value can be parsed. Value must be an number or have an optional unit suffix (px, pt, em)
- Returns:
- returns true if a size value can be parsed. Value must be an number or have an optional unit suffix (px, pt, em)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.