com.arsdigita.bebop
Class ElementComponent

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.ElementComponent
All Implemented Interfaces:
Cloneable, Component, Lockable

public class ElementComponent
extends SimpleComponent

A component that gets its text entirely from a single XSL element.

Author:
Sameer Ajmani

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ElementComponent(String name, String uri)
          Constructs an ElementComponent that uses the element with the given name under the given XSL namespace URI.
 
Method Summary
 void generateXML(PageState state, Element parent)
          Constructs a new element with the name and namespace given in this component's constructor, and adds the element to the parent element.
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ElementComponent

public ElementComponent(String name,
                        String uri)
Constructs an ElementComponent that uses the element with the given name under the given XSL namespace URI.

Parameters:
name - the name of the element to use
uri - the URI of the XSL namespace
Method Detail

generateXML

public void generateXML(PageState state,
                        Element parent)
Constructs a new element with the name and namespace given in this component's constructor, and adds the element to the parent element.

Specified by:
generateXML in interface Component
Overrides:
generateXML in class SimpleComponent
Parameters:
state - the current page state
parent - the parent element for this new element


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC