Documentation of 'weka.gui.FilePropertyMetadata' Java class
FilePropertyMetadata
weka.gui

Annotation Type FilePropertyMetadata



  • @Documented
     @Retention(value=RUNTIME)
     @Target(value=METHOD)
    public @interface FilePropertyMetadata
    Method annotation that can be used to provide some additional information for handling file properties in the GUI. In particular, it can be used to indicate whether an JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG should be used with the property and, furthermore, whether the dialog should allow only files or directories to be selected.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      boolean directoriesOnly
      Returns true if the file chooser dialog should only allow directories to be selected, otherwise it will allow only files to be selected
      int fileChooserDialogType
      Specify the type of JFileChooser dialog that should be used - i.e.
    • Element Detail

      • fileChooserDialogType

        public abstract int fileChooserDialogType
        Specify the type of JFileChooser dialog that should be used - i.e. either JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG
        Returns:
        the type of JFileChooser dialog to use
      • directoriesOnly

        public abstract boolean directoriesOnly
        Returns true if the file chooser dialog should only allow directories to be selected, otherwise it will allow only files to be selected
        Returns:
        true if only directories rather than files should be selected

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.