Class PredefinedConfController

java.lang.Object
xal.extension.application.util.PredefinedConfController

public class PredefinedConfController extends Object
PredefinedConfController provides a panel with a configuration tree and can register and event of choosing the configuration. Loads the configuration files from the application's resources.
Author:
shishlo
  • Constructor Details

    • PredefinedConfController

      public PredefinedConfController(String resourcePathIn, String resourceNameIn)
      PredefinedConfController constructor. resourcePathIn - directory name for configuration files for this particular subclass of XalDocument. It is usually "config". resourceNameIn - the name of XML file with a configuration structure.
      Parameters:
      resourcePathIn - Description of the Parameter
      resourceNameIn - Description of the Parameter
  • Method Details

    • setSelectorListener

      public void setSelectorListener(ActionListener selectListener)
      Register the selection event listener.
      Parameters:
      selectListener - The new selectorListener value
    • setMessageTextField

      public void setMessageTextField(JTextField messageText)
      Sets the message text field. All messages will be shown in this text field.
      Parameters:
      messageText - The new messageTextField value
    • setFontsForAll

      public void setFontsForAll(Font fnt)
      Sets font for all GUI elements.
      Parameters:
      fnt - The new fontsForAll value
    • getJPanel

      public JPanel getJPanel()
      Returns the configuration panel.
      Returns:
      The jPanel value