Class AbstractEditPresentationAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.component.presentation.action.AbstractPresentationAction
io.jmix.ui.component.presentation.action.AbstractEditPresentationAction
- All Implemented Interfaces:
Action
,Action.HasPrimaryState
- Direct Known Subclasses:
EditPresentationAction
,SaveAsPresentationAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.OperationResultAction, Action.ScreenAction<S extends Screen>, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected Class<? extends PresentationEditor>
Fields inherited from class io.jmix.ui.component.presentation.action.AbstractPresentationAction
settingsBinder, table, tableImpl
Fields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
Fields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
-
Constructor Summary
ConstructorDescriptionAbstractEditPresentationAction
(Table table, String id, ComponentSettingsBinder settingsBinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected PresentationEditor
createEditor
(TablePresentation presentation, ComponentSettingsBinder settingsBinder) protected Class<? extends PresentationEditor>
protected void
openEditor
(TablePresentation presentation) void
setEditorClass
(Class<? extends PresentationEditor> editorClass) Sets Editor class that should be opened.Methods inherited from class io.jmix.ui.component.presentation.action.AbstractPresentationAction
setMessages
Methods inherited from class io.jmix.ui.action.AbstractAction
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.action.Action
actionPerform
-
Field Details
-
editorClass
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
AbstractEditPresentationAction
public AbstractEditPresentationAction(Table table, String id, ComponentSettingsBinder settingsBinder)
-
-
Method Details
-
openEditor
-
createEditor
protected PresentationEditor createEditor(TablePresentation presentation, ComponentSettingsBinder settingsBinder) -
getPresentationEditorClass
-
setEditorClass
Sets Editor class that should be opened.Note, editor class should be a PROTOTYPE bean.
- Parameters:
editorClass
- editor class- See Also:
-