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.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Class<? extends PresentationEditor>Fields inherited from class io.jmix.ui.component.presentation.action.AbstractPresentationAction
settingsBinder, table, tableImplFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEditPresentationAction(Table table, String id, ComponentSettingsBinder settingsBinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected PresentationEditorcreateEditor(TablePresentation presentation, ComponentSettingsBinder settingsBinder) protected Class<? extends PresentationEditor>protected voidopenEditor(TablePresentation presentation) voidsetEditorClass(Class<? extends PresentationEditor> editorClass) Sets Editor class that should be opened.Methods inherited from class io.jmix.ui.component.presentation.action.AbstractPresentationAction
setMessagesMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
-