UiContainer (install4j API)
Description: declaration: package: com.install4j.api.test.ui, interface: UiContainer

# Interface UiContainer

All Known Subinterfaces:
  `AlertHandle, CreateUserDialogHandle, DialogHandle, LanguageSelectionDialogHandle, PasswordDialogHandle, RunningProcessesDialogHandle, ScreenHandle`

public interface UiContainer
Shared base for `ScreenHandle` and the `DialogHandle` family. Exposes the widget-tree dump and screenshot diagnostics that work uniformly in both in-process and subprocess mode.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `dumpAsString()`
  Returns this container's component tree as a string, for debugging.
  `void`
  `saveScreenshot(File file)`
  Save this container's underlying window as a PNG file.

- ## Method Details

  - ### dumpAsString

    @NotNull String dumpAsString()
    Returns this container's component tree as a string, for debugging.

  - ### saveScreenshot

    void saveScreenshot(@NotNull File file)
    Save this container's underlying window as a PNG file. Captures the full window. Parent directories of the file are created on demand. Existing files are overwritten.