|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.swt.AbstractDecorator<org.eclipse.swt.widgets.Button>
org.beanfabrics.swt.BnButtonDecorator
public class BnButtonDecorator
Constructor Summary | |
---|---|
BnButtonDecorator(org.eclipse.swt.widgets.Button button)
|
|
BnButtonDecorator(org.eclipse.swt.widgets.Composite parent,
int style)
Create the composite |
Method Summary | |
---|---|
IModelProvider |
getModelProvider()
Returns the provider. |
Path |
getPath()
Returns the path. |
IBooleanPM |
getPresentationModel()
Returns the PresentationModel of this view. |
ValidationIndicator |
getValidationIndicator()
|
protected void |
refreshEnabled()
|
protected void |
refreshSelection()
|
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(IBooleanPM 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 |
---|
public BnButtonDecorator(org.eclipse.swt.widgets.Button button)
public BnButtonDecorator(org.eclipse.swt.widgets.Composite parent, int style)
parent
- style
- is ignoredMethod Detail |
---|
public IBooleanPM getPresentationModel()
PresentationModel
of this view.
getPresentationModel
in interface View<IBooleanPM>
PresentationModel
public void setPresentationModel(IBooleanPM pModel)
PresentationModel
of this view.
setPresentationModel
in interface View<IBooleanPM>
pModel
- the PresentationModel
protected void refreshUI()
protected void refreshEnabled()
protected void refreshTooltip()
protected void refreshSelection()
protected void refreshValidationIndicator()
protected void updateModel()
public void setModelProvider(IModelProvider provider)
setModelProvider
in interface ModelSubscriber
provider
- the providerpublic IModelProvider getModelProvider()
getModelProvider
in interface ModelSubscriber
ModelProvider
public void setPath(Path path)
Path
is used to locate the model inside the
provider.
setPath
in interface ModelSubscriber
path
- the path relative to the provider's root modelpublic Path getPath()
getPath
in interface ModelSubscriber
public ValidationIndicator getValidationIndicator()
public void setValidationIndicator(ValidationIndicator validationIndicator)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |