001    package videoautomat.contentcreator;
002    
003    import sale.FormSheet;
004    import sale.FormSheetContentCreator;
005    import users.stdforms.LogOnForm;
006    import videoautomat.contentcreator.stdactions.StopAction;
007    import videoautomat.contentcreator.stdactions.TransitWithAction;
008    import videoautomat.transition.LogOnTransition;
009    
010    /**
011     * Content Creator to add action to <code>LogOnForm</code>'s buttons.
012     * @author Alexander Herrmann
013     *
014     */
015    public class LogOnLOFContentCreator extends FormSheetContentCreator {
016    
017        /**
018         * Adds the needed actions to the <code>LogOnForm</code> buttons.
019         * @param fs - {@link sale.FormSheet} to be changed
020         */
021        protected void createFormSheetContent(FormSheet fs) {
022            fs.getButton(FormSheet.BTNID_OK).setAction(
023                    new TransitWithAction(new LogOnTransition((LogOnForm) fs)));
024            fs.getButton(FormSheet.BTNID_CANCEL).setAction(new StopAction());
025        }
026    
027    }