|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
net.sourceforge.java.feednread.frontend.components.tabbar.MessagePanel
Panel to display user defined messages. It is also capable of displaying
an Exception including the stack trace.
| Field Summary | |
private Label |
exceptionInfoLabel
|
private String |
message
|
private Composite |
messageArea
|
private Label |
messageInfoLabel
|
private String |
origin
|
private Label |
originInfoLabel
|
private Throwable |
throwable
|
private String |
title
|
private int |
type
|
private Label |
typeInfoLabel
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|
| Constructor Summary | |
MessagePanel(Composite parent,
String title,
String message,
String origin,
int type)
Creates a new MessagePanel instance.
|
|
MessagePanel(Composite parent,
String title,
Throwable throwable)
Creates a new MessagePanel instance which displays a
Throwable including its stack trace.
|
|
| Method Summary | |
private void |
createComponents(Composite parent)
Creates all components of this MessagePanel.
|
private void |
createExceptionArea()
Creates the exception area Composite.
|
private void |
createMessageArea(Composite parent,
Label headerLabel)
Creates the message area of this MessagePanel.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
Disposes all resource claimed by this MessagePanel.
|
private static void |
setShellImage(Shell shell,
int type)
Sets the Shell Image depending on the
specified type.
|
static void |
showAsShell(Display display,
String title,
String message,
String origin,
int type)
Displays a MessagePanel in a Shell.
|
static void |
showAsShell(Display display,
String title,
Throwable throwable)
Displays a MessagePanel in a Shell.
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Composite messageArea
private Label typeInfoLabel
private Label originInfoLabel
private Label messageInfoLabel
private Label exceptionInfoLabel
private String title
private String message
private int type
private String origin
private Throwable throwable
| Constructor Detail |
public MessagePanel(Composite parent,
String title,
String message,
String origin,
int type)
Creates a new MessagePanel instance.
parent - the parent Composite to embed the
MessagePanel intitle - the message titlemessage - the messageorigin - the origin of the messagetype - one of the following message types:
public MessagePanel(Composite parent,
String title,
Throwable throwable)
Creates a new MessagePanel instance which displays a
Throwable including its stack trace.
This can be used for debugging purpose.
parent - the parent Composite to embed the
MessagePanel intitle - the message titlethrowable - a Throwable| Method Detail |
public static void showAsShell(Display display,
String title,
Throwable throwable)
Displays a MessagePanel in a Shell.
display - the Display to create the Shell intitle - the message titlethrowable - a Throwable
public static void showAsShell(Display display,
String title,
String message,
String origin,
int type)
Displays a MessagePanel in a Shell.
display - the Display to create the Shell intitle - the message titlemessage - the messageorigin - the origin of the messagetype - one of the following message types:
public void dispose()
Disposes all resource claimed by this MessagePanel.
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEventprivate void createComponents(Composite parent)
Creates all components of this MessagePanel.
parent - the parent Composite to embed the
MessagePanel components in
private void createMessageArea(Composite parent,
Label headerLabel)
Creates the message area of this MessagePanel.
parent - the parent CompositeheaderLabel - the header Labelprivate void createExceptionArea()
Creates the exception area Composite.
private static void setShellImage(Shell shell,
int type)
Sets the Shell Image depending on the
specified type.
shell - the Shell to set the Image fortype - one of the following message types:
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||