com.sysord.mad.ui.swt.widget
Class SWTMultiSelectWidget

java.lang.Object
  extended by com.sysord.mad.widget.AbstractSpecificWidget
      extended by com.sysord.mad.ui.swt.widget.AbstractSWTWidget
          extended by com.sysord.mad.ui.swt.widget.SWTMultiSelectWidget
All Implemented Interfaces:
com.sysord.mad.widget.SpecificWidget

public class SWTMultiSelectWidget
extends AbstractSWTWidget

Default SWT implementation of the MultiSelectWidget.

Author:
Fabien Vignal

Field Summary
 
Fields inherited from class com.sysord.mad.ui.swt.widget.AbstractSWTWidget
GRAY, NAVIGATION_COLOR, PALE_RED, specificContextHolder, WHITE
 
Fields inherited from class com.sysord.mad.widget.AbstractSpecificWidget
ID
 
Constructor Summary
SWTMultiSelectWidget()
           
 
Method Summary
protected  void addMultiListListeners(com.sysord.mad.widget.MultiSelectWidget<java.lang.Object> widget, org.eclipse.jface.viewers.ListViewer listViewer, org.eclipse.swt.widgets.Label errorLabel)
          Add the needed listeners to the ListViewer widget and its corresponding MultiSelectWidget.
protected  void checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
          Checks the widget type and raises an exception if the type is not valid for this specific widget.
protected  org.eclipse.swt.widgets.Control createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
          Creates the SWT widget.
 
Methods inherited from class com.sysord.mad.ui.swt.widget.AbstractSWTWidget
addCommandsButtons, addControlDisposedListener, addFlexibleCommandsButtons, addVisibilityListener, castWidget, createCommandButton, createWidget, getSwtContext, getUsedCommands, refreshView
 
Methods inherited from class com.sysord.mad.widget.AbstractSpecificWidget
candidatesToElementList, createLabelColumn, createSelection, createSelection, getFormatExprEvaluationService, getId, getInjector, getLogger, getMao, getValidationService, getViewBuilder, setId, toCandidateElement, toCandidateList, validate, widgetValueEqualsCandidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTMultiSelectWidget

public SWTMultiSelectWidget()
Method Detail

checkMadWidget

protected void checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
Description copied from class: AbstractSWTWidget
Checks the widget type and raises an exception if the type is not valid for this specific widget.

Specified by:
checkMadWidget in class AbstractSWTWidget

createSpecificWidget

protected org.eclipse.swt.widgets.Control createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
Description copied from class: AbstractSWTWidget
Creates the SWT widget.

This method is called after #checkMadWidget(), the widget can be casted with

Specified by:
createSpecificWidget in class AbstractSWTWidget
Returns:
the created SWT widget.

addMultiListListeners

protected void addMultiListListeners(com.sysord.mad.widget.MultiSelectWidget<java.lang.Object> widget,
                                     org.eclipse.jface.viewers.ListViewer listViewer,
                                     org.eclipse.swt.widgets.Label errorLabel)
Add the needed listeners to the ListViewer widget and its corresponding MultiSelectWidget.

Parameters:
widget -
listViewer -
errorLabel -