public class CatSections extends Object implements Serializable
| Constructor and Description |
|---|
CatSections() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSection(int index,
Section vSection) |
void |
addSection(Section vSection) |
Enumeration<Section> |
enumerateSection()
Method enumerateSection.
|
Section[] |
getSection()
Method getSection.Returns the contents of the collection in an Array.
|
Section |
getSection(int index)
Method getSection.
|
List<Section> |
getSectionCollection()
Method getSectionCollection.Returns a reference to 'sectionList'.
|
int |
getSectionCount()
Method getSectionCount.
|
Iterator<Section> |
iterateSection()
Method iterateSection.
|
void |
removeAllSection() |
boolean |
removeSection(Section vSection)
Method removeSection.
|
Section |
removeSectionAt(int index)
Method removeSectionAt.
|
void |
setSection(int index,
Section vSection) |
void |
setSection(List<Section> vSectionList)
Sets the value of 'sectionList' by copying the given Vector.
|
void |
setSection(Section[] vSectionArray) |
void |
setSectionCollection(List<Section> sectionList)
Deprecated.
|
public void addSection(Section vSection) throws IndexOutOfBoundsException
vSection - IndexOutOfBoundsException - if the index given is outside
the bounds of the collectionpublic void addSection(int index,
Section vSection)
throws IndexOutOfBoundsException
index - vSection - IndexOutOfBoundsException - if the index given is outside
the bounds of the collectionpublic Enumeration<Section> enumerateSection()
public Section getSection(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - if the index given is outside
the bounds of the collectionpublic Section[] getSection()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Section> getSectionCollection()
public int getSectionCount()
public Iterator<Section> iterateSection()
public void removeAllSection()
public boolean removeSection(Section vSection)
vSection - public Section removeSectionAt(int index)
index - public void setSection(int index,
Section vSection)
throws IndexOutOfBoundsException
index - vSection - IndexOutOfBoundsException - if the index given is outside
the bounds of the collectionpublic void setSection(Section[] vSectionArray)
vSectionArray - public void setSection(List<Section> vSectionList)
vSectionList - the Vector to copy.Copyright © 2020. All rights reserved.