Interface AbstractDialog
- All Known Implementing Classes:
Dialog, InteractionDialog, Progress
public interface AbstractDialog
Shared dialog contract for
Dialog and InteractionDialog.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Object constraints, Component cmp) Adds a component to the dialog using layout constraints.voidconfigureCommands(Command[] cmds, boolean commandsAsButtons) Configures commands for the dialog UI.voiddispose()Disposes the dialog.voidsetDefaultCommand(Command defaultCommand) Sets the default command when supported.voidsetDialogType(int dialogType) Sets a dialog sound type (e.g.Dialog#TYPE_INFO).voidsetScrollable(boolean scrollable) Sets whether dialog content should be scrollable.voidsetTimeout(long timeout) Sets timeout in milliseconds after which dialog should close.voidsetTransitions(Transition transition) Sets in/out transition for dialogs that support transitions.Shows the dialog and returns the selected command if applicable.
-
Method Details
-
addComponent
-
setScrollable
void setScrollable(boolean scrollable) Sets whether dialog content should be scrollable. -
setDialogType
void setDialogType(int dialogType) Sets a dialog sound type (e.g.Dialog#TYPE_INFO). -
setTransitions
Sets in/out transition for dialogs that support transitions. -
configureCommands
Configures commands for the dialog UI. -
setDefaultCommand
Sets the default command when supported. -
setTimeout
void setTimeout(long timeout) Sets timeout in milliseconds after which dialog should close. -
dispose
void dispose()Disposes the dialog. -
showDialog
Command showDialog()Shows the dialog and returns the selected command if applicable.
-