001    package videoautomat.contentcreator;
002    
003    import sale.FormSheet;
004    import sale.FormSheetContentCreator;
005    import videoautomat.contentcreator.stdactions.TransitWithAction;
006    import videoautomat.transition.LogOnFailTransition;
007    
008    /**
009     * Content creator to add button with fail transition.
010     * @author Alexander Herrmann
011     *
012     */
013    public class LogOnMFContentCreator extends FormSheetContentCreator {
014        
015        /**
016             * ID for Serialization.
017             */
018            private static final long serialVersionUID = 760936296585763228L;
019    
020            /**
021         * Adds button to <code>FormSheet</code> that does the 
022         * {@link videoautomat.transition.LogOnFailTransition}
023         * @param fs - <code>FormSheet</code> to be changed
024         */
025        protected void createFormSheetContent(FormSheet fs) {
026            fs.getButton(FormSheet.BTNID_OK).setAction(new TransitWithAction(new LogOnFailTransition()));
027        }
028    
029    }