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 * Adds button to <code>FormSheet</code> that does the 017 * {@link videoautomat.transition.LogOnFailTransition} 018 * @param fs - <code>FormSheet</code> to be changed 019 */ 020 protected void createFormSheetContent(FormSheet fs) { 021 fs.getButton(FormSheet.BTNID_OK).setAction(new TransitWithAction(new LogOnFailTransition())); 022 } 023 024 }