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
  • Field Details

  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Unregisters from the observed LanguageHelper. Save default schoolclasse into preferences
      Overrides:
      finalize in class Object
      Throws:
      Throwable
      See Also:
      Object.finalize()
    • getShowStudentsPanelAction

      public static AbstractAction getShowStudentsPanelAction()
      Returns:
      an action to show the panel where to manage the students quotations
      See Also:
      AbstractShowPanelAction
    • getShowStudentsAVGAction

      public static AbstractAction getShowStudentsAVGAction()
      Returns:
      an action to show the panel with the students averages per periods
      See Also:
      AbstractShowPanelAction
    • getShowExaminationListAction

      public static AbstractAction getShowExaminationListAction()
      Returns:
      an action to show the panel where to manage the students examinations
      See Also:
      AbstractShowPanelAction
    • getShowStudentsTimeChartAction

      public static AbstractAction getShowStudentsTimeChartAction()
      Returns:
      an action to show the panel with the students time charts
      See Also:
      AbstractShowPanelAction
    • getReloadSchoolClassAction

      public static AbstractAction getReloadSchoolClassAction()
      Returns:
      an action to reload the school class from the persistent layer
    • getSelectSchoolClassAction

      public static AbstractAction getSelectSchoolClassAction()
      Returns:
      an action to reload the school class from the persistent layer
    • getShowDAOInfosAction

      public static AbstractAction getShowDAOInfosAction()
      Returns:
      an action to show informations about the persistent layer
    • getUnlockDerbyAction

      public static AbstractAction getUnlockDerbyAction()
      The Derby Database in embed mode locks the access to avoid concurrent accesses.
      This may returns null 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 the setItem(SchoolClass) method when the school class is loaded.
    • getDefaultSchoolYear

      public static AbstractLightObject 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

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • setItem

      public void setItem(SchoolClass item)
      Sets the school class, and do the same for each created action wich * needs it.
      Specified by:
      setItem in interface IItem<SchoolClass>
      See Also:
      IItem.setItem(be.gaudry.model.ILightObject)
    • setSchoolClass

      public static void setSchoolClass(SchoolClass item)