com.stimulsoft.report.components
Class StiComponentsCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<StiComponent>
              extended by com.stimulsoft.report.components.StiComponentsCollection
All Implemented Interfaces:
IStiJsonReportObject, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<StiComponent>, java.util.Collection<StiComponent>, java.util.List<StiComponent>, java.util.RandomAccess

public class StiComponentsCollection
extends java.util.ArrayList<StiComponent>
implements IStiJsonReportObject

See Also:
Serialized Form

Constructor Summary
StiComponentsCollection()
           
StiComponentsCollection(int size)
           
StiComponentsCollection(StiContainer parent)
           
 
Method Summary
 void add(int index, StiComponent component)
           
 boolean add(StiComponent component)
           
 void AddRange(StiComponentsCollection components)
           
 void Clear()
           
 void ClearAllStates()
          Clear all earlier saved object states.
 java.lang.Object clone()
           
 void fillPage(StiPage page)
           
 StiComponent get(java.lang.String name)
           
 StiComponent GetComponentByName(java.lang.String componentName, StiContainer container)
           
 StiPage GetPageByAlias(java.lang.String alias)
           
 void LoadFromJsonObject(JSONObject jObject)
           
 void RestoreState(java.lang.String stateName)
          Restores the earlier saved object state.
 void SaveState(java.lang.String stateName)
          Saves the current state of an object.
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void SetParent(StiContainer parent)
           
 void sortBandsByLeftPosition()
           
 void sortBandsByTopPosition()
           
 void SortByBottomPosition()
           
 void SortByLeftPosition()
           
 void SortByPriority()
           
 void SortByRightPosition()
           
 void SortBySelectionTick()
           
 void SortByTopPosition()
           
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, 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
 

Constructor Detail

StiComponentsCollection

public StiComponentsCollection(StiContainer parent)

StiComponentsCollection

public StiComponentsCollection()

StiComponentsCollection

public StiComponentsCollection(int size)
Method Detail

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

add

public boolean add(StiComponent component)
Specified by:
add in interface java.util.Collection<StiComponent>
Specified by:
add in interface java.util.List<StiComponent>
Overrides:
add in class java.util.ArrayList<StiComponent>

add

public void add(int index,
                StiComponent component)
Specified by:
add in interface java.util.List<StiComponent>
Overrides:
add in class java.util.ArrayList<StiComponent>

SaveState

public void SaveState(java.lang.String stateName)
Saves the current state of an object.

Parameters:
stateName - A name of the state being saved.

RestoreState

public void RestoreState(java.lang.String stateName)
Restores the earlier saved object state.

Parameters:
stateName - A name of the state being restored.

ClearAllStates

public void ClearAllStates()
Clear all earlier saved object states.


SortBySelectionTick

public final void SortBySelectionTick()

SortByPriority

public final void SortByPriority()

SortByTopPosition

public final void SortByTopPosition()

SortByBottomPosition

public final void SortByBottomPosition()

SortByLeftPosition

public final void SortByLeftPosition()

SortByRightPosition

public final void SortByRightPosition()

sortBandsByLeftPosition

public void sortBandsByLeftPosition()

sortBandsByTopPosition

public void sortBandsByTopPosition()

GetComponentByName

public final StiComponent GetComponentByName(java.lang.String componentName,
                                             StiContainer container)

GetPageByAlias

public final StiPage GetPageByAlias(java.lang.String alias)

SetParent

public final void SetParent(StiContainer parent)

get

public StiComponent get(java.lang.String name)

fillPage

public void fillPage(StiPage page)

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.ArrayList<StiComponent>

AddRange

public void AddRange(StiComponentsCollection components)

Clear

public void Clear()