From 2476bca83442dbce0d3dfce744e9c320ce802a4e Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 2 Apr 2012 16:39:06 +0000 Subject: Renamed PersonIdentityLink to IdentityLink git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1046 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../java/at/gv/egiz/bku/gui/IdentityLinkGUI.java | 301 +++++++++++++++++++++ .../at/gv/egiz/bku/gui/IdentityLinkGUIFacade.java | 56 ++++ .../at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java | 301 --------------------- .../egiz/bku/gui/PersonIdentityLinkGUIFacade.java | 56 ---- .../gv/egiz/bku/gui/ActivationMessages.properties | 6 +- 5 files changed, 360 insertions(+), 360 deletions(-) create mode 100644 BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUI.java create mode 100644 BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUIFacade.java delete mode 100644 BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java delete mode 100644 BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java (limited to 'BKUGuiExt') diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUI.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUI.java new file mode 100644 index 00000000..378395eb --- /dev/null +++ b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUI.java @@ -0,0 +1,301 @@ +/* + * Copyright 2011 by Graz University of Technology, Austria + * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint + * initiative of the Federal Chancellery Austria and Graz University of Technology. + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://www.osor.eu/eupl/ + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + * + * This product combines work with different licenses. See the "NOTICE" text + * file for details on the various modules and licenses. + * The "NOTICE" text file is part of the distribution. Any derivative works + * that you distribute must include a readable copy of the "NOTICE" text file. + */ + +package at.gv.egiz.bku.gui; + +import java.awt.Container; +import java.awt.event.ActionListener; +import java.net.URL; +import java.text.MessageFormat; +import java.util.Locale; + +import javax.swing.GroupLayout; +import javax.swing.GroupLayout.Alignment; +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.LayoutStyle; +import javax.swing.LayoutStyle.ComponentPlacement; +import javax.swing.SwingUtilities; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import at.gv.egiz.bku.gui.viewer.FontProvider; + +/** + * Implements GUI for the identity link informations + * + * @author Andreas Fitzek + */ +public class IdentityLinkGUI extends CardMgmtGUI implements + IdentityLinkGUIFacade { + + private final Logger log = LoggerFactory + .getLogger(IdentityLinkGUI.class); + + protected JLabel mgmtLabel; + + protected JLabel firstNameLabel_description; + protected JLabel lastNameLabel_description; + protected JLabel birthdateLabel_description; + + protected JLabel firstNameLabel; + protected JLabel lastNameLabel; + protected JLabel birthdateLabel; + + protected JButton activateButton; + + public IdentityLinkGUI(Container contentPane, Locale locale, URL backgroundImgURL, FontProvider fontProvider, + HelpListener helpListener, SwitchFocusListener switchFocusListener) { + super(contentPane, locale, Style.advanced, backgroundImgURL, fontProvider, + helpListener, switchFocusListener); + // TODO Auto-generated constructor stub + this.activateButton = new JButton(); + } + + @Override + public void showIdentityLinkInformationDialog( + final ActionListener activateListener, + final String actionCommand, + final String firstName, + final String surName, + final String birthdate) { + log.debug("Scheduling Identity Link dialog."); + + SwingUtilities.invokeLater(new Runnable() { + + @Override + public void run() { + log.debug("Show Identity Link dialog."); + + mainPanel.removeAll(); + buttonPanel.removeAll(); + + mgmtLabel = new JLabel(); + mgmtLabel.setFont(mgmtLabel.getFont().deriveFont( + mgmtLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); + + if (renderHeaderPanel) { + titleLabel.setText(getMessage(IdentityLinkGUIFacade.TITLE_IDENITY)); + mgmtLabel.setText(getMessage(IdentityLinkGUIFacade.MESSAGE_IDENITY)); + } else { + mgmtLabel.setText(getMessage(IdentityLinkGUIFacade.TITLE_IDENITY)); + } + + activateButton.setFont(activateButton.getFont().deriveFont( + activateButton.getFont().getStyle() + & ~java.awt.Font.BOLD)); + activateButton.addActionListener(activateListener); + activateButton.setActionCommand(actionCommand); + + activateButton.setText(getMessage(BUTTON_CLOSE)); + + firstNameLabel_description = new JLabel(); + firstNameLabel_description.setText(getMessage(IdentityLinkGUIFacade.FIRSTNAME)); + lastNameLabel_description = new JLabel(); + lastNameLabel_description.setText(getMessage(IdentityLinkGUIFacade.LASTNAME)); + + birthdateLabel_description = new JLabel(); + birthdateLabel_description.setText(getMessage(IdentityLinkGUIFacade.DATEOFBIRTH)); + + + firstNameLabel = new JLabel(); + firstNameLabel.setText(firstName); + + firstNameLabel.setFont(firstNameLabel.getFont().deriveFont( + firstNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); + + lastNameLabel = new JLabel(); + lastNameLabel.setText(surName); + + lastNameLabel.setFont(lastNameLabel.getFont().deriveFont( + lastNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); + + birthdateLabel = new JLabel(); + birthdateLabel.setText(birthdate); + + birthdateLabel.setFont(birthdateLabel.getFont().deriveFont( + birthdateLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); + + updateMethodToRunAtResize("at.gv.egiz.bku.gui.IdentityLinkGUI", "renderContentAndButtons"); + + renderContentAndButtons(); + + cancelButton.requestFocus(); + contentPanel.validate(); + + if(windowCloseAdapter != null) + { + windowCloseAdapter.registerListener(activateListener, actionCommand); + } + + + + resize(); + } + + }); + } + + public void renderContentAndButtons() { + + // It is necessary to remove old components in order to ensure + // the correct rendering of the status table and the button panel + mainPanel.removeAll(); + buttonPanel.removeAll(); + + //JScrollPane pinStatusScrollPane = new JScrollPane(pinStatusTable); + + GroupLayout mainPanelLayout = new GroupLayout(mainPanel); + mainPanel.setLayout(mainPanelLayout); + + GroupLayout.SequentialGroup messageHorizontal = mainPanelLayout + .createSequentialGroup().addComponent(mgmtLabel); + GroupLayout.Group messageVertical = mainPanelLayout + .createParallelGroup(GroupLayout.Alignment.LEADING) + .addComponent(mgmtLabel); + + if (!renderHeaderPanel) { + + + messageHorizontal.addPreferredGap( + LayoutStyle.ComponentPlacement.UNRELATED, 0, + Short.MAX_VALUE).addComponent(switchFocusDummyLabel) + .addComponent(helpLabel); + messageVertical.addComponent(switchFocusDummyLabel).addComponent( + helpLabel); + } + + mainPanelLayout.setHorizontalGroup( + mainPanelLayout.createParallelGroup(Alignment.LEADING) + .addGroup(mainPanelLayout.createSequentialGroup() + //.addContainerGap() + .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) + .addGroup(messageHorizontal) + .addGroup(mainPanelLayout.createSequentialGroup() + .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) + .addComponent(firstNameLabel_description) + .addComponent(lastNameLabel_description) + .addComponent(birthdateLabel_description)) + .addPreferredGap(ComponentPlacement.RELATED) + .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) + .addComponent(firstNameLabel) + .addComponent(lastNameLabel) + .addComponent(birthdateLabel))))) + ); + mainPanelLayout.setVerticalGroup( + mainPanelLayout.createParallelGroup(Alignment.LEADING) + .addGroup(mainPanelLayout.createSequentialGroup() + //.addContainerGap() + .addGroup(messageVertical) + .addPreferredGap(ComponentPlacement.UNRELATED) + .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) + .addComponent(firstNameLabel_description) + .addComponent(firstNameLabel)) + //.addPreferredGap(ComponentPlacement.UNRELATED) + .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) + .addComponent(lastNameLabel_description) + .addComponent(lastNameLabel)) + //.addPreferredGap(ComponentPlacement.UNRELATED) + .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) + .addComponent(birthdateLabel_description) + .addComponent(birthdateLabel))) + ); + + GroupLayout buttonPanelLayout = new GroupLayout(buttonPanel); + buttonPanel.setLayout(buttonPanelLayout); + + GroupLayout.SequentialGroup buttonHorizontal = buttonPanelLayout + .createSequentialGroup().addContainerGap( + GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(activateButton, GroupLayout.PREFERRED_SIZE, + buttonSize, GroupLayout.PREFERRED_SIZE); + + GroupLayout.Group buttonVertical = buttonPanelLayout + .createParallelGroup(GroupLayout.Alignment.BASELINE) + .addComponent(activateButton); + + buttonPanelLayout.setHorizontalGroup(buttonHorizontal); + buttonPanelLayout.setVerticalGroup(buttonVertical); + + } + + @Override + public void resize() { + + log.debug("Resizing Personal IdentityLink Applet ..."); + + float factor = getResizeFactor(); + + + if (mgmtLabel != null) { + mgmtLabel.setFont(mgmtLabel.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (activateButton != null) { + activateButton.setFont(activateButton.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (firstNameLabel_description != null) { + firstNameLabel_description.setFont(firstNameLabel_description.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (lastNameLabel_description != null) { + lastNameLabel_description.setFont(lastNameLabel_description.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (birthdateLabel_description != null) { + birthdateLabel_description.setFont(birthdateLabel_description.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (firstNameLabel != null) { + firstNameLabel.setFont(firstNameLabel.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (lastNameLabel != null) { + lastNameLabel.setFont(lastNameLabel.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + if (birthdateLabel != null) { + birthdateLabel.setFont(birthdateLabel.getFont().deriveFont( + (float) ((baseFontSize)* factor))); + } + + + if (activateButton != null) { + + activateButton.setFont(activateButton.getFont().deriveFont( + (float) (baseFontSize * factor))); + + } + + super.resize(); + } +} diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUIFacade.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUIFacade.java new file mode 100644 index 00000000..2b96dc6e --- /dev/null +++ b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/IdentityLinkGUIFacade.java @@ -0,0 +1,56 @@ +/* + * Copyright 2011 by Graz University of Technology, Austria + * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint + * initiative of the Federal Chancellery Austria and Graz University of Technology. + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://www.osor.eu/eupl/ + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + * + * This product combines work with different licenses. See the "NOTICE" text + * file for details on the various modules and licenses. + * The "NOTICE" text file is part of the distribution. Any derivative works + * that you distribute must include a readable copy of the "NOTICE" text file. + */ + + +package at.gv.egiz.bku.gui; + +import java.awt.event.ActionListener; + +/** + * + * @author Andreas Fitzek + */ +public interface IdentityLinkGUIFacade extends BKUGUIFacade { + + public static final String FIRSTNAME = "identity.firstname"; + public static final String DATEOFBIRTH = "identity.dateofbirth"; + public static final String LASTNAME = "identity.lastname"; + public static final String TITLE_IDENITY = "title.identity"; + + public static final String MESSAGE_IDENITY = "identity.msg"; + + public static final String ERR_INFOBOX_INVALID = "err.infobox.invalid"; + + /** + * Currently dummy method to display anything ... + * + * @param firstName + * @param surName + */ + public void showIdentityLinkInformationDialog( + ActionListener activateListener, + String actionCommand, + String firstName, + String surName, + String birthdate); +} diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java deleted file mode 100644 index 32259746..00000000 --- a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Copyright 2011 by Graz University of Technology, Austria - * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint - * initiative of the Federal Chancellery Austria and Graz University of Technology. - * - * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by - * the European Commission - subsequent versions of the EUPL (the "Licence"); - * You may not use this work except in compliance with the Licence. - * You may obtain a copy of the Licence at: - * http://www.osor.eu/eupl/ - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the Licence is distributed on an "AS IS" basis, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Licence for the specific language governing permissions and - * limitations under the Licence. - * - * This product combines work with different licenses. See the "NOTICE" text - * file for details on the various modules and licenses. - * The "NOTICE" text file is part of the distribution. Any derivative works - * that you distribute must include a readable copy of the "NOTICE" text file. - */ - -package at.gv.egiz.bku.gui; - -import java.awt.Container; -import java.awt.event.ActionListener; -import java.net.URL; -import java.text.MessageFormat; -import java.util.Locale; - -import javax.swing.GroupLayout; -import javax.swing.GroupLayout.Alignment; -import javax.swing.JButton; -import javax.swing.JLabel; -import javax.swing.LayoutStyle; -import javax.swing.LayoutStyle.ComponentPlacement; -import javax.swing.SwingUtilities; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import at.gv.egiz.bku.gui.viewer.FontProvider; - -/** - * Implements GUI for the person identity link informations - * - * @author Andreas Fitzek - */ -public class PersonIdentityLinkGUI extends CardMgmtGUI implements - PersonIdentityLinkGUIFacade { - - private final Logger log = LoggerFactory - .getLogger(PersonIdentityLinkGUI.class); - - protected JLabel mgmtLabel; - - protected JLabel firstNameLabel_description; - protected JLabel lastNameLabel_description; - protected JLabel birthdateLabel_description; - - protected JLabel firstNameLabel; - protected JLabel lastNameLabel; - protected JLabel birthdateLabel; - - protected JButton activateButton; - - public PersonIdentityLinkGUI(Container contentPane, Locale locale, URL backgroundImgURL, FontProvider fontProvider, - HelpListener helpListener, SwitchFocusListener switchFocusListener) { - super(contentPane, locale, Style.advanced, backgroundImgURL, fontProvider, - helpListener, switchFocusListener); - // TODO Auto-generated constructor stub - this.activateButton = new JButton(); - } - - @Override - public void showPersonIdentityLinkInformationDialog( - final ActionListener activateListener, - final String actionCommand, - final String firstName, - final String surName, - final String birthdate) { - log.debug("Scheduling Person Identity Link dialog."); - - SwingUtilities.invokeLater(new Runnable() { - - @Override - public void run() { - log.debug("Show Person Identity Link dialog."); - - mainPanel.removeAll(); - buttonPanel.removeAll(); - - mgmtLabel = new JLabel(); - mgmtLabel.setFont(mgmtLabel.getFont().deriveFont( - mgmtLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); - - if (renderHeaderPanel) { - titleLabel.setText(getMessage(PersonIdentityLinkGUIFacade.TITLE_IDENITY)); - mgmtLabel.setText(getMessage(PersonIdentityLinkGUIFacade.MESSAGE_IDENITY)); - } else { - mgmtLabel.setText(getMessage(PersonIdentityLinkGUIFacade.TITLE_IDENITY)); - } - - activateButton.setFont(activateButton.getFont().deriveFont( - activateButton.getFont().getStyle() - & ~java.awt.Font.BOLD)); - activateButton.addActionListener(activateListener); - activateButton.setActionCommand(actionCommand); - - activateButton.setText(getMessage(BUTTON_CLOSE)); - - firstNameLabel_description = new JLabel(); - firstNameLabel_description.setText(getMessage(PersonIdentityLinkGUIFacade.FIRSTNAME)); - lastNameLabel_description = new JLabel(); - lastNameLabel_description.setText(getMessage(PersonIdentityLinkGUIFacade.LASTNAME)); - - birthdateLabel_description = new JLabel(); - birthdateLabel_description.setText(getMessage(PersonIdentityLinkGUIFacade.DATEOFBIRTH)); - - - firstNameLabel = new JLabel(); - firstNameLabel.setText(firstName); - - firstNameLabel.setFont(firstNameLabel.getFont().deriveFont( - firstNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); - - lastNameLabel = new JLabel(); - lastNameLabel.setText(surName); - - lastNameLabel.setFont(lastNameLabel.getFont().deriveFont( - lastNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); - - birthdateLabel = new JLabel(); - birthdateLabel.setText(birthdate); - - birthdateLabel.setFont(birthdateLabel.getFont().deriveFont( - birthdateLabel.getFont().getStyle() & ~java.awt.Font.BOLD)); - - updateMethodToRunAtResize("at.gv.egiz.bku.gui.PersonIdentityLinkGUI", "renderContentAndButtons"); - - renderContentAndButtons(); - - cancelButton.requestFocus(); - contentPanel.validate(); - - if(windowCloseAdapter != null) - { - windowCloseAdapter.registerListener(activateListener, actionCommand); - } - - - - resize(); - } - - }); - } - - public void renderContentAndButtons() { - - // It is necessary to remove old components in order to ensure - // the correct rendering of the status table and the button panel - mainPanel.removeAll(); - buttonPanel.removeAll(); - - //JScrollPane pinStatusScrollPane = new JScrollPane(pinStatusTable); - - GroupLayout mainPanelLayout = new GroupLayout(mainPanel); - mainPanel.setLayout(mainPanelLayout); - - GroupLayout.SequentialGroup messageHorizontal = mainPanelLayout - .createSequentialGroup().addComponent(mgmtLabel); - GroupLayout.Group messageVertical = mainPanelLayout - .createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(mgmtLabel); - - if (!renderHeaderPanel) { - - - messageHorizontal.addPreferredGap( - LayoutStyle.ComponentPlacement.UNRELATED, 0, - Short.MAX_VALUE).addComponent(switchFocusDummyLabel) - .addComponent(helpLabel); - messageVertical.addComponent(switchFocusDummyLabel).addComponent( - helpLabel); - } - - mainPanelLayout.setHorizontalGroup( - mainPanelLayout.createParallelGroup(Alignment.LEADING) - .addGroup(mainPanelLayout.createSequentialGroup() - //.addContainerGap() - .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) - .addGroup(messageHorizontal) - .addGroup(mainPanelLayout.createSequentialGroup() - .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) - .addComponent(firstNameLabel_description) - .addComponent(lastNameLabel_description) - .addComponent(birthdateLabel_description)) - .addPreferredGap(ComponentPlacement.RELATED) - .addGroup(mainPanelLayout.createParallelGroup(Alignment.LEADING) - .addComponent(firstNameLabel) - .addComponent(lastNameLabel) - .addComponent(birthdateLabel))))) - ); - mainPanelLayout.setVerticalGroup( - mainPanelLayout.createParallelGroup(Alignment.LEADING) - .addGroup(mainPanelLayout.createSequentialGroup() - //.addContainerGap() - .addGroup(messageVertical) - .addPreferredGap(ComponentPlacement.UNRELATED) - .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) - .addComponent(firstNameLabel_description) - .addComponent(firstNameLabel)) - //.addPreferredGap(ComponentPlacement.UNRELATED) - .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) - .addComponent(lastNameLabel_description) - .addComponent(lastNameLabel)) - //.addPreferredGap(ComponentPlacement.UNRELATED) - .addGroup(mainPanelLayout.createParallelGroup(Alignment.BASELINE) - .addComponent(birthdateLabel_description) - .addComponent(birthdateLabel))) - ); - - GroupLayout buttonPanelLayout = new GroupLayout(buttonPanel); - buttonPanel.setLayout(buttonPanelLayout); - - GroupLayout.SequentialGroup buttonHorizontal = buttonPanelLayout - .createSequentialGroup().addContainerGap( - GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(activateButton, GroupLayout.PREFERRED_SIZE, - buttonSize, GroupLayout.PREFERRED_SIZE); - - GroupLayout.Group buttonVertical = buttonPanelLayout - .createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(activateButton); - - buttonPanelLayout.setHorizontalGroup(buttonHorizontal); - buttonPanelLayout.setVerticalGroup(buttonVertical); - - } - - @Override - public void resize() { - - log.debug("Resizing Personal IdentityLink Applet ..."); - - float factor = getResizeFactor(); - - - if (mgmtLabel != null) { - mgmtLabel.setFont(mgmtLabel.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (activateButton != null) { - activateButton.setFont(activateButton.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (firstNameLabel_description != null) { - firstNameLabel_description.setFont(firstNameLabel_description.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (lastNameLabel_description != null) { - lastNameLabel_description.setFont(lastNameLabel_description.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (birthdateLabel_description != null) { - birthdateLabel_description.setFont(birthdateLabel_description.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (firstNameLabel != null) { - firstNameLabel.setFont(firstNameLabel.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (lastNameLabel != null) { - lastNameLabel.setFont(lastNameLabel.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - if (birthdateLabel != null) { - birthdateLabel.setFont(birthdateLabel.getFont().deriveFont( - (float) ((baseFontSize)* factor))); - } - - - if (activateButton != null) { - - activateButton.setFont(activateButton.getFont().deriveFont( - (float) (baseFontSize * factor))); - - } - - super.resize(); - } -} diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java deleted file mode 100644 index d0332284..00000000 --- a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2011 by Graz University of Technology, Austria - * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint - * initiative of the Federal Chancellery Austria and Graz University of Technology. - * - * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by - * the European Commission - subsequent versions of the EUPL (the "Licence"); - * You may not use this work except in compliance with the Licence. - * You may obtain a copy of the Licence at: - * http://www.osor.eu/eupl/ - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the Licence is distributed on an "AS IS" basis, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Licence for the specific language governing permissions and - * limitations under the Licence. - * - * This product combines work with different licenses. See the "NOTICE" text - * file for details on the various modules and licenses. - * The "NOTICE" text file is part of the distribution. Any derivative works - * that you distribute must include a readable copy of the "NOTICE" text file. - */ - - -package at.gv.egiz.bku.gui; - -import java.awt.event.ActionListener; - -/** - * - * @author Andreas Fitzek - */ -public interface PersonIdentityLinkGUIFacade extends BKUGUIFacade { - - public static final String FIRSTNAME = "identity.firstname"; - public static final String DATEOFBIRTH = "identity.dateofbirth"; - public static final String LASTNAME = "identity.lastname"; - public static final String TITLE_IDENITY = "title.identity"; - - public static final String MESSAGE_IDENITY = "identity.msg"; - - public static final String ERR_INFOBOX_INVALID = "err.infobox.invalid"; - - /** - * Currently dummy method to display anything ... - * - * @param firstName - * @param surName - */ - public void showPersonIdentityLinkInformationDialog( - ActionListener activateListener, - String actionCommand, - String firstName, - String surName, - String birthdate); -} diff --git a/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties b/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties index 764e678b..64906c24 100644 --- a/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties +++ b/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties @@ -28,14 +28,14 @@ title.unblock.pin=Unblock PIN title.activate.success=Success title.change.success=Success title.unblock.success=Success -title.identity=Person Identity Link +title.identity=Identity Link title.certificate.save=Save certificate title.get.certificate=Save certificates title.hardwareinfo = Hardware Information # removed message.* prefix to reuse keys as help keys pin.mgmt={0} PINs available -identity.msg=The person identity link +identity.msg=The identity link identity.button=Cancel identity.firstname=First name identity.dateofbirth=Date of birth @@ -101,7 +101,7 @@ err.pin.format=Invalid {0} length, {1} digit(s) required. err.pin.confirmation={0} and confirmation do not match. err.pin.operation.aborted=The operation on {0} was aborted. err.unsupported.card=This card is not supported -err.infobox.invalid=Unable to interpret person identity link +err.infobox.invalid=Unable to interpret identity link status.not.active=NOT ACTIVE status.active=ACTIVE -- cgit v1.2.3