All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xt.xt_StyleFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JInternalFrame
                                   |
                                   +----xt.xt_DocumentFrame
                                           |
                                           +----xt.xt_StyleFrame

public class xt_StyleFrame
extends xt_DocumentFrame

xt_StyleFrame is an internal frame to provide a range of document style functions: to load, view and edit a stylesheet, to apply that stylesheet to the main current document, and to view and save the results after the stylesheet has been applied to the document.

To visually accomplish this wide range of functions, the frame uses several tab panes.


Constructor Index

 o xt_StyleFrame(xm_DocumentModel, String, xe_XmlEngine, xm_StatusBar, JFrame)
Constructor.

Method Index

 o addResultsSourceTab()
Add 'Results source' tab to display the source of the results generated by applying the stylesheet to the current document.
 o addStylesheetSourceTab()
Add 'Stylesheet source' tab to display the XML (XSL) source of the current stylesheet.
 o addStylesheetTreeTab()
Add 'Stylesheet source' tab to display the XML (XSL) source of the current stylesheet.
 o addTabs()
Add all required tabs.
 o ensureClassesRegistered()
Ensure the XSL-related element classes are registered.
 o getActions()
Retrieve the text area in which the source is displayed and edited.
 o getDocumentModel()
Retrieve the document model associated with this frame.
 o getResultsString()
Get the results from the last XSL generation in the form of a string.
 o getSourceTextArea()
Retrieve the text area in which the source is displayed and edited.

Constructors

 o xt_StyleFrame
 public xt_StyleFrame(xm_DocumentModel InputDocumentModel,
                      String InputFrameTitle,
                      xe_XmlEngine InputXmlEngine,
                      xm_StatusBar InputStatusBar,
                      JFrame InputParent)
Constructor.

Methods

 o ensureClassesRegistered
 public static void ensureClassesRegistered()
Ensure the XSL-related element classes are registered.

 o addTabs
 public void addTabs()
Add all required tabs.

 o addStylesheetSourceTab
 public void addStylesheetSourceTab()
Add 'Stylesheet source' tab to display the XML (XSL) source of the current stylesheet.

 o addStylesheetTreeTab
 public void addStylesheetTreeTab()
Add 'Stylesheet source' tab to display the XML (XSL) source of the current stylesheet.

 o addResultsSourceTab
 public void addResultsSourceTab()
Add 'Results source' tab to display the source of the results generated by applying the stylesheet to the current document.

 o getResultsString
 public String getResultsString()
Get the results from the last XSL generation in the form of a string.

Returns:
A string representation of the results
 o getDocumentModel
 public xm_DocumentModel getDocumentModel()
Retrieve the document model associated with this frame. This overrides the method in xt_DocumentFrame - so while we do still use the main document, all actions relating to this frame affect the stylesheet document only.

Returns:
The document model about which this frame displays information
Overrides:
getDocumentModel in class xt_DocumentFrame
 o getSourceTextArea
 public JTextArea getSourceTextArea()
Retrieve the text area in which the source is displayed and edited.

Returns:
The edit source text area
Overrides:
getSourceTextArea in class xt_DocumentFrame
 o getActions
 public static Action[] getActions()
Retrieve the text area in which the source is displayed and edited.

Returns:
An array of the actions supported by this class

All Packages  Class Hierarchy  This Package  Previous  Next  Index