|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.PageElement com.cete.dynamicpdf.pageelements.Group
public class Group
This class can be used to collect many page elements together and add them to the page all at once. Every page element that you add to the group will be added to the page when the group is added to the page.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
Constructor Summary | |
---|---|
Group()
Initializes a new instance of the Group class. |
Method Summary | |
---|---|
void |
add(PageElement pageElement)
Adds a page element to the group. |
void |
draw(PageWriter writer)
Draws the group to the given PageWriter object. |
java.util.Iterator |
getEnumerator()
Returns an enumerator that can iterate through the Group . |
PageElement |
getPageElement(int index)
Gets the PageElement object at the given index. |
PageElement |
getPageElement(java.lang.String id)
Gets the PageElement object with the given ID. |
PageElement |
getPageElementByID(java.lang.String id)
Returns a page element with the given ID. |
protected boolean |
hasElements()
Get a value indicating whether the group has any elements. |
protected boolean |
hasPageElements()
Returns a value indicating if there are any PageElements in the group. |
void |
insert(int index,
PageElement pageElement)
Inserts a page element to the group. |
int |
size()
Gets the number of page elements in the group. |
Methods inherited from class com.cete.dynamicpdf.PageElement |
---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Group()
Group
class.
Group
Method Detail |
---|
public PageElement getPageElement(java.lang.String id)
PageElement
object with the given ID.
id
- the element id.
PageElement
public PageElement getPageElement(int index)
PageElement
object at the given index.
index
- the index of the element
PageElement
public int size()
public void draw(PageWriter writer)
PageWriter
object.
draw
in class PageElement
writer
- PageWriter
object to receive the group's output.PageWriter
public void insert(int index, PageElement pageElement)
index
- The Zero-based index it which the page element should be inserted.pageElement
- PageElement
object to insert in the group.PageElement
public void add(PageElement pageElement)
pageElement
- PageElement
object to add to the group.PageElement
public java.util.Iterator getEnumerator()
Group
.
Group
public PageElement getPageElementByID(java.lang.String id)
getPageElementByID
in interface IPageElementContainer
id
- ID of the page element to find.
PageElement
with the given ID.PageElement
protected boolean hasPageElements()
PageElements
in the group.
PageElements
in the group.protected boolean hasElements()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |