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       public static final int FB_LOGON = 1;
017       
018       public static final int FB_REGISTER = 2;
019       
020       protected void createFormSheetContent(FormSheet fs) {
021          fs.removeAllButtons();
022          
023          fs.addButton("Login", FB_LOGON , new RunProcessAction(new SaleProcessLogOn()));
024          
025          fs.addButton("Register", FB_REGISTER, new RunProcessAction(new SaleProcessRegister()) );
026          
027       }
028       
029    }