|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.controls.JetProperty
jet.controls.JetNumber
jet.controls.JetUnitNumber
public class JetUnitNumber
A class for the Jet number property.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JetUnitNumber()
Constructor. |
|
JetUnitNumber(JetObject parent,
java.lang.String name)
Creates a JetUnitNumber object. |
|
JetUnitNumber(JetObject parent,
java.lang.String name,
int defval)
Creates a JetUnitNumber object. |
|
| Method Summary | |
|---|---|
static int |
convertToPixel(java.lang.String value,
int unit)
Gets value for showing, when the property is JetUnitNumber then return toString() |
static int |
convertToUnit(java.lang.String value,
int unit)
Gets value for showing, when the property is JetUnitNumber then return toString() |
double |
doubleValue()
Returns the value of this number as a double. |
float |
floatValue()
Returns the value of this number as a float. |
int |
get()
Returns the int value of this number. |
static java.lang.String |
get(int value,
int unit,
int fraction)
Gets value for showing, when the property is JetUnitNumber then return toString() |
java.lang.String |
getInspValue()
|
java.lang.String |
getInspValue(int unit,
int fraction)
get value for showing, when the property is JetUnitNumber then return toString() |
java.lang.Object |
getObject()
add for Layout group , they use "Integer" to cast getObject() of JetUnitNumber . |
int |
getUnit()
|
static java.lang.String |
getUnit(int value,
int unit,
int fraction)
Gets value for showing, when the property is JetUnitNumber then return toString() |
int |
intValue()
Returns the value of this number as an int. |
long |
longValue()
Returns the value of this number as a long. |
void |
set(double value)
Sets the property value with the specified value; |
void |
set(float value)
Sets the property value with the specified value; |
void |
set(int value)
Sets the property value with the specified value; |
void |
set(long value)
Sets the property value with the specified value; |
void |
set(java.lang.String theval)
Sets the value to this property via a String. |
void |
setCanChangeByOthers(boolean bSet)
If this property can not be dynanmic changed, set false. |
void |
setInt(int i)
|
void |
setUnitValue(int theval)
Sets the value to this property via a String and change unit to pixel. |
void |
setUnitValue(java.lang.String theval)
Sets the value to this property via a String and change unit to pixel. |
java.lang.String |
toCentimeterString()
|
java.lang.String |
toInchString()
|
java.lang.String |
toString()
Returns a String object representing this number's value. |
java.lang.String |
toUnitString()
Return the value as a string, if the property is based on unit, before return will converte the pixels to unit. |
| Methods inherited from class jet.controls.JetNumber |
|---|
addToAtomicAction, getInt, getMatchingSqlType, getPropertyChoice, setPropertyChoice, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JetUnitNumber()
public JetUnitNumber(JetObject parent,
java.lang.String name)
parent - object that created this object, that is, its comprising object.
name - property's name.
public JetUnitNumber(JetObject parent,
java.lang.String name,
int defval)
parent - comprising object.
name - property's name.
defval - default value for this property.| Method Detail |
|---|
public static int convertToPixel(java.lang.String value,
int unit)
public static java.lang.String get(int value,
int unit,
int fraction)
public static int convertToUnit(java.lang.String value,
int unit)
public static java.lang.String getUnit(int value,
int unit,
int fraction)
public void set(int value)
set in class JetNumbervalue - value for this number.
set(int),
get(int, int, int)public void set(long value)
set in class JetNumbervalue - value for this number.
set(int),
get(int, int, int)public void set(float value)
set in class JetNumbervalue - value for this number.
set(int),
get(int, int, int)public void set(double value)
set in class JetNumbervalue - value for this number.
set(int),
get(int, int, int)public void set(java.lang.String theval)
set in class JetNumbertheval - String value.public void setInt(int i)
setInt in class JetNumberpublic void setUnitValue(java.lang.String theval)
setUnitValue in class JetPropertypublic void setUnitValue(int theval)
public int intValue()
intValue in class JetNumberpublic long longValue()
longValue in class JetNumberpublic float floatValue()
floatValue in class JetNumberpublic double doubleValue()
doubleValue in class JetNumberpublic int get()
get in class JetNumberset(int)public int getUnit()
public java.lang.String getInspValue(int unit,
int fraction)
getInspValue in class JetPropertypublic java.lang.String getInspValue()
getInspValue in class JetPropertypublic java.lang.String toInchString()
public java.lang.String toCentimeterString()
public java.lang.String toUnitString()
JetProperty
toUnitString in class JetPropertypublic java.lang.String toString()
toString in class JetNumberpublic void setCanChangeByOthers(boolean bSet)
setCanChangeByOthers in class JetPropertypublic java.lang.Object getObject()
getObject in class JetProperty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||