org.beanfabrics.swt
Class BnComboDecorator

java.lang.Object
  extended by org.beanfabrics.swt.AbstractDecorator<org.eclipse.swt.widgets.Combo>
      extended by org.beanfabrics.swt.BnComboDecorator
All Implemented Interfaces:
ModelSubscriber, View<ITextPM>

public class BnComboDecorator
extends AbstractDecorator<org.eclipse.swt.widgets.Combo>
implements View<ITextPM>, ModelSubscriber


Constructor Summary
BnComboDecorator(org.eclipse.swt.widgets.Combo combo)
           
BnComboDecorator(org.eclipse.swt.widgets.Composite parent, int style)
           
 
Method Summary
 IModelProvider getModelProvider()
          Returns the provider.
 Path getPath()
          Returns the path.
 ITextPM getPresentationModel()
          Returns the PresentationModel of this view.
 ValidationIndicator getValidationIndicator()
           
protected  void hookControl(org.eclipse.swt.widgets.Combo combo)
           
protected  void refreshEditable()
           
protected  void refreshOptions()
           
protected  void refreshText()
           
protected  void refreshToolTip()
           
protected  void refreshUI()
           
protected  void refreshValidationIndicator()
           
 void setModelProvider(IModelProvider provider)
          Sets the provider.
 void setPath(Path path)
          Sets the path.
 void setPresentationModel(ITextPM pModel)
          Sets the PresentationModel of this view.
 void setValidationIndicator(ValidationIndicator validationIndicator)
           
protected  void updateModel()
           
 
Methods inherited from class org.beanfabrics.swt.AbstractDecorator
getControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BnComboDecorator

public BnComboDecorator(org.eclipse.swt.widgets.Combo combo)

BnComboDecorator

public BnComboDecorator(org.eclipse.swt.widgets.Composite parent,
                        int style)
Method Detail

hookControl

protected void hookControl(org.eclipse.swt.widgets.Combo combo)

updateModel

protected void updateModel()

getPresentationModel

public ITextPM getPresentationModel()
Returns the PresentationModel of this view.

Specified by:
getPresentationModel in interface View<ITextPM>
Returns:
the PresentationModel

setPresentationModel

public void setPresentationModel(ITextPM pModel)
Sets the PresentationModel of this view.

Specified by:
setPresentationModel in interface View<ITextPM>
Parameters:
pModel - the PresentationModel

refreshUI

protected void refreshUI()

refreshEditable

protected void refreshEditable()

refreshValidationIndicator

protected void refreshValidationIndicator()

refreshToolTip

protected void refreshToolTip()

refreshText

protected void refreshText()

refreshOptions

protected void refreshOptions()

setModelProvider

public void setModelProvider(IModelProvider provider)
Sets the provider.

Specified by:
setModelProvider in interface ModelSubscriber
Parameters:
provider - the provider

getModelProvider

public IModelProvider getModelProvider()
Returns the provider.

Specified by:
getModelProvider in interface ModelSubscriber
Returns:
the ModelProvider

setPath

public void setPath(Path path)
Sets the path. The Path is used to locate the model inside the provider.

Specified by:
setPath in interface ModelSubscriber
Parameters:
path - the path relative to the provider's root model

getPath

public Path getPath()
Returns the path.

Specified by:
getPath in interface ModelSubscriber
Returns:
the path

getValidationIndicator

public ValidationIndicator getValidationIndicator()

setValidationIndicator

public void setValidationIndicator(ValidationIndicator validationIndicator)