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:

Time values may not be negative.


Constructor Index

 o CssTime()
Create a new CssTime.
 o CssTime(Float)
Create a new CssTime with a Float object.

Method Index

 o equals(Object)
Compares two values for equality.
 o get()
Returns the current value Float
 o getUnit()
Returns the current value
 o set(String, Frame)
Set the value of this time.
 o toString()
Returns a string representation of the object.

Constructors

 o CssTime
 public CssTime()
Create a new CssTime.

 o CssTime
 public CssTime(Float value)
Create a new CssTime with a Float object.

Parameters:
value - the Float object

Methods

 o 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
 o get
 public Object get()
Returns the current value Float

Overrides:
get in class CssValue
 o getUnit
 public String getUnit()
Returns the current value

 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
 o 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