UiCommand: support confirmation message

For some commands, like "Delete-Project", a confirmation dialog must be shown.
Add a support for it in UiCommand. If confirmation message is null or empty
no confirmation dialog is shown. If user cancel confirmation dialog, no
action is triggered.

Change-Id: I2b1e4759b488a3b5079fdb54c6c862ab59397ddf
This commit is contained in:
David Ostrovsky
2013-06-02 01:28:15 +02:00
parent 32259c663c
commit 130c551800
4 changed files with 24 additions and 0 deletions

View File

@@ -29,4 +29,5 @@ public interface UiCommand<R extends RestResource> extends RestView<R> {
String getTitle(R resource);
boolean isVisible(R resource);
boolean isEnabled(R resource);
String getConfirmationMessage(R resource);
}