|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.trajano.twiff.renderer.SimpleElement
public class SimpleElement
This is a simple element that has no components.
Constructor Summary | |
---|---|
SimpleElement(String elementName)
This is a simplified constructor used for testing. |
|
SimpleElement(String elementName,
Map<String,String> attributes)
Constructs the element. |
Method Summary | |
---|---|
void |
accept(PageElementVisitor visitor)
Accepts a visitor that should visit the page data. |
void |
addElement(PageElement element)
Append page data to the composite. |
Map<String,String> |
getAttributes()
Returns the attributes. |
int |
getColumnNumber()
Return the column number where the current page element ends. |
List<PageElement> |
getElements()
Returns the sub-elements in the element. |
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 |
---|
public SimpleElement(String elementName)
elementName
- public SimpleElement(String elementName, Map<String,String> attributes)
elementName
- element name.attributes
- attributes in the element.Method Detail |
---|
public void accept(PageElementVisitor visitor)
accept
in interface PageElement
visitor
- visitor.public void addElement(PageElement element)
CompositePageElement
addElement
in interface CompositePageElement
element
- public Map<String,String> getAttributes()
public List<PageElement> getElements()
getElements
in interface CompositePageElement
public int getColumnNumber()
PageElement
getColumnNumber
in interface PageElement
PageElement.getColumnNumber()
public int getLineNumber()
PageElement
getLineNumber
in interface PageElement
PageElement.getLineNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |