Class FileEnvironmentField

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyEditor, Serializable, Accessible, EnvironmentHandler, CustomPanelSupplier

@Deprecated public class FileEnvironmentField extends EnvironmentField
Deprecated.
Widget that displays a label, editable combo box for selecting environment variables and a button for brining up a file browser. The user can enter arbitrary text, select an environment variable or a combination of both. Any variables are resolved (if possible) and resolved values are displayed in a tip-text.

This class is deprecated - use the version in weka.gui instead.
Version:
$Revision: 14496 $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • FileEnvironmentField

      public FileEnvironmentField()
      Deprecated.
      Constructor
    • FileEnvironmentField

      public FileEnvironmentField(Environment env)
      Deprecated.
      Constructor
      Parameters:
      env - an Environment object to use
    • FileEnvironmentField

      public FileEnvironmentField(String label, Environment env)
      Deprecated.
    • FileEnvironmentField

      public FileEnvironmentField(String label, Environment env, int fileChooserType)
      Deprecated.
      Constructor
      Parameters:
      label - a label to display alongside the field.
      env - an Environment object to use.
      fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG)
    • FileEnvironmentField

      public FileEnvironmentField(String label, Environment env, int fileChooserType, boolean directoriesOnly)
      Deprecated.
      Constructor
      Parameters:
      label - a label to display alongside the field.
      env - an Environment object to use.
      fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG)
      directoriesOnly - true if file chooser should allow only directories to be selected
    • FileEnvironmentField

      public FileEnvironmentField(String label, int fileChooserType, boolean directoriesOnly)
      Deprecated.
      Constructor
      Parameters:
      label - a label to display alongside the field.
      fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG)
  • Method Details

    • addFileFilter

      public void addFileFilter(FileFilter toSet)
      Deprecated.
      Add a file filter to use
      Parameters:
      toSet - the file filter to use
    • resetFileFilters

      public void resetFileFilters()
      Deprecated.
      Resets the list of choosable file filters.
    • removeNotify

      public void removeNotify()
      Deprecated.
      Overrides:
      removeNotify in class JComponent
    • setEnabled

      public void setEnabled(boolean enabled)
      Deprecated.
      Set the enabled status of the combo box and button
      Overrides:
      setEnabled in class EnvironmentField
      Parameters:
      enabled - true if the combo box and button are to be enabled