public interface AbstractDialog

Known subtypesInteractionDialog, Progress, Dialog

Shared dialog contract for Dialog and InteractionDialog.

Methods

public abstract void addComponent(Object constraints, Component cmp)Adds a component to the dialog using layout constraints.
public abstract void setScrollable(boolean scrollable)Sets whether dialog content should be scrollable.
public abstract void setDialogType(int dialogType)Sets a dialog sound type (e.g. Dialog#TYPE_INFO).
public abstract void setTransitions(Transition transition)Sets in/out transition for dialogs that support transitions.
public abstract void configureCommands(Command[] cmds, boolean commandsAsButtons)Configures commands for the dialog UI.
public abstract void setDefaultCommand(Command defaultCommand)Sets the default command when supported.
public abstract void setTimeout(long timeout)Sets timeout in milliseconds after which dialog should close.
public abstract void dispose()Disposes the dialog.
public abstract Command showDialog()Shows the dialog and returns the selected command if applicable.

Method details

addComponent

public abstract void addComponent(Object constraints, Component cmp)
Adds a component to the dialog using layout constraints.

setScrollable

public abstract void setScrollable(boolean scrollable)
Sets whether dialog content should be scrollable.

setDialogType

public abstract void setDialogType(int dialogType)
Sets a dialog sound type (e.g. Dialog#TYPE_INFO).

setTransitions

public abstract void setTransitions(Transition transition)
Sets in/out transition for dialogs that support transitions.

configureCommands

public abstract void configureCommands(Command[] cmds, boolean commandsAsButtons)
Configures commands for the dialog UI.

setDefaultCommand

public abstract void setDefaultCommand(Command defaultCommand)
Sets the default command when supported.

setTimeout

public abstract void setTimeout(long timeout)
Sets timeout in milliseconds after which dialog should close.

dispose

public abstract void dispose()
Disposes the dialog.

showDialog

public abstract Command showDialog()
Shows the dialog and returns the selected command if applicable.