Class Application

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Application extends DocumentedDistribution2<Options,OptionsGui>
See Also:
  • Field Details

  • Constructor Details

    • Application

      protected Application()
  • Method Details

    • showLinks

      protected void showLinks()
    • executeBatchOperation

      protected void executeBatchOperation()
      Execute the services as defined in base.Main.
      Specified by:
      executeBatchOperation in class DocumentedDistribution2<Options,OptionsGui>
    • completeGuiPopulation

      protected void completeGuiPopulation()
      Description copied from class: DocumentedDistribution2
      Call-back method to be overridden whenever the subclass wants to add further items after the gui has been constructed and populated.
      Specified by:
      completeGuiPopulation in class DocumentedDistribution2<Options,OptionsGui>
    • addUserMenuItems

      protected void addUserMenuItems()
      Description copied from class: DocumentedDistribution2
      Call-back method to be overridden whenever the subclass wants to add further items to the main menu bar. Is called after menu-component "[0] = file" is created, but the right-most ("language" and "help") are not yet existing.
      Specified by:
      addUserMenuItems in class DocumentedDistribution2<Options,OptionsGui>
    • do_translate_buffer

      void do_translate_buffer()
      Translage the d2d source text in the interactive editor into all back-end formats defined for that input format and display them.
    • invalidateAll

      void invalidateAll()
      Emits a message that the input buffer has been changed, and sets the tabs and backgrounds of the (old) results to gray. (The message is shown in the table as a thick separator line.)
    • makeAndShowTranslation

      void makeAndShowTranslation(ResolvedModule module, DOMClient dclient, Document dom, String key)
      Make one translation into one particular target, and show it in tab(s). Only translations into pure text and into (x)html(_1_0) are supported.
    • makeTempText

      void makeTempText(String key, boolean isHtml, String contents)
      Construct a text display and add it to the top-level tabs.
      Parameters:
      isHtml - whether to render the text, not to show it verbatim.
    • loadTransformationForModuleAndTarget

      Transformation loadTransformationForModuleAndTarget(ResolvedModule module, String targetKey, ResultContext resultContext, String topElementName)
    • selectExampleOptions

      protected void selectExampleOptions(String example)
      Callback when the user selects a pre-factored example from the "Help" menu. Basically the option model and gui shall be adjusted, but here also the source texts are read into the text editors immediately, for disk-less editing and procesing.
      Overrides:
      selectExampleOptions in class DocumentedDistribution2<Options,OptionsGui>
      Parameters:
      example - the name from the menu which identifies the example. Can be =null iff there is only one example.
    • addBaseGUI

      JPanel addBaseGUI(String tabTitle, String tabToolTip, Gui gui, Model model, boolean mainNotBatch)
      Add a top-level tab with the option Gui for "Main" or "Batch".
    • do_makeMuli

      void do_makeMuli(JButton button, String text)
      Gives other classes in this pacakge access to that protected service.
    • do_makeMuli_JLabel

      JLabel do_makeMuli_JLabel(String text)
      Gives other classes in this pacakge access to that protected service.
    • addUserPagesToTabbedPane

      protected void addUserPagesToTabbedPane()
      Add more panes to the top-level tab pane. Sequence is
          main  batch  d2d  xml  [varying outputs] defs def messages
        
      Specified by:
      addUserPagesToTabbedPane in class DocumentedDistribution2<Options,OptionsGui>
    • main

      public static void main(String[] args)