TPTP 4.2.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.ui.editor.form.util
Class WidgetFactory

java.lang.Object
  extended byorg.eclipse.hyades.test.ui.internal.editor.form.base.FormWidgetFactory
      extended byorg.eclipse.hyades.test.ui.editor.form.util.WidgetFactory
All Implemented Interfaces:
org.eclipse.hyades.ui.util.IDisposable

Deprecated. 

The implementation of this class is not based on Eclipse Forms(a.k.a. "flat" look) framework that was made available publically in Eclipse 3.0. If you would like your editor(s) to be built with the Eclipse Forms technology, this is NOT the class to extend. To know more about Eclipse Forms:
Eclipse Forms Programming Guide

public class WidgetFactory
extends org.eclipse.hyades.test.ui.internal.editor.form.base.FormWidgetFactory
implements org.eclipse.hyades.ui.util.IDisposable

This class allows the client to create some widgets. In general, this class will log the error is failed to create the widgets and return null.

Since:
3.0.0

Nested Class Summary
protected  class WidgetFactory.BorderPainter
          Deprecated. This class is used to paint the borders for all the borderizables widgets of a control.
protected static class WidgetFactory.VisibilityHandler
          Deprecated. This class handles the visibility of a widget.
 
Field Summary
 
Fields inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.FormWidgetFactory
BORDER_STYLE, borderColor, COLOR_BORDER, COLOR_COMPOSITE_SEPARATOR, DEFAULT_HEADER_COLOR, foregroundColor, KEY_DRAW_BORDER, TREE_BORDER
 
Constructor Summary
WidgetFactory()
          Deprecated. Constructor for WidgetFactory
WidgetFactory(org.eclipse.swt.widgets.Display display)
          Deprecated. Constructor for WidgetFactory
 
Method Summary
 org.eclipse.swt.widgets.Menu addEditPopupMenu(org.eclipse.swt.custom.StyledText text)
          Deprecated. Adds a Copy/Cut/Paste popup menu to the specified StyledText.
 org.eclipse.swt.custom.CCombo createCCombo(org.eclipse.swt.widgets.Composite parent, int style)
          Deprecated. Creates a ccombo or return null if fails.
 org.eclipse.swt.custom.StyledText createStyledText(org.eclipse.swt.widgets.Composite parent, int style)
          Deprecated. Creates a styled text.
 org.eclipse.swt.custom.StyledText createStyledText(org.eclipse.swt.widgets.Composite parent, int style, java.lang.String accessibleName)
          Deprecated. Convenience method to also create a valid accessible listener when creating the StyledText
 void dispose()
          Deprecated. Disposes the widget factory.
protected  WidgetFactory.BorderPainter getBorderPainter()
          Deprecated.  
protected  WidgetFactory.VisibilityHandler getVisibilityHandler()
          Deprecated. Returns the visibilty handler used as the focus listeners of some of the created widgets.
 void paintBordersFor(org.eclipse.swt.widgets.Composite composite)
          Deprecated. Paints the borders for all the borderizable widgets of the composite.
 
Methods inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.FormWidgetFactory
createButton, createComposite, createComposite, createCompositeSeparator, createFormEngine, createFormEngine, createHeadingLabel, createHeadingLabel, createHeadingLabel, createHeadingLabel, createHyperlinkLabel, createHyperlinkLabel, createLabel, createLabel, createSelectableLabel, createSelectableLabel, createSeparator, createTable, createText, createText, createTree, deleteKeyPressed, ensureVisible, getBackgroundColor, getBorderColor, getBusyCursor, getColor, getForegroundColor, getHyperlinkColor, getHyperlinkCursor, getHyperlinkHandler, getHyperlinkHoverColor, getHyperlinkUnderlineMode, getScrolledComposite, hookDeleteListener, isWhiteBackground, processKey, registerColor, setBackgroundColor, setHyperlinkColor, setHyperlinkHoverColor, setHyperlinkUnderlineMode, turnIntoHyperlink, updateHyperlinkColors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetFactory

public WidgetFactory()
Deprecated. 
Constructor for WidgetFactory


WidgetFactory

public WidgetFactory(org.eclipse.swt.widgets.Display display)
Deprecated. 
Constructor for WidgetFactory

Parameters:
display -
Method Detail

dispose

public void dispose()
Deprecated. 
Disposes the widget factory.

Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable

getVisibilityHandler

protected WidgetFactory.VisibilityHandler getVisibilityHandler()
Deprecated. 
Returns the visibilty handler used as the focus listeners of some of the created widgets.

Returns:
VisibilityHandler

getBorderPainter

protected WidgetFactory.BorderPainter getBorderPainter()
Deprecated. 
Returns:
the painter used to paint the borders

createStyledText

public org.eclipse.swt.custom.StyledText createStyledText(org.eclipse.swt.widgets.Composite parent,
                                                          int style)
Deprecated. 
Creates a styled text.

Parameters:
parent -
style -
Returns:
StyledText

createStyledText

public org.eclipse.swt.custom.StyledText createStyledText(org.eclipse.swt.widgets.Composite parent,
                                                          int style,
                                                          java.lang.String accessibleName)
Deprecated. 
Convenience method to also create a valid accessible listener when creating the StyledText

Parameters:
parent -
style -
Returns:
StyledText

addEditPopupMenu

public org.eclipse.swt.widgets.Menu addEditPopupMenu(org.eclipse.swt.custom.StyledText text)
Deprecated. 
Adds a Copy/Cut/Paste popup menu to the specified StyledText. The activation of this menu is platform-dependant (right-click on Windows platforms for instance). This menu is automatically created if the StyledText has been created thanks to createStyledText. This method might be overriden.

Parameters:
text - The StyledText.
Returns:
the created edit menu.

createCCombo

public org.eclipse.swt.custom.CCombo createCCombo(org.eclipse.swt.widgets.Composite parent,
                                                  int style)
Deprecated. 
Creates a ccombo or return null if fails.

Parameters:
parent -
style -
Returns:
CCombo

paintBordersFor

public void paintBordersFor(org.eclipse.swt.widgets.Composite composite)
Deprecated. 
Paints the borders for all the borderizable widgets of the composite.

Parameters:
composite - the composite.

TPTP 4.2.0 Testing Tools Project
Public API Specification