Package be.gaudry.swing.edu.action
Class TeacherActionsFactory
java.lang.Object
be.gaudry.swing.edu.action.TeacherActionsFactory
- All Implemented Interfaces:
IItem<SchoolClass>
,PropertyChangeListener
,EventListener
public class TeacherActionsFactory
extends Object
implements PropertyChangeListener, IItem<SchoolClass>
Factory of all actions executable by a teacher.
Provided by the broldev.edu.teacher.swing project.
- Since:
- 1.4 Nov 14, 2010, broldev.edu.teacher.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Mar 21, 2009
- Author:
- Steph GAUDRY
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Enumeration of possible screens to show. -
Field Summary
Modifier and TypeFieldDescriptionprotected Collection<ILocalized>
protected String
protected String
protected AbstractLightObject
protected static TeacherActionsFactory
static String
Key to access to the language resource bundleprotected ResourceBundle
protected SchoolClass
protected Collection<be.gaudry.swing.edu.action.TeacherActionsFactory.TeacherAction<? extends JPanel>>
protected String
protected String
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
Unregisters from the observedLanguageHelper
.static AbstractLightObject
static AbstractAction
static AbstractAction
static AbstractAction
static AbstractAction
static AbstractAction
static AbstractAction
static AbstractAction
static org.jdesktop.swingx.auth.LoginService
static AbstractAction
The Derby Database in embed mode locks the access to avoid concurrent accesses.
This may returnsnull
if the user has selected another persistent layer than a Derby Embed Database.protected void
Loads asynchronously the school class, and call thesetItem(SchoolClass)
method when the school class is loaded.void
void
setItem(SchoolClass item)
Sets the school class, and do the same for each created action wich * needs it.static void
setSchoolClass(SchoolClass item)
(package private) static void
If an authentication is not needed, show a popup the first time
-
Field Details
-
lRB
-
instance
-
actions
-
teacherActions
protected Collection<be.gaudry.swing.edu.action.TeacherActionsFactory.TeacherAction<? extends JPanel>> teacherActions -
schoolClass
-
unlockDBOKStr
-
unlockDBKOStr
-
daoStr
-
daoNotLockedStr
-
defaultSchoolYear
-
LANGUAGE_PATH
Key to access to the language resource bundle- See Also:
- Constant Field Values
-
-
Method Details
-
finalize
Unregisters from the observedLanguageHelper
. Save default schoolclasse into preferences- Overrides:
finalize
in classObject
- Throws:
Throwable
- See Also:
Object.finalize()
-
getShowStudentsPanelAction
- Returns:
- an action to show the panel where to manage the students quotations
- See Also:
AbstractShowPanelAction
-
getShowStudentsAVGAction
- Returns:
- an action to show the panel with the students averages per periods
- See Also:
AbstractShowPanelAction
-
getShowExaminationListAction
- Returns:
- an action to show the panel where to manage the students examinations
- See Also:
AbstractShowPanelAction
-
getShowStudentsTimeChartAction
- Returns:
- an action to show the panel with the students time charts
- See Also:
AbstractShowPanelAction
-
getReloadSchoolClassAction
- Returns:
- an action to reload the school class from the persistent layer
-
getSelectSchoolClassAction
- Returns:
- an action to reload the school class from the persistent layer
-
getShowDAOInfosAction
- Returns:
- an action to show informations about the persistent layer
-
getUnlockDerbyAction
The Derby Database in embed mode locks the access to avoid concurrent accesses.
This may returnsnull
if the user has selected another persistent layer than a Derby Embed Database. The return value may be tested, or the selected persistent layer like this :DAOConfig.getEDAOType() == EDAOType.DERBY_EMBED
If a problem occurs, the application may be closed without unlock the database, and this action may solve the problem.
Sometimes a process is still running, maintaining the lock, and some solutions are :- closing the session
- moving the application into another directory, restarting it, and using this action.
- Returns:
- an action to unlock the Derby Database if the persistent layer uses an embed Derby Database.
-
loadSchoolClass
protected void loadSchoolClass()Loads asynchronously the school class, and call thesetItem(SchoolClass)
method when the school class is loaded. -
getDefaultSchoolYear
-
getTeacherLoginService
public static org.jdesktop.swingx.auth.LoginService getTeacherLoginService()- Returns:
- the LoginService for all teacher actions
-
showUnsecureMessage
static void showUnsecureMessage()If an authentication is not needed, show a popup the first time -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
setItem
Sets the school class, and do the same for each created action wich * needs it.- Specified by:
setItem
in interfaceIItem<SchoolClass>
- See Also:
IItem.setItem(be.gaudry.model.ILightObject)
-
setSchoolClass
-