com.plumtree.portaluiinfrastructure.tags.displaytree
Class HTMLDisplayElement

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.tags.displaytree.HTMLDisplayElement
All Implemented Interfaces:
IDisplayElement

public class HTMLDisplayElement
extends java.lang.Object
implements IDisplayElement

This class displays an HTML fragment. This is a framework only class and should not be used by external developers.

Author:
donh

Field Summary
protected  java.lang.Object m_Fragment
           
 
Constructor Summary
HTMLDisplayElement(java.lang.Object _fragment)
           
 
Method Summary
 HTMLElement Display(TagVisitor _tagVisitor)
          Displays this element and it's child elements and returns the result.
 boolean HasChildElements(ITagMetaData[] _childTags, java.lang.Object[] _results, TagLibraryMetaData _library, int _nCurrentDepth)
          This method searches for child tags of the current tag and fills in the results array with an Object if the tag has been found.
 int HasParentElement(ITagMetaData _parentTag, TagLibraryMetaData _library)
          This method searches for a parent tag of the current tag.
 void Release()
          This method is called to release any data that needs special handling before being allowed to go out of scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Fragment

protected java.lang.Object m_Fragment
Constructor Detail

HTMLDisplayElement

public HTMLDisplayElement(java.lang.Object _fragment)
Method Detail

Display

public HTMLElement Display(TagVisitor _tagVisitor)
Description copied from interface: IDisplayElement
Displays this element and it's child elements and returns the result.

Specified by:
Display in interface IDisplayElement
Returns:
HTMLElement The result of displaying this element
See Also:
IDisplayElement.Display(TagVisitor)

Release

public void Release()
Description copied from interface: IDisplayElement
This method is called to release any data that needs special handling before being allowed to go out of scope.

Specified by:
Release in interface IDisplayElement
See Also:
IDisplayElement.Release()

HasChildElements

public boolean HasChildElements(ITagMetaData[] _childTags,
                                java.lang.Object[] _results,
                                TagLibraryMetaData _library,
                                int _nCurrentDepth)
Description copied from interface: IDisplayElement
This method searches for child tags of the current tag and fills in the results array with an Object if the tag has been found. This method will not work if _results is not an array of null objects of the same length as _childTags.

Specified by:
HasChildElements in interface IDisplayElement
Parameters:
_childTags - An array of ITagMetaData objects for each child tag to search for.
_results - An array of null Objects. On execution, when a child tag is found, the location in the _results array that corresponds to the location of the tag in the _ChildTags array will be filled in with an Integer containing the positive depth of the child tag.
_library - The Tag Library of the tags to look for.
_nCurrentDepth - The depth of the current tag.
Returns:
boolean implies that all of the Child Tags have been found.
See Also:
IDisplayElement.HasChildElements(ITagMetaData[], Object[], TagLibraryMetaData, int)

HasParentElement

public int HasParentElement(ITagMetaData _parentTag,
                            TagLibraryMetaData _library)
Description copied from interface: IDisplayElement
This method searches for a parent tag of the current tag.

Specified by:
HasParentElement in interface IDisplayElement
_library - The Tag Library of the tag to look for.
Returns:
int 0 implies the parent tag was not found and a positive integer implies that the parent tag was found n levels above the current tag.
See Also:
IDisplayElement.HasParentElement(ITagMetaData, TagLibraryMetaData)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.