TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.internal.execution.recorder.ui
Class RecorderUIUtility

java.lang.Object
  extended byorg.eclipse.hyades.internal.execution.recorder.ui.RecorderUIUtility

public class RecorderUIUtility
extends java.lang.Object

UI utility for laying out and creating controls


Nested Class Summary
static class RecorderUIUtility.RecorderHarnessUIException
          exception thrown by the RecorderHarnessUIUtility class when problems occur while createing or laying out various controls.
 
Constructor Summary
RecorderUIUtility()
           
 
Method Summary
static void assignFormLayout(org.eclipse.swt.widgets.Composite parent)
          method for assigning a FormLayoout to a composite
static void assignGridLayout(org.eclipse.swt.widgets.Composite compsite, int numberColumns, boolean columnsEqual)
          method for assigning a GridLayout to a Composite
static org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text, int swtOptions)
          method for creating a Button by passing a parent composite, button text, and any "or-ed" SWT options.
static org.eclipse.swt.widgets.Text createEditControl(org.eclipse.swt.widgets.Composite parent, java.lang.String defaultText, org.eclipse.swt.graphics.Font font)
          method for creating an Edit Control
static org.eclipse.swt.widgets.Group createGroup(org.eclipse.swt.widgets.Composite controlArea, java.lang.String groupDisplayName)
          method for creating a group
static org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite parent, java.lang.String labelText, org.eclipse.swt.graphics.Font font)
          method for creating a label
static void layoutCompositelInFormLayout(org.eclipse.swt.widgets.Control composite, int pixelsToTop, int verticalSpanPixels, int leftPercentWidth, int rightPercentWidth, int leftBorder, int bottomBorder, int topBorder, int rightBorder)
          Utility method for laying out a control in a form layout by specifying percentage-of-parent-width and border regions If the parent of the control is not a FormLayout, an exception will be thrown
static void layoutControlInFormLayout(org.eclipse.swt.widgets.Control control, int topBorder, int leftBorder, int bottomBorder, int rightBorder)
          positions a control in a formlayout using only border specifications
static void layoutControlInGrid(org.eclipse.swt.widgets.Control control, int columnSpan, int gridDataOptions)
          method for laying out a control in a grid layout by providing columnSpan and any "or'ed" combination of GridData options
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecorderUIUtility

public RecorderUIUtility()
Method Detail

layoutCompositelInFormLayout

public static void layoutCompositelInFormLayout(org.eclipse.swt.widgets.Control composite,
                                                int pixelsToTop,
                                                int verticalSpanPixels,
                                                int leftPercentWidth,
                                                int rightPercentWidth,
                                                int leftBorder,
                                                int bottomBorder,
                                                int topBorder,
                                                int rightBorder)
                                         throws RecorderUIUtility.RecorderHarnessUIException
Utility method for laying out a control in a form layout by specifying percentage-of-parent-width and border regions If the parent of the control is not a FormLayout, an exception will be thrown

Throws:
RecorderUIUtility.RecorderHarnessUIException

layoutControlInFormLayout

public static void layoutControlInFormLayout(org.eclipse.swt.widgets.Control control,
                                             int topBorder,
                                             int leftBorder,
                                             int bottomBorder,
                                             int rightBorder)
                                      throws RecorderUIUtility.RecorderHarnessUIException
positions a control in a formlayout using only border specifications

Throws:
RecorderUIUtility.RecorderHarnessUIException

layoutControlInGrid

public static void layoutControlInGrid(org.eclipse.swt.widgets.Control control,
                                       int columnSpan,
                                       int gridDataOptions)
                                throws RecorderUIUtility.RecorderHarnessUIException
method for laying out a control in a grid layout by providing columnSpan and any "or'ed" combination of GridData options

Throws:
RecorderUIUtility.RecorderHarnessUIException

assignFormLayout

public static void assignFormLayout(org.eclipse.swt.widgets.Composite parent)
method for assigning a FormLayoout to a composite


assignGridLayout

public static void assignGridLayout(org.eclipse.swt.widgets.Composite compsite,
                                    int numberColumns,
                                    boolean columnsEqual)
method for assigning a GridLayout to a Composite


createLabel

public static org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite parent,
                                                        java.lang.String labelText,
                                                        org.eclipse.swt.graphics.Font font)
method for creating a label

Returns:
Label

createEditControl

public static org.eclipse.swt.widgets.Text createEditControl(org.eclipse.swt.widgets.Composite parent,
                                                             java.lang.String defaultText,
                                                             org.eclipse.swt.graphics.Font font)
method for creating an Edit Control

Returns:
Text

createGroup

public static org.eclipse.swt.widgets.Group createGroup(org.eclipse.swt.widgets.Composite controlArea,
                                                        java.lang.String groupDisplayName)
method for creating a group

Returns:
Group

createButton

public static org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent,
                                                          java.lang.String text,
                                                          int swtOptions)
method for creating a Button by passing a parent composite, button text, and any "or-ed" SWT options.

Returns:
Button

TPTP 4.4.0 Testing Tools Project
Internal API Specification