Class Dialog

All Implemented Interfaces:
Serializable

public class Dialog extends Widget
Dialog component is component which extended from Widget and have some additional functionality. On show(Frame) method it added to new created Dialog.DialogLayer which forbid underlying layers to receive mouse click and keyboard events.
See Also:
  • Field Details

  • Constructor Details

    • Dialog

      public Dialog()
      Creates a dialog with default title text.
    • Dialog

      public Dialog(float width, float height)
      Creates a dialog with default title text and specified position and size.
      Parameters:
      width - width of component.
      height - height of component.
    • Dialog

      public Dialog(org.joml.Vector2f size)
      Creates a dialog with default title text and specified position and size.
      Parameters:
      size - size of component.
    • Dialog

      public Dialog(String title)
      Creates a dialog with specified title text.
      Parameters:
      title - dialog text.
    • Dialog

      public Dialog(String title, float width, float height)
      Creates a dialog with specified title text and specified position and size.
      Parameters:
      title - dialog text.
      width - width of component.
      height - height of component.
    • Dialog

      public Dialog(String title, org.joml.Vector2f size)
      Creates a dialog with specified title text and specified position and size.
      Parameters:
      title - widget text.
      size - size of component.
  • Method Details

    • show

      public void show(Frame frame)
      Used to show title on specified frame.
      Parameters:
      frame - frame to show dialog.
    • getDialogLayer

      public Dialog.DialogLayer getDialogLayer()
    • close

      public void close()
      Used to close dialog.