public interface

DialogId

implements Destroyable
net.gtaun.shoebill.object.DialogId

Summary

Public Methods
abstract void cancel(Player player)
Closes the Dialog of the Player
abstract static DialogId create(EventHandler<DialogResponseEvent> onResponse, EventHandler<DialogShowEvent> onShow, EventHandler<DialogCloseEvent> onClose)
abstract static DialogId create(EventHandler<DialogResponseEvent> onResponse)
abstract static DialogId create()
Create a DialogId.
abstract int getId()
Gets the id of the Dialog
abstract void show(Player player, DialogStyle style, String caption, String text, String button1, String button2)
Show the Dialog to a Player with Params.
[Expand]
Inherited Methods
From interface net.gtaun.shoebill.object.Destroyable

Public Methods

public abstract void cancel (Player player)

Closes the Dialog of the Player

Parameters
player The Player

public static abstract DialogId create (EventHandler<DialogResponseEvent> onResponse, EventHandler<DialogShowEvent> onShow, EventHandler<DialogCloseEvent> onClose)

public static abstract DialogId create (EventHandler<DialogResponseEvent> onResponse)

public static abstract DialogId create ()

Create a DialogId. If the Creation fails, it will throw a CreationFailedException.

Returns
  • The created DialogId.

public abstract int getId ()

Gets the id of the Dialog

Returns
  • The DialogId

public abstract void show (Player player, DialogStyle style, String caption, String text, String button1, String button2)

Show the Dialog to a Player with Params.

Parameters
player The Player which will see the Dialog
style The DialogStyle
caption The Caption of the Dialog
text The Text in the Dialog
button1 The Text of Button 1
button2 The Text of Button 2