org.eclipse.net4j.util.ui.container
Class ElementWizardComposite

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.net4j.util.ui.container.ElementWizardComposite
All Implemented Interfaces:
Drawable
Direct Known Subclasses:
ElementWizardComposite.WithCombo, ElementWizardComposite.WithRadios

public abstract class ElementWizardComposite
extends Composite

Since:
3.1
Author:
Eike Stepper

Nested Class Summary
static class ElementWizardComposite.WithCombo
           
static class ElementWizardComposite.WithRadios
           
 
Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
ElementWizardComposite(Composite parent, int style, String productGroup, String label)
           
 
Method Summary
protected  void create()
           
protected abstract  void createFactoryTypeControl()
           
protected  void factoryTypeChanged()
           
protected  IManagedContainer getContainer()
           
 String getDefaultDescription(String factoryType)
           
 String getDescription()
           
abstract  String getFactoryType()
           
protected  List<String> getFactoryTypes()
           
 String getLabel()
           
 String getProductGroup()
           
protected  void harvestControls(IElementWizard wizard)
           
protected  void init()
           
 void layout()
          If the receiver has a layout, asks the layout to lay out (that is, set the size and location of) the receiver's children.
 void setDefaultDescription(String factoryType, String value)
           
protected abstract  void setFactoryType(String factoryType)
           
 void setValidationContext(ValidationContext validationContext)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementWizardComposite

public ElementWizardComposite(Composite parent,
                              int style,
                              String productGroup,
                              String label)
Method Detail

getProductGroup

public String getProductGroup()

getLabel

public String getLabel()

setValidationContext

public void setValidationContext(ValidationContext validationContext)

getDefaultDescription

public String getDefaultDescription(String factoryType)

setDefaultDescription

public void setDefaultDescription(String factoryType,
                                  String value)

init

protected void init()

getFactoryTypes

protected List<String> getFactoryTypes()

create

protected void create()

factoryTypeChanged

protected void factoryTypeChanged()

layout

public void layout()
Description copied from class: org.eclipse.swt.widgets.Composite
If the receiver has a layout, asks the layout to lay out (that is, set the size and location of) the receiver's children. If the receiver does not have a layout, do nothing.

This is equivalent to calling layout(true).

Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint.

Overrides:
layout in class Composite

harvestControls

protected void harvestControls(IElementWizard wizard)

getContainer

protected IManagedContainer getContainer()

getDescription

public String getDescription()

getFactoryType

public abstract String getFactoryType()

setFactoryType

protected abstract void setFactoryType(String factoryType)

createFactoryTypeControl

protected abstract void createFactoryTypeControl()


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.