Interface Dialogs.HasPosition<T>

Type Parameters:
T - return type of fluent API methods
All Known Subinterfaces:
Dialogs.BackgroundTaskDialogBuilder<T,V>, Dialogs.DialogBuilder<T>, Dialogs.InputDialogBuilder, Dialogs.MessageDialogBuilder, Dialogs.OptionDialogBuilder
All Known Implementing Classes:
DialogsImpl.BackgroundTaskDialogBuilderImpl, DialogsImpl.InputDialogBuilderImpl, DialogsImpl.MessageDialogBuilderImpl, DialogsImpl.OptionDialogBuilderImpl
Enclosing interface:
Dialogs

public static interface Dialogs.HasPosition<T>
Represents Dialog Builders that have position setting.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the left position of the dialog.
    Gets the top position of the dialog.
    Sets the distance of the dialog from the left of its container.
    Sets the top position of the dialog.
  • Method Details

    • getLeft

      String getLeft()
      Gets the left position of the dialog.
      Returns:
      the left position of the dialog
    • withLeft

      T withLeft(String left)
      Sets the distance of the dialog from the left of its container. If a unitless number is provided, pixels are assumed.

      Note that the dialog left edge may not be the same as the viewport left edge (e.g. the Lumo theme defines some spacing to prevent the dialog from stretching all the way to the left of the viewport).

      Parameters:
      left - the left position of the dialog
      Returns:
      builder
    • getTop

      String getTop()
      Gets the top position of the dialog.
      Returns:
      the top position of the dialog
    • withTop

      T withTop(String top)
      Sets the top position of the dialog. If a unitless number is provided, pixels are assumed.

      Note that the dialog top edge may not be the same as the viewport top edge (e.g. the Lumo theme defines some spacing to prevent the dialog from stretching all the way to the top of the viewport).

      Parameters:
      top - the top position of the dialog
      Returns:
      builder