Class ServerLinksDialog

  • All Implemented Interfaces:
    Dialog

    public final class ServerLinksDialog
    extends Object
    implements Dialog
    Represents a dialog which shows the links configured/sent from the server.
    • Constructor Detail

      • ServerLinksDialog

        public ServerLinksDialog​(DialogBase base)
      • ServerLinksDialog

        public ServerLinksDialog​(DialogBase base,
                                 ClickEvent onClick,
                                 int columns,
                                 int buttonWidth)
        Creates a new ServerLinksDialog instance.
        Parameters:
        base -
        onClick - The optional ClickEvent for this dialog.
        columns - The number of columns for the dialog buttons (default: 2).
        buttonWidth - The width of the dialog buttons (default: 150).
    • Method Detail

      • getBase

        public DialogBase getBase()
        Description copied from interface: Dialog
        Gets the dialog base which contains the dialog title and other options common to all types of dialogs.
        Specified by:
        getBase in interface Dialog
        Returns:
        mutable reference to the dialog base
      • columns

        public int columns()
        The number of columns for the dialog buttons (default: 2).
      • buttonWidth

        public int buttonWidth()
        The width of the dialog buttons (default: 150).
      • setBase

        public void setBase​(DialogBase base)
        Description copied from interface: Dialog
        Sets the dialog base.
        For internal use only as this is mandatory and should be specified in the constructor.
        Specified by:
        setBase in interface Dialog
        Parameters:
        base - the new dialog base
      • columns

        public ServerLinksDialog columns​(int columns)
        The number of columns for the dialog buttons (default: 2).
        Returns:
        this.
      • buttonWidth

        public ServerLinksDialog buttonWidth​(int buttonWidth)
        The width of the dialog buttons (default: 150).
        Returns:
        this.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object