com.lowagie.text

Class MarkedObject

public class MarkedObject extends Object implements Element

Wrapper that allows to add properties to 'basic building block' objects. Before iText 1.5 every 'basic building block' implemented the MarkupAttributes interface. By setting attributes, you could add markup to the corresponding XML and/or HTML tag. This functionality was hardly used by anyone, so it was removed, and replaced by the MarkedObject functionality.
Field Summary
protected Elementelement
The element that is wrapped in a MarkedObject.
protected PropertiesmarkupAttributes
Contains extra markupAttributes
Constructor Summary
protected MarkedObject()
This constructor is for internal use only.
MarkedObject(Element element)
Creates a MarkedObject.
Method Summary
ArrayListgetChunks()
Gets all the chunks in this element.
PropertiesgetMarkupAttributes()
booleanprocess(ElementListener listener)
Processes the element by adding it (or the different parts) to an ElementListener.
voidsetMarkupAttribute(String key, String value)
inttype()
Gets the type of the text element.

Field Detail

element

protected Element element
The element that is wrapped in a MarkedObject.

markupAttributes

protected Properties markupAttributes
Contains extra markupAttributes

Constructor Detail

MarkedObject

protected MarkedObject()
This constructor is for internal use only.

MarkedObject

public MarkedObject(Element element)
Creates a MarkedObject.

Method Detail

getChunks

public ArrayList getChunks()
Gets all the chunks in this element.

Returns: an ArrayList

getMarkupAttributes

public Properties getMarkupAttributes()

Returns: the markupAttributes

process

public boolean process(ElementListener listener)
Processes the element by adding it (or the different parts) to an ElementListener.

Parameters: listener an ElementListener

Returns: true if the element was processed successfully

setMarkupAttribute

public void setMarkupAttribute(String key, String value)

type

public int type()
Gets the type of the text element.

Returns: a type