All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xs.xs_ActionElement

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Element
                           |
                           +----xs.xs_ActionElement

public class xs_ActionElement
extends xg_Element
An XML element representing an action within an XSL rule.


Variable Index

 o StyleProgressBar
Progress bar for application of style.
 o TheStylesheetDefn
The definition of the stylesheet which is currently being applied.

Constructor Index

 o xs_ActionElement()
Construct an action element with no name.
 o xs_ActionElement(String)
Construct an action element with a name.

Method Index

 o invoke(xg_Element, Writer)
Invoke this action to the InputSourceElement.
 o setProgressBar(JProgressBar)
Set the bar on which to show progress (as measured by the end offset of each node after it is processed).
 o setStylesheetDefn(xs_StylesheetDefn)
Set the stylesheet definition currently being applied.
 o toString()
Return a string representation of the element (intended for use as debug output).

Variables

 o TheStylesheetDefn
 protected xs_StylesheetDefn TheStylesheetDefn
The definition of the stylesheet which is currently being applied.

 o StyleProgressBar
 protected JProgressBar StyleProgressBar
Progress bar for application of style.

Constructors

 o xs_ActionElement
 public xs_ActionElement()
Construct an action element with no name.

 o xs_ActionElement
 public xs_ActionElement(String InputNodeName)
Construct an action element with a name.

Parameters:
InputNodeName - The name of the element

Methods

 o invoke
 public void invoke(xg_Element InputSourceElement,
                    Writer InputResultsWriter) throws xs_StyleException, IOException
Invoke this action to the InputSourceElement. This is expected to be overridden in derived classes, to write suitable output to the InputResultsWriter; this implementation does nothing.

Parameters:
InputSourceElement - The pre-parsed source document
InputResultsWriter - The writer to which to write the results of applying a stylesheet to the source element
Throws: xs_StyleException
Error applying style
Throws: IOException
Error writing to results writer
 o setStylesheetDefn
 public void setStylesheetDefn(xs_StylesheetDefn InputStylesheetDefn)
Set the stylesheet definition currently being applied. The purpose of this is to enable derived classes to create xs_Stylist objects to perform further work (although note that the xs_ActionElement class itself has no knowledge of xs_Stylist, to avoid a circular dependency).

Parameters:
InputStylesheetDefn - The definition of the stylesheet to apply
 o setProgressBar
 public void setProgressBar(JProgressBar InputProgressBar)
Set the bar on which to show progress (as measured by the end offset of each node after it is processed).

Parameters:
InputProgressBar - Progress bar for application of style
 o toString
 public String toString()
Return a string representation of the element (intended for use as debug output).

Returns:
String representing the node name and its type.
Overrides:
toString in class xg_Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index