Issue #1322 Add IDisplay
Change-Id: I0f20b5e2e4544c2a984c317a812855f92e935b92 Former-commit-id:4425d25c71
[formerly4425d25c71
[formerly 039c475445ca8f049c46547dba63d413f3019817]] Former-commit-id:d68c1f84f2
Former-commit-id:fe187f62f7
This commit is contained in:
parent
a0327c25fb
commit
5ca7396d38
2 changed files with 57 additions and 3 deletions
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
**/
|
||||
package com.raytheon.viz.ui.presenter;
|
||||
|
||||
/**
|
||||
* Interface representing a way to display something to the user. This interface
|
||||
* can be used in lieu of the IPresenterView where legacy code does not support
|
||||
* a presenter.
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 20, 2012 1286 djohnson Initial creation
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author djohnson
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
public interface IDisplay {
|
||||
|
||||
/**
|
||||
* Displays a prompt, returning the Yes/No response of the user.
|
||||
*
|
||||
* @param title
|
||||
* the title for the message box
|
||||
* @param message
|
||||
* the message to prompt
|
||||
* @return true if the user chooses yes
|
||||
*/
|
||||
boolean displayYesNoPopup(String title, String message);
|
||||
|
||||
}
|
|
@ -30,14 +30,14 @@ package com.raytheon.viz.ui.presenter;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 21, 2012 0743 djohnson Initial creation
|
||||
* Nov 20, 2012 1322 djohnson Extend IDisplay for displayYesNoPopup.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author djohnson
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
public interface IPresenterView {
|
||||
public interface IPresenterView extends IDisplay {
|
||||
|
||||
/**
|
||||
* Performs initialization of the view.
|
||||
|
@ -53,7 +53,7 @@ public interface IPresenterView {
|
|||
* the message
|
||||
*/
|
||||
void displayPopup(String title, String message);
|
||||
|
||||
|
||||
/**
|
||||
* Display an error popup message.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue