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