|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mailster.gui.prefs.widgets.DialogMessageArea
public class DialogMessageArea
The DialogMessageArea is a resusable component for adding an accessible message area to a dialog.
When the message is normal a CLabel is used but an errors replaces the message area with a non editable text that can take focus for use by screen readers.
| Field Summary | |
|---|---|
static org.eclipse.swt.graphics.Color[] |
DEFAULT_GRADIENT_BACKGROUND
The gradient used for banner titles |
private java.lang.String |
lastMessageText
The last message text |
private int |
lastMessageType
The last message type |
private org.eclipse.swt.widgets.Composite |
messageComposite
The container to hold message and message Image |
private org.eclipse.swt.widgets.Label |
messageImageLabel
The label to hold the Image of the message |
private org.eclipse.swt.widgets.Text |
messageText
The Text component to hold the message |
private org.eclipse.swt.custom.CLabel |
titleLabel
The label to hold the title |
| Constructor Summary | |
|---|---|
DialogMessageArea()
|
|
| Method Summary | |
|---|---|
void |
clearErrorMessage()
Clears the error message. |
void |
createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents for the receiver. |
void |
restoreTitle()
Enables the title and disable the message text and image. |
void |
setMessageLayoutData(java.lang.Object layoutData)
Set the layoutData for the messageArea. |
void |
setTitleLayoutData(java.lang.Object layoutData)
Set the layoutData for the title area. |
void |
showTitle(java.lang.String titleMessage,
org.eclipse.swt.graphics.Image titleImage)
Show the title. |
void |
updateText(java.lang.String newMessage,
int newType)
Show the new message in the message text and update the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.eclipse.swt.graphics.Color[] DEFAULT_GRADIENT_BACKGROUND
private org.eclipse.swt.widgets.Text messageText
private org.eclipse.swt.widgets.Label messageImageLabel
private org.eclipse.swt.widgets.Composite messageComposite
private java.lang.String lastMessageText
private int lastMessageType
private org.eclipse.swt.custom.CLabel titleLabel
| Constructor Detail |
|---|
public DialogMessageArea()
| Method Detail |
|---|
public void createContents(org.eclipse.swt.widgets.Composite parent)
parent - the Composite that the children will be created inpublic void setTitleLayoutData(java.lang.Object layoutData)
layoutData - the layoutData for the titlesetMessageLayoutData(Object)public void setMessageLayoutData(java.lang.Object layoutData)
layoutData - the layoutData for the message area composite.setTitleLayoutData(Object)
public void showTitle(java.lang.String titleMessage,
org.eclipse.swt.graphics.Image titleImage)
titleMessage - String for the titketitleImage - Image or nullpublic void restoreTitle()
public void updateText(java.lang.String newMessage,
int newType)
newMessage - The new value for the messagenewType - One of the IMessageProvider constants. If newType is
IMessageProvider.NONE show the title.IMessageProviderpublic void clearErrorMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||