Class EidPanel

All Implemented Interfaces:
IEidPart, ImageObserver, MenuContainer, Printable, PropertyChangeListener, Serializable, EventListener, Accessible

public class EidPanel extends JPanel implements PropertyChangeListener, IEidPart, Printable
Since:
1.0 Jun 19, 2009, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Field Details

    • processReadEnd

      public String processReadEnd
  • Constructor Details

    • EidPanel

      public EidPanel()
  • Method Details

    • main

      public static void main(String[] args)
      Auto-generated main method to display this JPanel inside a new JFrame.
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • saveBeid

      public void saveBeid()
      Shows a file chooser to save the BeId card data.
      Since:
      1.0 (Oct 23, 2010)
    • loadFromJPA

      public void loadFromJPA()
      Loads data from the persistence layer.
      Since:
      0.0.3-SNAPSHOT (Nov 3, 2010)
    • loadFile

      public int loadFile()
      Shows a file chooser to load a virtual BeID card to show on the screen
      Returns:
      the return state of the file chooser:
      • JFileChooser.CANCEL_OPTION if the user cancels the operation
      • JFileChooser.APPROVE_OPTION if the file is valid and data are loaded without error
      • JFileChooser.ERROR_OPTION if an error occurs or the dialog is dismissed
      Since:
      0.0.3-SNAPSHOT (Oct 23, 2010)
    • printBeid

      public void printBeid()
      Allows to print the beid informations.
      Since:
      1.0 (Oct 23, 2010)
    • loadPhysicalCard

      public void loadPhysicalCard(boolean feedbackRequired)
      Tries asynchronously to load data from an inserted BeID card. \nIf there is no card available, does not attempt to read, but if a feedback is required, a popup message is shown.
      Parameters:
      feedbackRequired - true if the action is called by the user and not automatic; false if automatic (the card_inserted listener is automatic)
    • setEidColors

      public void setEidColors(IEidDocumentType iEidDocumentType, EidDocumentVersion version)
      Specified by:
      setEidColors in interface IEidPart
    • getPerson

      public BeIDPerson getPerson()
    • setStatusBar

      public void setStatusBar(BrolStatusBar _statusBar)
      Parameters:
      _statusBar - the statusBar to set
    • propertyChange

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

      protected void setLanguage()
    • clearData

      public void clearData()
      Description copied from interface: IEidPart
      Clear all EID data field (set textfields empty, reset photo and certificates, etc.).
      Specified by:
      clearData in interface IEidPart
    • print

      public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
      Specified by:
      print in interface Printable
      Throws:
      PrinterException
      See Also:
      EidModelHelper.printEidPanel(Graphics, PageFormat, int, VirtualBeID)
    • getPanel

      public JPanel getPanel()
      Specified by:
      getPanel in interface IEidPart