001    package videoautomat.contentcreator;
002    import sale.FormSheet;
003    import sale.FormSheetContentCreator;
004    import videoautomat.SaleProcessLogOn;
005    import videoautomat.SaleProcessRegister;
006    import videoautomat.contentcreator.stdactions.RunProcessAction;
007    
008    /**
009     * Content creator of the register process. Contains methods to set and add data 
010     * independly from the gui part.
011     *
012     * @author Tobias Ruch
013     */
014    public class StartFSContentCreator extends FormSheetContentCreator {
015       
016        /**
017             * ID for Serialization.
018             */
019            private static final long serialVersionUID = -7404461635589641424L;
020    
021        public static final int FB_LOGON = 1;
022       
023        public static final int FB_REGISTER = 2;
024       
025        protected void createFormSheetContent(FormSheet fs) {
026            fs.removeAllButtons();
027          
028            fs.addButton("Login", FB_LOGON , new RunProcessAction(new SaleProcessLogOn()));
029          
030            fs.addButton("Register", FB_REGISTER, new RunProcessAction(new SaleProcessRegister()));
031        }
032       
033    }