|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.infragistics.faces.shared.component.html.Length
Represents a lenght. Lenght have a value and an associated LenghtUnit.
The value can be negative and contain decimal
| Constructor Summary | |
Length(double value)
Constructs a new Length from a double |
|
Length(double value,
com.infragistics.faces.shared.enumeration.LengthUnit unit)
Constructs a new Length from a double and a unit |
|
Length(java.lang.String string)
Constructs a new lenght from a CSS string formatted as follow: 1px, 1pc ... |
|
| Method Summary | |
com.infragistics.faces.shared.enumeration.LengthUnit |
getUnit()
|
double |
getValue()
Returns the value |
void |
setUnit(com.infragistics.faces.shared.enumeration.LengthUnit unit)
Sets the unit |
void |
setValue(double value)
Sets the value |
void |
setValue(int value)
Sets the value |
java.lang.String |
toString()
|
static Length |
valueOf(java.lang.String string)
Returns a Lenght from the specified string which must be formatted according to the CSS2.1 specification |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Length(double value)
value -
public Length(double value,
com.infragistics.faces.shared.enumeration.LengthUnit unit)
value - unit - public Length(java.lang.String string)
string - : the css string to parse| Method Detail |
public static Length valueOf(java.lang.String string)
string -
public com.infragistics.faces.shared.enumeration.LengthUnit getUnit()
public double getValue()
public void setUnit(com.infragistics.faces.shared.enumeration.LengthUnit unit)
unit - The unit to set.public void setValue(double value)
value - public void setValue(int value)
value - public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||