|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
com.pepper.platform.program.SectionList
public class SectionList
Linked list of Sections
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SectionList()
|
|
SectionList(com.pepper.platform.program.PageMgr pageMgr)
Creates a new SectionList instance. |
Method Summary | |
---|---|
void |
add(int index,
Object section)
Describe add method here. |
boolean |
add(Object section)
Describe add method here. |
void |
addFirst(Object section)
Describe addFirst method here. |
void |
addLast(Object section)
Describe addLast method here. |
void |
clear()
|
boolean |
contains(Object object)
|
int |
getIndex(String sectionId)
Find the index of the specified section |
Section |
getSection(int index)
Describe getSection method here. |
Section |
getSection(String sectionId)
Find a section by id |
Section |
getSectionByName(String sectionName)
Find a section by name. |
Object |
remove(int index)
|
boolean |
remove(Object object)
|
Object |
removeFirst()
|
Object |
removeLast()
|
String |
toString()
Debug method to dump contents of Section to a String . |
Methods inherited from class java.util.LinkedList |
---|
addAll, addAll, clone, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public SectionList()
public SectionList(com.pepper.platform.program.PageMgr pageMgr)
SectionList
instance.
Method Detail |
---|
public Section getSection(int index)
getSection
method here.
index
- an int
value
Section
valuepublic Section getSection(String sectionId)
sectionId
- a String
containing
the id of the section to find.
Section
valuepublic Section getSectionByName(String sectionName)
sectionName
- a String
containing
the id of the section to find.
Section
valuepublic int getIndex(String sectionId)
sectionId
- a String
value
int
valuepublic boolean add(Object section)
add
method here.
add
in interface Collection
add
in interface List
add
in class LinkedList
section
- an Object
value
boolean
valuepublic void add(int index, Object section)
add
method here.
add
in interface List
add
in class LinkedList
index
- an int
valuesection
- an Object
valuepublic void addFirst(Object section)
addFirst
method here.
addFirst
in class LinkedList
section
- an Object
valuepublic void addLast(Object section)
addLast
method here.
addLast
in class LinkedList
section
- an Object
valuepublic String toString()
String
.
toString
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class LinkedList
public Object remove(int index)
remove
in interface List
remove
in class LinkedList
public boolean remove(Object object)
remove
in interface Collection
remove
in interface List
remove
in class LinkedList
public Object removeFirst()
removeFirst
in class LinkedList
public Object removeLast()
removeLast
in class LinkedList
public boolean contains(Object object)
contains
in interface Collection
contains
in interface List
contains
in class LinkedList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |