public abstract class AbstractDialogDelegate extends java.lang.Object implements IDialogDelegate
IDialogDelegate
. It handles the
onDialogButtonPressed(AbstractDialog, int)
by closing the given
dialog. It also implements showDialogButton(AbstractDialog, int)
by
returning true
to show all buttonsConstructor and Description |
---|
AbstractDialogDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
onDialogButtonPressed(AbstractDialog dialog,
int buttonId)
This method will be called if a event occurs in given
AbstractDialog . |
boolean |
showDialogButton(AbstractDialog dialog,
int buttonId)
This method is called for each button.
|
public void onDialogButtonPressed(AbstractDialog dialog, int buttonId)
IDialogDelegate
AbstractDialog
.onDialogButtonPressed
in interface IDialogDelegate
dialog
- The AbstractDialog
containing the button.buttonId
- The id of the triggered button as modeled with the editor.public boolean showDialogButton(AbstractDialog dialog, int buttonId)
IDialogDelegate
showDialogButton
in interface IDialogDelegate
dialog
- The AbstractDialog
containing the button.buttonId
- The id of the triggered button as modeled with the editor.true
if the button should be shown; false
otherwise