public abstract class AbstractEditPresentationAction extends AbstractPresentationAction
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.lang.Class<? extends PresentationEditor> |
editorClass |
settingsBinder, table, tableImpl
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
AbstractEditPresentationAction(Table table,
java.lang.String id,
ComponentSettingsBinder settingsBinder) |
Modifier and Type | Method and Description |
---|---|
protected PresentationEditor |
createEditor(TablePresentation presentation,
ComponentSettingsBinder settingsBinder) |
protected java.lang.Class<? extends PresentationEditor> |
getPresentationEditorClass() |
protected void |
openEditor(TablePresentation presentation) |
void |
setEditorClass(java.lang.Class<? extends PresentationEditor> editorClass)
Sets Editor class that should be opened.
|
setMessages
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setPrimary, setShortcut, setShortcutCombination, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerform
protected java.lang.Class<? extends PresentationEditor> editorClass
@Autowired protected org.springframework.context.ApplicationContext applicationContext
public AbstractEditPresentationAction(Table table, java.lang.String id, ComponentSettingsBinder settingsBinder)
protected void openEditor(TablePresentation presentation)
protected PresentationEditor createEditor(TablePresentation presentation, ComponentSettingsBinder settingsBinder)
protected java.lang.Class<? extends PresentationEditor> getPresentationEditorClass()
public void setEditorClass(java.lang.Class<? extends PresentationEditor> editorClass)
Note, editor class should be a PROTOTYPE bean.
editorClass
- editor classPresentationEditor