Class DefaultFrontPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
be.gaudry.swing.eid.control.eidpart.front.cards.DefaultFrontPanel
All Implemented Interfaces:
IEidFrontPanel, IEidPart, IPhotoRefreshPanel, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible
Direct Known Subclasses:
BeCitizenFrontPanel_Old

public abstract class DefaultFrontPanel extends JPanel implements PropertyChangeListener, IEidFrontPanel
See Also:
Serialized Form
  • Constructor Details

    • DefaultFrontPanel

      public DefaultFrontPanel()
    • DefaultFrontPanel

      public DefaultFrontPanel(IEidDocumentType iEidDocumentType)
  • Method Details

    • finalize

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

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

      protected abstract IEidPart getHeaderPanel()
    • initListeners

      protected void initListeners()
    • initData

      protected void initData()
    • initGUI

      protected void initGUI()
    • getTextField

      public static JTextField getTextField(String name, int width)
    • customizeTextField

      public static void customizeTextField(JTextField jtf, String name, int width)
    • getLabel

      public static JLabel getLabel(String text, String name, int width)
    • getTextArea

      public static JTextArea getTextArea(String name, int width)
    • getImageView

      public static ScaledImageLabel getImageView(String name, Dimension preferredSize, Image img, String tooltip, int imagePosition)
    • getImageView

      public static ScaledImageLabel getImageView(String name, Dimension preferredSize, Image img, int imagePosition)
    • getImageView

      public static ScaledImageLabel getImageView(String name, Dimension preferredSize, Image img)
    • getImageView

      public static ScaledImageLabel getImageView(String name, Dimension preferredSize, Image img, String tooltip)
    • getDataPanel

      protected final JPanel getDataPanel()
    • initDataPanel

      protected JPanel initDataPanel()
    • getIdentityValidityTextField

      protected JTextField getIdentityValidityTextField()
      Returns:
      the identityValidityTextField
    • initIdentityValidityTextField

      protected JTextField initIdentityValidityTextField()
    • getNationalityLabel

      protected JLabel getNationalityLabel()
      Returns:
      the nationalityLabel
    • initNationalityLabel

      protected JLabel initNationalityLabel()
    • getFirstname3TextField

      protected JTextField getFirstname3TextField()
      Returns:
      the firstname3TextField
    • initFirstname3TextField

      protected JTextField initFirstname3TextField()
    • getFirstname2TextField

      protected JTextField getFirstname2TextField()
      Returns:
      the firstname2TextField
    • initFirstname2TextField

      protected JTextField initFirstname2TextField()
    • getCardNumberLabel

      protected JLabel getCardNumberLabel()
      Returns:
      the cardNumberLabel
    • initCardNumberLabel

      protected JLabel initCardNumberLabel()
    • getCardNumberTextField

      protected JFormattedTextField getCardNumberTextField()
      Returns:
      the cardNumberTextField
    • initCardNumberTextField

      protected JFormattedTextField initCardNumberTextField()
    • getBeMapLabel

      protected ScaledImageLabel getBeMapLabel()
      Returns:
      the beMapLabel
    • initBeMapLabel

      protected ScaledImageLabel initBeMapLabel()
    • getNameLabel

      protected JLabel getNameLabel()
      Returns:
      the nameLabel
    • initNameLabel

      protected JLabel initNameLabel()
    • getFirstnameLabel

      protected JLabel getFirstnameLabel()
      Returns:
      the firstnameLabel
    • initFirstnameLabel

      protected JLabel initFirstnameLabel()
    • getFirstnameTextField

      protected JTextField getFirstnameTextField()
      Returns:
      the firstnameTextField
    • initFirstnameTextField

      protected JTextField initFirstnameTextField()
    • getNationalityTextField

      protected JTextField getNationalityTextField()
      Returns:
      the nationalityTextField
    • initNationalityTextField

      protected JTextField initNationalityTextField()
    • getNameTextField

      protected JTextField getNameTextField()
      Returns:
      the nameTextField
    • initNameTextField

      protected JTextField initNameTextField()
    • getBirthLabel

      protected JLabel getBirthLabel()
      Returns:
      the birthLabel
    • initBirthLabel

      protected JLabel initBirthLabel()
    • getBirthTextField

      protected JTextField getBirthTextField()
      Returns:
      the birthTextField
    • initBirthTextField

      protected JTextField initBirthTextField()
    • getChipLabel

      protected ScaledImageLabel getChipLabel()
      Returns:
      the chipLabel
    • initChipLabel

      protected ScaledImageLabel initChipLabel()
    • getArrowLabel

      protected ScaledImageLabel getArrowLabel(boolean kid)
      Returns:
      the arrowLabel
    • initArrowLabel

      protected ScaledImageLabel initArrowLabel(boolean kid)
    • getPhotoLabel

      protected ScaledImageLabel getPhotoLabel()
      According to the fedict recommendations, the photo layout support the new photo size on eID Cards (150*195 pixels,old format was 140*200 pixels)
      Returns:
      the pictureLabel
    • initPhotoLabel

      protected ScaledImageLabel initPhotoLabel()
    • getSexLabel

      protected JLabel getSexLabel()
      Returns:
      the sexLabel
    • initSexLabel

      protected JLabel initSexLabel()
    • getSexTextField

      protected JTextField getSexTextField()
      Returns:
      the sexTextField
    • initSexTextField

      protected JTextField initSexTextField()
    • getIdentityValidityLabel

      protected JLabel getIdentityValidityLabel()
      Returns:
      the identityValidityLabel
    • initIdentityValidityLabel

      protected JLabel initIdentityValidityLabel()
    • getBirthdateFormat

      protected final SimpleDateFormat getBirthdateFormat()
      Returns:
      the birthdateFormat
    • setLanguage

      protected void setLanguage()
    • getiEidDocumentType

      public final IEidDocumentType getiEidDocumentType()
      Returns:
      the iEidDocumentType
    • getBeIDPhoto

      public final be.belgium.eid.objects.IDPhoto getBeIDPhoto()
      Specified by:
      getBeIDPhoto in interface IEidFrontPanel
    • setIDData

      public void setIDData(be.belgium.eid.objects.IDData data)
      Specified by:
      setIDData in interface IEidFrontPanel
    • 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
    • setLoadAction

      public void setLoadAction(AbstractAction loadAction)
      Specified by:
      setLoadAction in interface IEidFrontPanel
    • setEidPhoto

      public final void setEidPhoto(be.belgium.eid.objects.IDPhoto beIDPhoto)
      Specified by:
      setEidPhoto in interface IEidFrontPanel
    • clearEidPhoto

      public final void clearEidPhoto()
      Specified by:
      clearEidPhoto in interface IEidFrontPanel
    • forcePhotoRefresh

      public final void forcePhotoRefresh()
      Description copied from interface: IPhotoRefreshPanel
      The photo container has a bug and sometimes need to be refreshed. invalidate() and other methods doesn't work. Thus, this method affects temporary the size to refresh the photo.
      Specified by:
      forcePhotoRefresh in interface IPhotoRefreshPanel
    • setEidColors

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