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:
EventListener, IListener, Drawable
Direct Known Subclasses:
ElementWizardComposite.WithCombo, ElementWizardComposite.WithRadios

public abstract class ElementWizardComposite
extends Composite
implements IListener

Since:
3.1

Nested Class Summary
static class ElementWizardComposite.WithCombo
           
static class ElementWizardComposite.WithRadios
           
 
Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Constructor Summary
ElementWizardComposite(Composite parent, int style, String productGroup, String label)
           
ElementWizardComposite(Composite parent, int style, String productGroup, String label, ValidationContext validationContext)
           
ElementWizardComposite(Composite parent, int style, String productGroup, String label, ValidationContext validationContext, String defaultFactoryType)
           
 
Method Summary
protected  void create()
           
protected abstract  void createFactoryTypeControl()
           
protected  void factoryTypeChanged()
           
protected  IManagedContainer getContainer()
           
 String getDefaultDescription(String factoryType)
          Can be overridden by subclasses.
 String getDefaultFactoryType()
           
 String getDescription()
           
abstract  String getFactoryType()
           
protected  List<String> getFactoryTypes()
           
 String getLabel()
           
 INotifier getNotifier()
           
 String getProductGroup()
           
protected  void harvestControls(IElementWizard wizard)
           
protected  void init()
           
 void layout()
           
 void notifyEvent(IEvent event)
           
 void setDefaultDescription(String factoryType, String value)
          Deprecated. Override getDefaultDescription(String) instead.
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, getClientArea, getHorizontalBar, getScrollbarsMode, 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, getBorderWidth, 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)

ElementWizardComposite

public ElementWizardComposite(Composite parent,
                              int style,
                              String productGroup,
                              String label,
                              ValidationContext validationContext)
Since:
3.2

ElementWizardComposite

public ElementWizardComposite(Composite parent,
                              int style,
                              String productGroup,
                              String label,
                              ValidationContext validationContext,
                              String defaultFactoryType)
Since:
3.2
Method Detail

getProductGroup

public String getProductGroup()

getLabel

public String getLabel()

setValidationContext

public void setValidationContext(ValidationContext validationContext)

getDefaultFactoryType

public String getDefaultFactoryType()
Since:
3.2

getDefaultDescription

public String getDefaultDescription(String factoryType)
Can be overridden by subclasses.


setDefaultDescription

@Deprecated
public void setDefaultDescription(String factoryType,
                                             String value)
Deprecated. Override getDefaultDescription(String) instead.


init

protected void init()

notifyEvent

public void notifyEvent(IEvent event)
Specified by:
notifyEvent in interface IListener
Since:
3.2

getFactoryTypes

protected List<String> getFactoryTypes()

create

protected void create()

factoryTypeChanged

protected void factoryTypeChanged()

layout

public void layout()
Overrides:
layout in class Composite

harvestControls

protected void harvestControls(IElementWizard wizard)

getContainer

protected IManagedContainer getContainer()

getNotifier

public final INotifier getNotifier()
Since:
3.2

getDescription

public String getDescription()

getFactoryType

public abstract String getFactoryType()

setFactoryType

protected abstract void setFactoryType(String factoryType)

createFactoryTypeControl

protected abstract void createFactoryTypeControl()


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