|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.cover.Section
public class Section
This class represents a section in a ZPad. A section consists of a number of HTML pages filled with entries. Entries can be retreived afterwards by specifying their index in the section (starting from 0).
| Field Summary | |
|---|---|
protected boolean |
_editMode
Whether the section was in edit mode. |
protected Navigator |
_navigator
The navigator. |
protected String |
_sectionName
The section name |
protected Template |
_template
|
Vector |
entryPages
The entries in this section (READ ONLY). |
long |
expirationTime
The expiration-time for this section. |
String |
frame
The Frame for this section (READ ONLY). |
String |
frameName
The name of the frame (READ ONLY). |
int |
numberOfPages
Read only. |
| Constructor Summary | |
|---|---|
Section(String sectionName,
String frameName,
String frame,
Template template,
int numberOfPages,
Vector entryPages,
Navigator navigator,
boolean editMode)
Creates a new section. |
|
| Method Summary | |
|---|---|
void |
destroy()
If the Section is removed from ZpadSectionCache, all pages generated by the Section should be removed too. |
Entry |
getEntry(int entryId)
Get an entry with a specific id from the section. |
int |
getIdOf(Object obj)
Get the ID of a specific entry. |
String |
getPage(int pageNo)
Get the HTML page for a particular number. |
int |
getPageOf(Entry entry)
Get the pageno of the page an entry is in. |
int |
getPageOf(int entryID)
Get the pagenumber of a particular entry number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _sectionName
public String frameName
public String frame
protected Template _template
public int numberOfPages
public Vector entryPages
protected Navigator _navigator
protected boolean _editMode
public long expirationTime
| Constructor Detail |
|---|
public Section(String sectionName,
String frameName,
String frame,
Template template,
int numberOfPages,
Vector entryPages,
Navigator navigator,
boolean editMode)
| Method Detail |
|---|
public String getPage(int pageNo)
public void destroy()
destroy in interface MlecDestroyablepublic Entry getEntry(int entryId)
entryId - the numeric id of an entry.
Entrypublic int getPageOf(int entryID)
public int getPageOf(Entry entry)
entry - the entry to look for.
public int getIdOf(Object obj)
obj - the object to search for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||