com.stimulsoft.report.components
Class StiPagesCollection
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<StiPage>
com.stimulsoft.report.components.StiPagesCollection
- All Implemented Interfaces:
- IStiJsonReportObject, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<StiPage>, java.util.Collection<StiPage>, java.util.List<StiPage>, java.util.RandomAccess
public class StiPagesCollection
- extends java.util.ArrayList<StiPage>
- implements IStiJsonReportObject
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, remove, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
cacheMode
public boolean cacheMode
canUseCacheMode
public boolean canUseCacheMode
pageCache
public StiSaveLoadPageEventHandler pageCache
notCachedPages
public java.util.List<StiPage> notCachedPages
StiPagesCollection
public StiPagesCollection()
StiPagesCollection
public StiPagesCollection(StiReport report)
get
public StiPage get(int index)
- Specified by:
get
in interface java.util.List<StiPage>
- Overrides:
get
in class java.util.ArrayList<StiPage>
set
public StiPage set(int index,
StiPage element)
- Specified by:
set
in interface java.util.List<StiPage>
- Overrides:
set
in class java.util.ArrayList<StiPage>
SaveToJsonObject
public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
throws JSONException
- Specified by:
SaveToJsonObject
in interface IStiJsonReportObject
- Throws:
JSONException
LoadFromJsonObject
public void LoadFromJsonObject(JSONObject jObject)
throws JSONException
- Specified by:
LoadFromJsonObject
in interface IStiJsonReportObject
- Throws:
JSONException
addPage
public boolean addPage(StiPage page)
add
public boolean add(StiPage page)
- Specified by:
add
in interface java.util.Collection<StiPage>
- Specified by:
add
in interface java.util.List<StiPage>
- Overrides:
add
in class java.util.ArrayList<StiPage>
addV2Internal
public boolean addV2Internal(StiPage page)
fillReport
public void fillReport(StiReport report)
fillPageInChildren
public void fillPageInChildren()
getCacheMode
public boolean getCacheMode()
AddRange
public void AddRange(StiPagesCollection pagesStore)
addAll
public void addAll(StiPagesCollection pagesStore)
GetPage
public void GetPage(StiPage page)
savePage
public void savePage(StiPage page)
savePage
public void savePage(StiPage page,
boolean clearContent)
loadPage
public void loadPage(StiPage page)
saveQuickPagesToCache
public void saveQuickPagesToCache()
flush
@Deprecated
public void flush()
- Deprecated.
flush
@Deprecated
public void flush(boolean final_)
- Deprecated.
copyEventsOfPagesCollection
public static void copyEventsOfPagesCollection(StiPagesCollection sourcePages,
StiPagesCollection destinationPages)
getPageWithoutCache
public StiPage getPageWithoutCache(int pageIndex)
setPageWithoutCache
public void setPageWithoutCache(int pageIndex,
StiPage page)
get
public StiPage get(java.lang.String pageName)
- Return
StiPage
by page name
- Parameters:
pageName
-
- Returns:
addPageToQuickCache
public void addPageToQuickCache(StiPage page,
boolean savePage)
isNotSavedPage
public boolean isNotSavedPage(StiPage page)
markPageAsNotSaved
public void markPageAsNotSaved(StiPage page)
GetComponentByName
public StiComponent GetComponentByName(java.lang.String componentName)
getReport
public StiReport getReport()
- Returns:
- the report
setCacheMode
public void setCacheMode(boolean cacheMode)
- Parameters:
cacheMode
- the cacheMode to set
setReport
public void setReport(StiReport report)
- Parameters:
report
- the report to set