|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjet.controls.JetProperty
jet.controls.JetBoolean
public class JetBoolean
JetBoolean is for saving/retrieving a boolean value.
Field Summary |
---|
Fields inherited from interface jet.util.Propertiable |
---|
BIGSTRING, BOOLEAN, CHG_FMTTINGBLNAME, CHG_FMTTINGFORMULA, CHG_OTHER, COLOR, CUSTOMER, CUSTOMERLINK, DELIM, DOUBLE, ENUMERATION, IGNORED, IMAGE, IMGVECTOR, MAPPINGTBL, NUMBER, REFERENCE, STRING, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR |
Constructor Summary | |
---|---|
JetBoolean()
|
|
JetBoolean(jet.controls.JetObject parent,
java.lang.String name)
Creates a JetBoolean instance with the normal value to be false. |
|
JetBoolean(jet.controls.JetObject parent,
java.lang.String name,
boolean thedef)
Creates a JetBoolean instance with a specified value. |
Method Summary | |
---|---|
boolean |
booleanValue()
|
boolean |
get()
Returns a value according to the following priority: normal value > default value. |
int |
getInt()
Returns an integer value according to the following priority: normal value > default value. |
int[] |
getMatchingSqlType()
Now, this API only for designer UI : get Matching SQL Type of this property Usage in UI : list all the (normal-)formula whose data-type in returned array |
java.util.Vector |
getPropertyChoice()
Only For Designer UI |
void |
set(boolean value)
Sets the normal value with the boolean value. |
void |
set(java.lang.String theval)
Sets the normal value via a string. |
void |
setInt(int i)
Sets the value of this object via an integer. |
java.lang.String |
toString()
Returns a string value according to the following priority: normal value > default value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jet.convert.PropInfo |
---|
getChangeByObjectName, getInspValue, getName, getValue, isChangeByOther, isNull, toUnitString |
Constructor Detail |
---|
public JetBoolean()
public JetBoolean(jet.controls.JetObject parent, java.lang.String name)
parent
- Owner.name
- Name.public JetBoolean(jet.controls.JetObject parent, java.lang.String name, boolean thedef)
parent
- Owner.name
- Name.thedef
- The value to be set for the normal value.Method Detail |
---|
public void set(boolean value)
value
- Value for the boolean.set(String)
,
setInt(int)
,
get()
,
booleanValue()
public void set(java.lang.String theval)
set
in interface jet.util.Propertiable
set
in class JetProperty
theval
- "true"(case sensitive) or "1" means to set it to true.
java.lang.NullPointerException
- if theval is null.set(boolean)
,
setInt(int)
,
get()
,
booleanValue()
public boolean get()
get
in interface jet.convert.BooleanInfo
set(boolean)
,
set(String)
,
setInt(int)
public boolean booleanValue()
booleanValue
in interface jet.convert.BooleanInfo
get()
public java.lang.String toString()
toString
in interface jet.convert.PropInfo
toString
in class java.lang.Object
Boolean.toString()
public int getInt()
getInt
in interface jet.controls.Integerable
getInt
in interface jet.convert.BooleanInfo
setInt(int)
,
set(boolean)
,
set(String)
,
get()
,
booleanValue()
public void setInt(int i)
setInt
in interface jet.controls.Integerable
i
- : 0 means to set it to false; others are true.getInt()
,
get()
,
booleanValue()
,
set(boolean)
,
set(String)
public java.util.Vector getPropertyChoice()
JetProperty
getPropertyChoice
in class JetProperty
public int[] getMatchingSqlType()
JetProperty
getMatchingSqlType
in class JetProperty
Db
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |