|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.ui.util.MsgBoxHelper
public class MsgBoxHelper
Shows different styles of message boxes.
Constructor Summary | |
---|---|
MsgBoxHelper(org.eclipse.swt.widgets.Composite parent)
Constructor. |
Method Summary | |
---|---|
static MsgBoxHelper |
createInstanceFor(org.eclipse.swt.widgets.Composite parent)
Creates new instance of MsgBoxHelper for given parent composite. |
static int |
showErrorBox(org.eclipse.swt.widgets.Composite parent,
String title,
String msg)
Shows error box. |
int |
showErrorBox(String title,
String msg)
Shows error box. |
static int |
showInfoBox(org.eclipse.swt.widgets.Composite parent,
String title,
String msg)
Shows information box. |
int |
showInfoBox(String title,
String msg)
Shows information box. |
static int |
showQuestionBox(org.eclipse.swt.widgets.Composite parent,
String title,
String msg)
Shows Y/N question box. |
int |
showQuestionBox(String title,
String msg)
Shows Y/N question box. |
static int |
showWarningBox(org.eclipse.swt.widgets.Composite parent,
String title,
String msg)
Shows warning box. |
int |
showWarningBox(String title,
String msg)
Shows warning box. |
static int |
showWarningQuestionBox(org.eclipse.swt.widgets.Composite parent,
String title,
String msg)
Shows warning Y/N question box. |
int |
showWarningQuestionBox(String title,
String msg)
Shows warning Y/N question box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MsgBoxHelper(org.eclipse.swt.widgets.Composite parent)
parent
- parent compositeMethod Detail |
---|
public static final MsgBoxHelper createInstanceFor(org.eclipse.swt.widgets.Composite parent)
MsgBoxHelper
for given parent composite.
parent
- parent composite
MsgBoxHelper
public int showErrorBox(String title, String msg)
showErrorBox
in interface IMsgBoxHelper
title
- message box titlemsg
- error message
IMsgBoxHelper.showErrorBox(java.lang.String, java.lang.String)
public int showInfoBox(String title, String msg)
showInfoBox
in interface IMsgBoxHelper
title
- message box titlemsg
- info message
IMsgBoxHelper.showInfoBox(java.lang.String, java.lang.String)
public int showQuestionBox(String title, String msg)
showQuestionBox
in interface IMsgBoxHelper
title
- message box titlemsg
- question message
IMsgBoxHelper.showQuestionBox(java.lang.String, java.lang.String)
public int showWarningBox(String title, String msg)
showWarningBox
in interface IMsgBoxHelper
title
- message box titlemsg
- warning message
IMsgBoxHelper.showWarningBox(java.lang.String, java.lang.String)
public int showWarningQuestionBox(String title, String msg)
showWarningQuestionBox
in interface IMsgBoxHelper
title
- message box titlemsg
- question message
IMsgBoxHelper.showWarningQuestionBox(java.lang.String, java.lang.String)
public static int showQuestionBox(org.eclipse.swt.widgets.Composite parent, String title, String msg)
parent
- parent controltitle
- message box titlemsg
- question message
public static int showWarningBox(org.eclipse.swt.widgets.Composite parent, String title, String msg)
parent
- parent controltitle
- message box titlemsg
- warning message
public static int showWarningQuestionBox(org.eclipse.swt.widgets.Composite parent, String title, String msg)
parent
- parent controltitle
- message box titlemsg
- question message
public static int showErrorBox(org.eclipse.swt.widgets.Composite parent, String title, String msg)
parent
- parent controltitle
- message box titlemsg
- error message
public static int showInfoBox(org.eclipse.swt.widgets.Composite parent, String title, String msg)
parent
- parent controltitle
- message box titlemsg
- info message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |