001    package market.stdform;
002    
003    import javax.swing.JLabel;
004    import javax.swing.JPanel;
005    
006    import sale.FormSheet;
007    import sale.FormSheetContentCreator;
008    
009    /**
010     * This is the default FormSheet of the SPCustomer, it displays a short welcome-message.
011     */
012    public class FSCustomerDefault extends FormSheet{
013    
014        public FSCustomerDefault(){
015            super("Willkommen",
016                    new FormSheetContentCreator(){
017                        protected void createFormSheetContent(FormSheet fs) {
018                            JPanel jp = new JPanel();
019                            JLabel jl = new JLabel("<html><h1>Willkommen im Sohn & Sohn Großmarkt</h1>");
020                            jp.add(jl);
021                            fs.setComponent(jp);
022                            fs.removeAllButtons();
023                            fs.addButton("Einkaufen", ButtonIDs.BTN_BUY, null);
024                            fs.addButton("Persönliche Daten", ButtonIDs.BTN_EDIT,null);
025                        }
026                    },
027                    false);
028        }
029    }