|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.arch4j.ui.components.DialogManager
Centralized place to deal with Dialogs, We 'deal' with Dialogs by making sure if we're already displaying a modal dialog to not display another one. This is not the perfect solution, but stacking multiple modal dialogs can cause issues, maybe a better solution for later on would be to add additional Dialogs to the currently displaying one. The issue was that Modal Dialog's could be popped up from multiple- panels and would never be aware of each other. Also there are cases where the code doesn't have reference to or extend a PropertiesPanel so there would be no way to leverage the smarts. Now you can.
| Method Summary | |
boolean |
displayConfirm(Component component,
String aMessage,
String aTitle)
Display an Confirmation dialog to the user |
boolean |
displayConfirm(String aMessage,
String aTitle)
Display an Confirmation dialog to the user |
void |
displayError(Component component,
String anError,
String aTitle)
Display an error to the user. |
void |
displayError(String anError,
String aTitle)
Display an error to the user. |
void |
displayInformation(Component component,
String aMessage,
String aTitle)
Display an informational message to the user. |
void |
displayInformation(String aMessage,
String aTitle)
Display an informational message to the user. |
void |
displayMessage(Component component,
Object aMessage,
String aTitle,
int type)
Display an informational message to the user. |
void |
displayWarning(Component component,
String aWarning,
String aTitle)
Display a warning to the user. |
void |
displayWarning(String aWarning,
String aTitle)
Display a warning to the user. |
static DialogManager |
getManager()
|
boolean |
isDisplayingMessage()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DialogManager getManager()
public boolean isDisplayingMessage()
public void displayError(String anError,
String aTitle)
anError - The error message.aTitle - The title for the dialog.
public void displayError(Component component,
String anError,
String aTitle)
component - The component to associate the dialog with.anError - The error message.aTitle - The title for the dialog.
public boolean displayConfirm(String aMessage,
String aTitle)
aMessage - The confirmation message.aTitle - The title for the dialog.
public boolean displayConfirm(Component component,
String aMessage,
String aTitle)
component - The component to associate the dialog with.aMessage - The confirmation message.aTitle - The title for the dialog.
public void displayWarning(String aWarning,
String aTitle)
aWarning - The warning message.aTitle - The title for the dialog.
public void displayWarning(Component component,
String aWarning,
String aTitle)
component - The component to associate the dialog with.aWarning - The warning message.aTitle - The title for the dialog.
public void displayInformation(String aMessage,
String aTitle)
aMessage - The informational message.aTitle - The title for the dialog.
public void displayInformation(Component component,
String aMessage,
String aTitle)
component - The component to associate the dialog with.aMessage - The informational message.aTitle - The title for the dialog.
public void displayMessage(Component component,
Object aMessage,
String aTitle,
int type)
component - The component to associate the dialog with.aMessage - The informational message.aTitle - The title for the dialog.type - JOptionPane type
|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||