Ulm.XML.Render
Class Renderer

java.lang.Object
  |
  +--Ulm.XML.Render.Renderer
Direct Known Subclasses:
Author

public abstract class Renderer
extends java.lang.Object

This is a simple class used to access the given fields of the XML tree. It contains static methods to get structures of the tree. Copyright: Copyright (c) 2001 Ulm university, all rights reserved Company: Ulm university


Field Summary
static int height
          Get the available height of the row:
 
Constructor Summary
Renderer()
           
 
Method Summary
 org.w3c.dom.Node cdir(org.w3c.dom.Node root, java.lang.String path)
           
abstract  javax.swing.JComponent getComponent(org.w3c.dom.Node forNode)
          Return the Component that can be displayed as an iformation for this node.
 int getHeight()
          Get the available height of the row:
abstract  java.lang.String getNodeName()
          Return the name of the top node of the structure that is possible to render.
 void p(java.lang.String message)
          Override to display debug messages
 java.lang.String seek(org.w3c.dom.Node root, java.lang.String path)
          Returns value or attribute for this path.
 int seekInt(org.w3c.dom.Node root, java.lang.String path)
          Returns value or attribute for this path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

public static int height
Get the available height of the row:

Constructor Detail

Renderer

public Renderer()
Method Detail

seek

public java.lang.String seek(org.w3c.dom.Node root,
                             java.lang.String path)
                      throws java.lang.Exception
Returns value or attribute for this path. Path has simple "DOS-like" syntax, for example "Author/Initials/#text". If you need to seek to an attribute, the last item must be &attribute_name.


seekInt

public int seekInt(org.w3c.dom.Node root,
                   java.lang.String path)
            throws java.lang.Exception
Returns value or attribute for this path. If you need an attribute, the last item must be &attribute_name. Thus must NOT end by "/#text"


cdir

public org.w3c.dom.Node cdir(org.w3c.dom.Node root,
                             java.lang.String path)

p

public void p(java.lang.String message)
Override to display debug messages


getNodeName

public abstract java.lang.String getNodeName()
Return the name of the top node of the structure that is possible to render.


getComponent

public abstract javax.swing.JComponent getComponent(org.w3c.dom.Node forNode)
Return the Component that can be displayed as an iformation for this node. Return null if the structure is different than expected.


getHeight

public int getHeight()
Get the available height of the row: