Class FXFileChooserStage

java.lang.Object
javafx.stage.Window
javafx.stage.Stage
net.raumzeitfalle.fx.filechooser.FXFileChooserStage
All Implemented Interfaces:
javafx.event.EventTarget

public class FXFileChooserStage extends javafx.stage.Stage
A FileChooser placed into its own Stage.
See Also:
  • Property Summary

    Properties inherited from class javafx.stage.Stage

    alwaysOnTop, fullScreenExitHint, fullScreenExitKey, fullScreen, iconified, maxHeight, maximized, maxWidth, minHeight, minWidth, resizable, title

    Properties inherited from class javafx.stage.Window

    eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    create(Skin skin, Path startsIn, DirectoryChooserOption dirChooserOption, PathFilter... filters)
    Creates a new FileChooser placed into its own stage.
    create(Skin skin, Path startsIn, PathFilter... filters)
    Creates a new FileChooser placed into its own stage.
    create(Skin skin, DirectoryChooserOption dirChooserOption, PathFilter... filters)
    Creates a new FileChooser placed into its own stage.
    create(Skin skin, PathFilter... filters)
    Creates a new FileChooser placed into its own stage.
    showOpenDialog(javafx.stage.Window ownerWindow)
     

    Methods inherited from class javafx.stage.Stage

    alwaysOnTopProperty, close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, initModality, initOwner, initStyle, isAlwaysOnTop, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setAlwaysOnTop, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront

    Methods inherited from class javafx.stage.Window

    addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, hide, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static FXFileChooserStage create(Skin skin, PathFilter... filters)
      Creates a new FileChooser placed into its own stage. The new stage will be application modal by default. To change modality call the initModality(...) method.

      This instance will start browsing in current working directory accepting the provided PathFilter.

      Parameters:
      skin - Skin Defines the visual appearance of FileChooser. In case no Skin is provided, MODENA will be used.
      filters - PathFilter argument of variable length, accepts all path filters as needed. In case no filter is provided, a filter accepting all files will be used.
      Returns:
      FXFileChooserStage A file chooser in its own window.
    • create

      public static FXFileChooserStage create(Skin skin, DirectoryChooserOption dirChooserOption, PathFilter... filters)
      Creates a new FileChooser placed into its own stage. The new stage will be application modal by default. To change modality call the initModality(...) method.

      This instance will start browsing in current working directory accepting the provided PathFilter.

      Parameters:
      skin - Skin Defines the visual appearance of FileChooser. In case no Skin is provided, MODENA will be used.
      dirChooserOption - DirectoryChooserOption Defines if an integrated (same stage) directory chooser is used or the standard JavaFX platform specific directory chooser.
      filters - PathFilter argument of variable length, accepts all path filters as needed. In case no filter is provided, a filter accepting all files will be used.
      Returns:
      FXFileChooserStage A file chooser in its own window.
    • create

      public static FXFileChooserStage create(Skin skin, Path startsIn, PathFilter... filters)
      Creates a new FileChooser placed into its own stage. The new stage will be application modal by default. To change modality call the initModality(...) method.

      This instance will start browsing in the provided directory accepting files matching the provided PathFilter.

      Parameters:
      skin - Skin Defines the visual appearance of FileChooser. In case no Skin is provided, MODENA will be used.
      startsIn - Path Location where file browsing starts. If not provided, the file chooser will start browsing in the current working directory.
      filters - PathFilter argument of variable length, accepts all path filters as needed. In case no filter is provided, a filter accepting all files will be used.
      Returns:
      FXFileChooserStage A file chooser in its own window.
    • create

      public static FXFileChooserStage create(Skin skin, Path startsIn, DirectoryChooserOption dirChooserOption, PathFilter... filters)
      Creates a new FileChooser placed into its own stage. The new stage will be application modal by default. To change modality call the initModality(...) method.

      This instance will start browsing in the provided directory accepting files matching the provided PathFilter.

      Parameters:
      skin - Skin Defines the visual appearance of FileChooser. In case no Skin is provided, MODENA will be used.
      startsIn - Path Location where file browsing starts. If not provided, the file chooser will start browsing in the current working directory.
      dirChooserOption - DirectoryChooserOption Defines if an integrated (same stage) directory chooser is used or the standard JavaFX platform specific directory chooser.
      filters - PathFilter argument of variable length, accepts all path filters as needed. In case no filter is provided, a filter accepting all files will be used.
      Returns:
      FXFileChooserStage A file chooser in its own window.
    • showOpenDialog

      public Optional<Path> showOpenDialog(javafx.stage.Window ownerWindow)
    • closeView

      public void closeView()
    • addLocations

      public void addLocations(List<Location> locations)