|
|||||||||
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.BnPushButtonDecorator
public class BnPushButtonDecorator
Constructor Summary | |
---|---|
BnPushButtonDecorator(org.eclipse.swt.widgets.Button button)
Create the BnPushButtonDecorator |
|
BnPushButtonDecorator(org.eclipse.swt.widgets.Composite parent)
Create the BnPushButtonDecorator |
|
BnPushButtonDecorator(org.eclipse.swt.widgets.Composite parent,
int style)
Create the BnPushButtonDecorator |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Button |
getButton()
Deprecated. use AbstractDecorator.getControl() |
IModelProvider |
getModelProvider()
Returns the provider. |
Path |
getPath()
Returns the path. |
IOperationPM |
getPresentationModel()
Returns the PresentationModel of this view. |
protected void |
hookControl(org.eclipse.swt.widgets.Button button)
|
protected void |
refreshEnabled()
|
protected void |
refreshTooltip()
|
protected void |
refreshUI()
|
void |
setModelProvider(IModelProvider provider)
Sets the provider. |
void |
setPath(Path path)
Sets the path. |
void |
setPresentationModel(IOperationPM pModel)
Sets the PresentationModel of this view. |
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 BnPushButtonDecorator(org.eclipse.swt.widgets.Button button)
public BnPushButtonDecorator(org.eclipse.swt.widgets.Composite parent, int style)
parent
- style
- is ignoredpublic BnPushButtonDecorator(org.eclipse.swt.widgets.Composite parent)
parent
- Method Detail |
---|
protected void hookControl(org.eclipse.swt.widgets.Button button)
public IOperationPM getPresentationModel()
PresentationModel
of this view.
getPresentationModel
in interface View<IOperationPM>
PresentationModel
public void setPresentationModel(IOperationPM pModel)
PresentationModel
of this view.
setPresentationModel
in interface View<IOperationPM>
pModel
- the PresentationModel
protected void refreshUI()
protected void refreshEnabled()
protected void refreshTooltip()
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 org.eclipse.swt.widgets.Button getButton()
AbstractDecorator.getControl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |