|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the items added to this section.
@NotThreadSafe public interface Section<T extends Serializable>
A section defines a collection of items that are grouped by a set of defined criteria.
Method Summary | |
---|---|
void |
addItem(T item) Adds the given item to this section. |
void |
addSubSection(Section<T> subSection) Adds the given sub section to this section. |
boolean |
containsSubSections() Checks if the given section contains sub sections. |
List<T> |
getItems() Returns the list of items associated with this section. |
String |
getName() Returns the name of this section. |
Map<String,? extends Serializable> |
getProperties() Returns the properties associated with this section. |
List<Section<T>> |
getSubSections() Returns the list of sub sections to this section. |
boolean |
isEmpty() Checks if this section or any sub sections contains at least one item. |
Method Detail |
---|
String getName()
Map<String,? extends Serializable> getProperties()
void addSubSection(Section<T> subSection)
subSection
- the section to be added as sub section to this section.
List<Section<T>> getSubSections()
null
.
void addItem(T item)
item
- the item to be added to this section.
List<T> getItems()
null
.
boolean isEmpty()
true
if at least on item is contained,
false
if no item is contained.
boolean containsSubSections()
true
if at least on sub section is contained,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |