Class ErrorBar

All Implemented Interfaces:
Drawable

public class ErrorBar extends Composite
An error bar to display an exception message and the details in a pop-up.
  • Constructor Details

    • ErrorBar

      public ErrorBar(Composite parent, int style)
      Create a new error bar.
      Parameters:
      parent - widget parent
      style - style of the widget
  • Method Details

    • setException

      public void setException(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