|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.beanfabrics.swing.internal.OperationPMAction
org.beanfabrics.swing.BnAction
public class BnAction
The BnAction is an Action
that can subscribe to an
IOperationPM
.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
BnAction()
Constructs a new instance of this class. |
|
BnAction(IModelProvider provider)
Constructs a BnAction and subscribes it for the model at the
root level provided by the given provider. |
|
BnAction(IModelProvider provider,
Path path)
Constructs a BnAction and subscribes it for the model at the
specified Path provided by the given provider. |
|
BnAction(IOperationPM pModel)
Constructs a BnAction and binds it to the specified model. |
Method Summary | |
---|---|
IModelProvider |
getModelProvider()
Returns the provider. |
Path |
getPath()
Returns the path. |
void |
setModelProvider(IModelProvider provider)
Sets the provider. |
void |
setPath(Path path)
Sets the path. |
Methods inherited from class org.beanfabrics.swing.internal.OperationPMAction |
---|
actionPerformed, execute, getPresentationModel, refresh, setPresentationModel |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BnAction()
public BnAction(IOperationPM pModel)
BnAction
and binds it to the specified model.
pModel
- the modelpublic BnAction(IModelProvider provider, Path path)
BnAction
and subscribes it for the model at the
specified Path provided by the given provider.
provider
- the ModelProvider
to set initiallypath
- the Path
to set initiallypublic BnAction(IModelProvider provider)
BnAction
and subscribes it for the model at the
root level provided by the given provider.
provider
- the ModelProvider
to set initiallyMethod Detail |
---|
public IModelProvider getModelProvider()
getModelProvider
in interface ModelSubscriber
ModelProvider
public void setModelProvider(IModelProvider provider)
setModelProvider
in interface ModelSubscriber
provider
- the providerpublic Path getPath()
getPath
in interface ModelSubscriber
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 model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |