|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectComposite
com.ibm.etools.systems.core.ui.messages.SystemMessageLine
A message line. It distinguishs between "normal" messages and errors.
Setting an error message hides a currently displayed message until
clearErrorMessage
is called.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemMessageLine(Composite parent)
Creates a new message line as a child of the given parent. |
Method Summary | |
---|---|
void |
clearErrorMessage()
Clears the currently displayed error message and redisplays the non-error message which was active before the error message was set. |
void |
clearMessage()
Clears the currently displayed message. |
void |
dispose()
Dispose resources. |
protected Color |
getErrorColor()
return the color to use for error text |
String |
getErrorMessage()
Get the currently displayed error text. |
protected Color |
getInformationColor()
return the color to use for information text |
String |
getMessage()
Get the currently displayed message. |
SystemMessage |
getSystemErrorMessage()
Get the currently displayed error text. |
protected Color |
getWarningColor()
return the color to use for warning text |
void |
setErrorMessage(String message)
Display the given error message. |
void |
setErrorMessage(SystemMessage message)
Display the given error message. |
void |
setErrorMessage(Throwable exc)
Convenience method to set an error message from an exception |
void |
setMessage(String message)
Set the message text. |
void |
setMessage(SystemMessage message)
Set the non-error message text, via a SystemMessage object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemMessageLine(Composite parent)
Method Detail |
public void clearErrorMessage()
clearErrorMessage
in interface ISystemMessageLine
public void clearMessage()
clearMessage
in interface ISystemMessageLine
public String getErrorMessage()
getErrorMessage
in interface ISystemMessageLine
null
is returned.public String getMessage()
getMessage
in interface ISystemMessageLine
null is returned.
public SystemMessage getSystemErrorMessage()
getSystemErrorMessage
in interface ISystemMessageLine
null
is returned.public void setErrorMessage(String message)
setErrorMessage
in interface ISystemMessageLine
public void setErrorMessage(SystemMessage message)
ISystemMessageLine
setErrorMessage
in interface ISystemMessageLine
public void setErrorMessage(Throwable exc)
setErrorMessage
in interface ISystemMessageLine
protected Color getErrorColor()
protected Color getWarningColor()
protected Color getInformationColor()
public void setMessage(String message)
setMessage
in interface ISystemMessageLine
public void setMessage(SystemMessage message)
setMessage
in interface ISystemMessageLine
public void dispose()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |