Interface DialogWindow

All Superinterfaces:
ActionsHolder, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, ComponentContainer, ExpandingLayout, Frame, HasComponents, HasMargin, HasSpacing, HasSubParts, OrderedContainer, SupportsExpandRatio, Window
All Known Implementing Classes:
DialogWindowImpl

public interface DialogWindow extends Window
UI component that represents a dialog window of application.
  • Field Details

  • Method Details

    • setDialogWidth

      void setDialogWidth(@Nullable String dialogWidth)
      Sets dialog width.
      Parameters:
      dialogWidth - width
    • getDialogWidth

      float getDialogWidth()
      Returns:
      dialog width
    • getDialogWidthUnit

      SizeUnit getDialogWidthUnit()
      Returns:
      dialog width unit
    • setDialogHeight

      void setDialogHeight(@Nullable String dialogHeight)
      Sets dialog height.
      Parameters:
      dialogHeight - height
    • getDialogHeight

      float getDialogHeight()
      Returns:
      height
    • getDialogHeightUnit

      SizeUnit getDialogHeightUnit()
      Returns:
      dialog height unit
    • setDialogStylename

      void setDialogStylename(@Nullable String stylename)
      Sets the custom CSS style.
      Parameters:
      stylename - style name
    • getDialogStylename

      @Nullable String getDialogStylename()
      Returns:
      custom style name
    • setResizable

      void setResizable(boolean resizable)
      Sets window resizable.
      Parameters:
      resizable - resizable flag
    • isResizable

      boolean isResizable()
      Returns:
      true if window is resizable by the end-user, otherwise false.
    • setDraggable

      void setDraggable(boolean draggable)
      Enables or disables that a window can be dragged (moved) by the user. By default a window is draggable.
      Parameters:
      draggable - draggable flag
    • isDraggable

      boolean isDraggable()
      Returns:
      true if window is draggable
    • setModal

      void setModal(boolean modal)
      Sets window modality. When a modal window is open, components outside that window cannot be accessed.
      Parameters:
      modal - modal flag
    • isModal

      boolean isModal()
      Returns:
      true if window is modal
    • setCloseOnClickOutside

      void setCloseOnClickOutside(boolean closeOnClickOutside)
      Sets if window can be closed by click outside of window content (by modality curtain).
      Parameters:
      closeOnClickOutside - true if window to be closed by click outside of window content (by modality curtain)
    • isCloseOnClickOutside

      boolean isCloseOnClickOutside()
      Returns:
      true if window can be closed by click outside of window content (by modality curtain)
    • setWindowMode

      void setWindowMode(WindowMode mode)
      Sets the mode for the window.
      Parameters:
      mode - mode
    • getWindowMode

      WindowMode getWindowMode()
      Returns:
      the mode of the window
    • center

      void center()
      Sets this window to be centered on screen.
    • setPosition

      default void setPosition(int x, int y)
      Sets the position of the window on the screen.
      Parameters:
      x - left position in pixels
      y - top position in pixels
    • setPositionX

      void setPositionX(int positionX)
      Sets the distance of Window left border in pixels from left border of the containing (main window).
      Parameters:
      positionX - left position in pixels
    • getPositionX

      int getPositionX()
      Returns:
      the distance of Window left border in pixels from left border of the containing (main window) or -1 if unspecified
    • setPositionY

      void setPositionY(int positionY)
      Sets the distance of Window top border in pixels from top border of the containing (main window).
      Parameters:
      positionY - top position in pixels
    • getPositionY

      int getPositionY()
      Returns:
      distance of Window top border in pixels from top border of the containing (main window) or -1 if unspecified