net.trajano.twiff.renderer
Class IncludeElement

java.lang.Object
  extended by net.trajano.twiff.renderer.IncludeElement
All Implemented Interfaces:
CompositePageElement, PageElement

public class IncludeElement
extends Object
implements CompositePageElement

This is a simple element that has no components.

Author:
Archimedes Trajano

Constructor Summary
IncludeElement(PageElement includedElement)
          Constructs the element.
 
Method Summary
 void accept(PageElementVisitor visitor)
          Accepts the visitor that was loaded.
 void addElement(PageElement element)
          Append page data to the composite.
 int getColumnNumber()
          Return the column number where the current page element ends.
 List<PageElement> getElements()
           
 int getLineNumber()
          Return the line number where the current page element ends.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeElement

public IncludeElement(PageElement includedElement)
Constructs the element.

Parameters:
includedElement -
Method Detail

accept

public void accept(PageElementVisitor visitor)
Accepts the visitor that was loaded. If the included element is a DocumentElement it will traverse the sub-elements and not visit the document element.

Specified by:
accept in interface PageElement
Parameters:
visitor - visitor.

addElement

public void addElement(PageElement element)
Description copied from interface: CompositePageElement
Append page data to the composite.

Specified by:
addElement in interface CompositePageElement
Parameters:
element -

getColumnNumber

public int getColumnNumber()
Description copied from interface: PageElement
Return the column number where the current page element ends.

Specified by:
getColumnNumber in interface PageElement
Returns:
the column number. -1 if unavailable.
See Also:
PageElement.getColumnNumber()

getLineNumber

public int getLineNumber()
Description copied from interface: PageElement
Return the line number where the current page element ends.

Specified by:
getLineNumber in interface PageElement
Returns:
the line number. -1 if unavailable.
See Also:
PageElement.getLineNumber()

getElements

public List<PageElement> getElements()
Specified by:
getElements in interface CompositePageElement
Returns:
elements inside this composite.
See Also:
CompositePageElement.getElements()


Copyright © 2004-2005 trajano.net. All Rights Reserved.