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 * Adds quit action to the <code>MsgForm</code> ok button.
017 * @param fs - <code>FormSheet</code> to be changed.
018 */
019 protected void createFormSheetContent(FormSheet fs) {
020 fs.getButton(MsgForm.BTNID_OK).setAction(new QuitAction());
021 }
022
023 }