Package weka.gui

# Annotation Interface FilePropertyMetadata

@Documented @Retention(RUNTIME) @Target(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.

Version:
  $Revision: $
Author:
  Mark Hall (mhall{[at]}pentaho{[dot]}com)

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  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 Details

  - ### fileChooserDialogType

    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

    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