|
org.eclipse.rse.ui.messages
Class SystemMessageLine
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.rse.ui.messages.SystemMessageLine
-
All Implemented Interfaces:
-
ISystemMessageLine,
Drawable
-
public class SystemMessageLine
- extends
Composite
- implements
ISystemMessageLine
A message line. It distinguishs between "normal" messages and errors.
Setting an error message hides a currently displayed message until
clearErrorMessage is called.
Fields inherited from class org.eclipse.swt.widgets.
Widget
|
handle
|
Methods inherited from class org.eclipse.swt.widgets.
Composite
|
changed,
checkSubclass,
computeSize,
getBackgroundMode,
getChildren,
getClientArea,
getLayout,
getLayoutDeferred,
getTabList,
isLayoutDeferred,
layout,
layout,
layout,
layout,
setBackgroundMode,
setFocus,
setLayout,
setLayoutDeferred,
setTabList
|
Methods inherited from class org.eclipse.swt.widgets.
Control
|
addControlListener,
addDragDetectListener,
addFocusListener,
addHelpListener,
addKeyListener,
addMenuDetectListener,
addMouseListener,
addMouseMoveListener,
addMouseTrackListener,
addMouseWheelListener,
addPaintListener,
addTraverseListener,
computeSize,
dragDetect,
dragDetect,
forceFocus,
getAccessible,
getBackground,
getBackgroundImage,
getBounds,
getCursor,
getData,
getDragDetect,
getEnabled,
getFont,
getForeground,
getLayoutData,
getLocation,
getMenu,
getMonitor,
getParent,
getRegion,
getShell,
getSize,
getToolTipText,
getVisible,
internal_dispose_GC,
internal_new_GC,
isEnabled,
isFocusControl,
isReparentable,
isVisible,
moveAbove,
moveBelow,
pack,
pack,
print,
redraw,
redraw,
removeControlListener,
removeDragDetectListener,
removeFocusListener,
removeHelpListener,
removeKeyListener,
removeMenuDetectListener,
removeMouseListener,
removeMouseMoveListener,
removeMouseTrackListener,
removeMouseWheelListener,
removePaintListener,
removeTraverseListener,
setBackground,
setBackgroundImage,
setBounds,
setBounds,
setCapture,
setCursor,
setDragDetect,
setEnabled,
setFont,
setForeground,
setLayoutData,
setLocation,
setLocation,
setMenu,
setParent,
setRedraw,
setRegion,
setSize,
setSize,
setToolTipText,
setVisible,
toControl,
toControl,
toDisplay,
toDisplay,
traverse,
update
|
Methods inherited from class org.eclipse.swt.widgets.
Widget
|
addDisposeListener,
addListener,
checkWidget,
dispose,
getData,
getDisplay,
getListeners,
getStyle,
isDisposed,
isListening,
notifyListeners,
removeDisposeListener,
removeListener,
removeListener,
setData,
setData,
toString
|
SystemMessageLine
public SystemMessageLine(
Composite parent)
- Creates a new message line as a child of the given parent. If the parent
uses a grid layout then the layout data is set. If not then the layout data
must be set by the creator to match the layout of the parent composite.
clearMessage
public void clearMessage()
-
Description copied from interface:
ISystemMessageLine
- Clears the currently displayed message.
-
-
Specified by:
-
clearMessage
in interface
ISystemMessageLine
-
clearErrorMessage
public void clearErrorMessage()
-
Description copied from interface:
ISystemMessageLine
- Clears the currently displayed error message and redisplayes
the non-error message which was active before the error message was set (if any).
-
-
Specified by:
-
clearErrorMessage
in interface
ISystemMessageLine
-
setMessage
public void setMessage(
SystemMessage message)
-
Description copied from interface:
ISystemMessageLine
- If the message line currently displays an error,
the message is stored and will be shown after a call to clearErrorMessage
-
-
Specified by:
-
setMessage
in interface
ISystemMessageLine
-
setMessage
public void setMessage(
String message)
-
Description copied from interface:
ISystemMessageLine
- Set the message text. If the message line currently displays an error,
the message is stored and will be shown after a call to clearErrorMessage.
-
-
Specified by:
-
setMessage
in interface
ISystemMessageLine
-
setErrorMessage
public void setErrorMessage(
String message)
-
Description copied from interface:
ISystemMessageLine
- Display the given error message. A currently displayed (non-error) message
is saved and will be redisplayed when the error message is cleared.
-
-
Specified by:
-
setErrorMessage
in interface
ISystemMessageLine
-
setErrorMessage
public void setErrorMessage(
SystemMessage message)
-
Description copied from interface:
ISystemMessageLine
- Display the given error message. A currently displayed (non-error) message
is saved and will be redisplayed when the error message is cleared.
-
-
Specified by:
-
setErrorMessage
in interface
ISystemMessageLine
-
setErrorMessage
public void setErrorMessage(
Throwable throwable)
-
Description copied from interface:
ISystemMessageLine
- Display the given exception as an error message. This is a convenience
method... a generic SystemMessage is used for exceptions.
-
-
Specified by:
-
setErrorMessage
in interface
ISystemMessageLine
-
getMessage
public
String getMessage()
-
Description copied from interface:
ISystemMessageLine
- Get the currently displayed message.
-
-
Specified by:
-
getMessage
in interface
ISystemMessageLine
-
-
Returns:
- The message. If no message is displayed
null is returned.
getErrorMessage
public
String getErrorMessage()
-
Description copied from interface:
ISystemMessageLine
- Get the currently displayed error text.
-
-
Specified by:
-
getErrorMessage
in interface
ISystemMessageLine
-
-
Returns:
- The error message. If no error message is displayed
null is returned.
getSystemErrorMessage
public
SystemMessage getSystemErrorMessage()
-
Description copied from interface:
ISystemMessageLine
- Get the currently displayed error text.
-
-
Specified by:
-
getSystemErrorMessage
in interface
ISystemMessageLine
-
-
Returns:
- The error message. If no error message is displayed
null is returned.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|