|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjet.controls.JetProperty
jet.controls.JetVector
public class JetVector
JetVector, for saving/retrieving a String vector.
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 | |
---|---|
JetVector()
|
|
JetVector(jet.controls.JetObject parent,
java.lang.String name)
Create JetVector instance with 0 size vector(both default value and normal value) |
Method Summary | |
---|---|
void |
add(java.lang.String s)
Adds the specified String to the end of normal value |
void |
clear()
Resets normal value |
boolean |
equal(JetProperty str)
|
java.util.Vector |
get()
Gets the normal value. |
void |
remove(java.lang.String s)
Removes the specified String to the end of normal value |
void |
set(java.lang.String strings)
Sets normal value via a DELIM separated string. |
void |
set(java.util.Vector strings)
Resets normal value via specified vector. |
int[] |
toIntArray()
Parse each string to an integer, and return them. |
java.lang.String |
toString()
Merge all items in normal value, separated by DELIM to String |
java.lang.String[] |
toStringArray()
|
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 JetVector()
public JetVector(jet.controls.JetObject parent, java.lang.String name)
parent
- ownername
- nameMethod Detail |
---|
public void add(java.lang.String s)
public void remove(java.lang.String s)
public void clear()
set(Vector)
public java.lang.String toString()
toString
in interface jet.convert.PropInfo
toString
in class java.lang.Object
public void set(java.util.Vector strings)
strings
- the specified vector be about to reset to normal value, DO NOT null
set(String)
public void set(java.lang.String strings)
set
in interface jet.util.Propertiable
set
in class JetProperty
strings
- a DELIM separated string, DO NOT null
java.lang.NullPointerException
- if strings
is null
toString()
public java.util.Vector get()
get
in interface jet.convert.VectorInfo
public int[] toIntArray()
toIntArray
in interface jet.convert.VectorInfo
java.lang.NumberFormatException
- if one string does not contain parsable integer.toStringArray()
public java.lang.String[] toStringArray()
toStringArray
in interface jet.convert.VectorInfo
public boolean equal(JetProperty str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |