    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.

##

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

##

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

##

xt_StyleFrame

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

  Constructor.

##

ensureClassesRegistered

     public static void ensureClassesRegistered()

  Ensure the XSL-related element classes are registered.

addTabs

     public void addTabs()

  Add all required tabs.

addStylesheetSourceTab

     public void addStylesheetSourceTab()

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

addStylesheetTreeTab

     public void addStylesheetTreeTab()

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

addResultsSourceTab

     public void addResultsSourceTab()

  Add 'Results source' tab to display the source of the results generated by applying the stylesheet to the current document.

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

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

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

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