Package xal.extension.application.util
Class PredefinedConfController
java.lang.Object
xal.extension.application.util.PredefinedConfController
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 Summary
ConstructorsConstructorDescriptionPredefinedConfController(String resourcePathIn, String resourceNameIn) PredefinedConfController constructor. resourcePathIn - directory name for configuration files for this particular subclass of XalDocument. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration panel.voidsetFontsForAll(Font fnt) Sets font for all GUI elements.voidsetMessageTextField(JTextField messageText) Sets the message text field.voidsetSelectorListener(ActionListener selectListener) Register the selection event listener.
-
Constructor Details
-
PredefinedConfController
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 ParameterresourceNameIn- Description of the Parameter
-
-
Method Details
-
setSelectorListener
Register the selection event listener.- Parameters:
selectListener- The new selectorListener value
-
setMessageTextField
Sets the message text field. All messages will be shown in this text field.- Parameters:
messageText- The new messageTextField value
-
setFontsForAll
Sets font for all GUI elements.- Parameters:
fnt- The new fontsForAll value
-
getJPanel
Returns the configuration panel.- Returns:
- The jPanel value
-