public class NameCollection
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | |
Name | get(int index) | |
Gets the |
||
Name | get(java.lang.String text) | |
Gets the |
Method Summary | ||
---|---|---|
int | add(java.lang.Object value) | |
Reserved for internal use. |
||
int | add(java.lang.String text) | |
Defines a new name.
|
||
void | clear() | |
Remove all defined names which are not referenced by the formulas and data source.
If the defined name is refered, we only set Name.ReferTo as null and hide them.
|
||
boolean | contains(java.lang.Object value) | |
Reserved for internal use. |
||
int | indexOf(java.lang.Object value) | |
Reserved for internal use. |
||
java.util.Iterator | iterator() | |
void | remove(java.lang.String text) | |
Remove the name.
|
||
void | remove(java.lang.String[] names) | |
Remove an array of name
|
||
void | removeAt(int index) | |
Remove the name at the specific index.
|
||
void | removeDuplicateNames() | |
Remove the duplicate defined names
|
||
void | sort() | |
Sorts defined names.
|
public int getCount()
public Name get(int index)
index
- The zero based index of the element.public Name get(java.lang.String text)
text
- Name text.public int add(java.lang.String text)
text
- The text to use as the name.public void remove(java.lang.String[] names)
names
- The names' text.public void remove(java.lang.String text)
text
- The name text.public void removeAt(int index)
index
- index of the Name to be removed.public void clear()
public void removeDuplicateNames()
public void sort()
public java.util.Iterator iterator()
public boolean contains(java.lang.Object value)
public int add(java.lang.Object value)
public int indexOf(java.lang.Object value)