Package io.jmix.uidata
Class TablePresentationsImpl
java.lang.Object
io.jmix.uidata.TablePresentationsImpl
- All Implemented Interfaces:
TablePresentations
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TablePresentationprotected CurrentUserSubstitutionprotected DataManagerprotected TablePresentationprotected EntityStatesprotected FetchPlanRepositoryprotected List<PresentationsChangeListener>protected Metadataprotected Stringprotected Set<TablePresentation>protected Set<TablePresentation>protected Map<Object,TablePresentation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new presentationvoidaddListener(PresentationsChangeListener listener) Adds listenerprotected voidprotected voidvoidcommit()Commits all changes into the databasevoidcreate()protected voidfireCurrentPresentationChanged(Object oldPresentationId) protected voidfireDefaultPresentationChanged(Object oldPresentationId) protected voidgetCaption(Object id) Returns presentation caption by its idReturns the current active presentation ornullif a current presentation didn't setReturns a default presentation ornullif it didn't setReturns presentation by its id ornullif a presentation doesn't existgetPresentationByName(String name) Returns a presentation by its name with ignored case.Returns a collection of the component presentationsbooleanReturnstrueif the selected presentation has anautoSavesettings else returnsfalsebooleanReturnstrueif the selected presentation is marked as global else returnsfalsevoidModifies the selected presentationprotected voidvoidRemoves a presentation from the list of available presentationsvoidremoveListener(PresentationsChangeListener listener) Removes listenervoidSets current active presentation for a componentvoidSets a default presentationvoidsetSettings(TablePresentation p, String settings) Sets user settings for the selected presentation
-
Field Details
-
metadata
-
fetchPlanRepository
-
dataManager
-
currentUserSubstitution
-
entityStates
-
name
-
presentations
-
current
-
defaultPresentation
-
needToUpdate
-
needToRemove
-
listeners
-
-
Constructor Details
-
TablePresentationsImpl
-
-
Method Details
-
add
Description copied from interface:TablePresentationsAdds a new presentation- Specified by:
addin interfaceTablePresentations
-
getCurrent
Description copied from interface:TablePresentationsReturns the current active presentation ornullif a current presentation didn't set- Specified by:
getCurrentin interfaceTablePresentations
-
setCurrent
Description copied from interface:TablePresentationsSets current active presentation for a component- Specified by:
setCurrentin interfaceTablePresentations
-
getSettingsString
- Specified by:
getSettingsStringin interfaceTablePresentations- Parameters:
p- presentation- Returns:
- user settings for the selected presentation or
nullif the presentation doesn't exist or if the presentation doesn't contain any settings
-
setSettings
Description copied from interface:TablePresentationsSets user settings for the selected presentation- Specified by:
setSettingsin interfaceTablePresentations- Parameters:
p- presentationsettings- user settings
-
getPresentation
Description copied from interface:TablePresentationsReturns presentation by its id ornullif a presentation doesn't exist- Specified by:
getPresentationin interfaceTablePresentations
-
getCaption
Description copied from interface:TablePresentationsReturns presentation caption by its id- Specified by:
getCaptionin interfaceTablePresentations
-
getPresentationIds
Description copied from interface:TablePresentationsReturns a collection of the component presentations- Specified by:
getPresentationIdsin interfaceTablePresentations
-
setDefault
Description copied from interface:TablePresentationsSets a default presentation- Specified by:
setDefaultin interfaceTablePresentations
-
getDefault
Description copied from interface:TablePresentationsReturns a default presentation ornullif it didn't set- Specified by:
getDefaultin interfaceTablePresentations
-
persistDefaultPresentation
-
remove
Description copied from interface:TablePresentationsRemoves a presentation from the list of available presentations- Specified by:
removein interfaceTablePresentations
-
modify
Description copied from interface:TablePresentationsModifies the selected presentation- Specified by:
modifyin interfaceTablePresentations
-
isAutoSave
Description copied from interface:TablePresentationsReturnstrueif the selected presentation has anautoSavesettings else returnsfalse- Specified by:
isAutoSavein interfaceTablePresentations
-
isGlobal
Description copied from interface:TablePresentationsReturnstrueif the selected presentation is marked as global else returnsfalse- Specified by:
isGlobalin interfaceTablePresentations
-
commit
public void commit()Description copied from interface:TablePresentationsCommits all changes into the database- Specified by:
commitin interfaceTablePresentations
-
commited
-
addListener
Description copied from interface:TablePresentationsAdds listener- Specified by:
addListenerin interfaceTablePresentations
-
removeListener
Description copied from interface:TablePresentationsRemoves listener- Specified by:
removeListenerin interfaceTablePresentations
-
getPresentationByName
Description copied from interface:TablePresentationsReturns a presentation by its name with ignored case. It returnsnullif a presentation with such name doesn't exist- Specified by:
getPresentationByNamein interfaceTablePresentations
-
create
- Specified by:
createin interfaceTablePresentations- Returns:
- presentation instance or stub if corresponding add-on is not added to the project
-
fireCurrentPresentationChanged
-
firePresentationsSetChanged
protected void firePresentationsSetChanged() -
fireDefaultPresentationChanged
-
checkLoad
protected void checkLoad() -
clearCommitList
protected void clearCommitList()
-