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()
Getter for the markup attributes.
booleanisContent()
booleanisNestable()
booleanprocess(ElementListener listener)
Processes the element by adding it (or the different parts) to an ElementListener.
voidsetMarkupAttribute(String key, String value)
Adds one markup attribute.
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()
Getter for the markup attributes.

Returns: the markupAttributes

isContent

public boolean isContent()

Since: iText 2.0.8

See Also: isContent

isNestable

public boolean isNestable()

Since: iText 2.0.8

See Also: isNestable

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)
Adds one markup attribute.

type

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

Returns: a type