Package de.xima.fc.gui.bean.project
Class ProjectBean.EntityListModelImpl
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.model.data.EntityListModel<Projekt>
-
- de.xima.fc.gui.bean.project.ProjectBean.EntityListModelImpl
-
- All Implemented Interfaces:
IEntityListModel<Projekt>
,IUpdatable
,Serializable
- Enclosing class:
- ProjectBean
public final class ProjectBean.EntityListModelImpl extends EntityListModel<Projekt>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.model.data.EntityListModel
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected
-
-
Constructor Summary
Constructors Constructor Description EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create()
void
createDefaultFormVersion()
void
loadLazyData()
Can be overriden to initialize lazily loaded fields on the entity.void
save()
Saves the currently selected model to the database.void
setSelected(Projekt selected)
Sets the currently selected model to the given model.void
update()
void
updateData()
-
Methods inherited from class de.xima.fc.gui.model.data.EntityListModel
addMarked, addNew, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getName, getNew, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, performDelete, removeMarked, save, selectDefault, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateSelected
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
-
-
-
Method Detail
-
updateData
public void updateData()
- Specified by:
updateData
in interfaceIUpdatable
- Overrides:
updateData
in classEntityListModel<Projekt>
-
loadLazyData
public void loadLazyData()
Description copied from interface:IEntityListModel
Can be overriden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyData
in interfaceIEntityListModel<Projekt>
- Overrides:
loadLazyData
in classEntityListModel<Projekt>
-
setSelected
public void setSelected(Projekt selected)
Description copied from interface:IEntityListModel
Sets the currently selected model to the given model. If the given model exists in the database but is not currently managed by an entity manager, rereads the model from the database. Thus theIEntityListModel.getSelected()
model may not refer to the same instance as the given model.- Specified by:
setSelected
in interfaceIEntityListModel<Projekt>
- Overrides:
setSelected
in classEntityListModel<Projekt>
- Parameters:
selected
- The model to be selected.
-
createDefaultFormVersion
public void createDefaultFormVersion()
-
create
public void create()
- Overrides:
create
in classEntityListModel<Projekt>
-
update
public void update()
- Overrides:
update
in classEntityListModel<Projekt>
-
save
public void save()
Description copied from interface:IEntityListModel
Saves the currently selected model to the database. If itIEntityListModel.isNew()
, creates a new entry in the database, otherwise updates the existing entry.- Specified by:
save
in interfaceIEntityListModel<Projekt>
- Overrides:
save
in classEntityListModel<Projekt>
-
-