All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.values.CssTime
java.lang.Object
|
+----org.w3c.css.values.CssValue
|
+----org.w3c.css.values.CssTime
- public class CssTime
- extends CssValue
Time
Time units are used with aural cascading style sheets.
These following are legal time units:
- ms: milliseconds
- s: seconds
Time values may not be negative.
-
CssTime()
- Create a new CssTime.
-
CssTime(Float)
- Create a new CssTime with a Float object.
-
equals(Object)
- Compares two values for equality.
-
get()
- Returns the current value
Float
-
getUnit()
- Returns the current value
-
set(String, Frame)
- Set the value of this time.
-
toString()
- Returns a string representation of the object.
CssTime
public CssTime()
- Create a new CssTime.
CssTime
public CssTime(Float value)
- Create a new CssTime with a Float object.
- Parameters:
- value - the Float object
set
public void set(String s,
Frame frame) throws InvalidParamException
- Set the value of this time.
- Parameters:
- s - the string representation of the time.
- frame - For errors and warnings reports.
- Throws: InvalidParamException
- The unit is incorrect
- Overrides:
- set in class CssValue
get
public Object get()
- Returns the current value
Float
- Overrides:
- get in class CssValue
getUnit
public String getUnit()
- Returns the current value
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
equals
public boolean equals(Object value)
- Compares two values for equality.
- Parameters:
- value - The other value.
- Overrides:
- equals in class CssValue
All Packages Class Hierarchy This Package Previous Next Index