org.csstudio.ui.util.widgets
Class ErrorBar

java.lang.Object
  extended by Composite
      extended by org.csstudio.ui.util.widgets.ErrorBar

public class ErrorBar
extends Composite

An error bar to display an exception message and the details in a pop-up.

Author:
carcassi

Constructor Summary
ErrorBar(Composite parent, int style)
          Create a new error bar.
 
Method Summary
 int getMarginBottom()
          The margin on the bottom of the error bar, if displayed.
 int getMarginLeft()
          The margin on the left of the error bar, if displayed.
 int getMarginRight()
          The margin on the right of the error bar, if displayed.
 int getMarginTop()
          The margin on the top of the error bar, if displayed.
 void setException(java.lang.Exception ex)
           
 void setMarginBottom(int marginBottom)
          Changes the margin on the bottom of the error bar, if displayed.
 void setMarginLeft(int marginLeft)
          Changes the margin on the left of the error bar, if displayed.
 void setMarginRight(int marginRight)
          Changes the margin on the right of the error bar, if displayed.
 void setMarginTop(int marginTop)
          Changes the margin on the top of the error bar, if displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorBar

public ErrorBar(Composite parent,
                int style)
Create a new error bar.

Parameters:
parent - widget parent
style - style of the widget
Method Detail

setException

public void setException(java.lang.Exception ex)

getMarginTop

public int getMarginTop()
The margin on the top of the error bar, if displayed.

Returns:
the top margin

setMarginTop

public void setMarginTop(int marginTop)
Changes the margin on the top of the error bar, if displayed.

Parameters:
marginTop - the new margin

getMarginBottom

public int getMarginBottom()
The margin on the bottom of the error bar, if displayed.

Returns:
the top margin

setMarginBottom

public void setMarginBottom(int marginBottom)
Changes the margin on the bottom of the error bar, if displayed.

Parameters:
marginBottom - the new margin

getMarginLeft

public int getMarginLeft()
The margin on the left of the error bar, if displayed.

Returns:
the left margin

setMarginLeft

public void setMarginLeft(int marginLeft)
Changes the margin on the left of the error bar, if displayed.

Parameters:
marginLeft - the new margin

getMarginRight

public int getMarginRight()
The margin on the right of the error bar, if displayed.

Returns:
the right margin

setMarginRight

public void setMarginRight(int marginRight)
Changes the margin on the right of the error bar, if displayed.

Parameters:
marginRight - the new margin