001 package videoautomat; 002 import java.awt.Rectangle; 003 004 import sale.FormSheet; 005 import sale.SalesPoint; 006 import videoautomat.contentcreator.StartFSContentCreator; 007 import data.stdforms.SingleTableFormSheet; 008 009 /** 010 * This class is an implementation of a <code>SalesPoint</code>, at which all the user 011 * activities take place. 012 * 013 */ 014 public class VideoAutomat extends SalesPoint { 015 /** 016 * The Constructor of VideoAutomat 017 * 018 */ 019 public VideoAutomat() { 020 super(VideoShop.CAPTION_AUTOMAT); 021 setSalesPointFrameBounds(new Rectangle(0, 0, 640, 480)); 022 } 023 024 /** 025 * @return the default <code>FormSheet</code> shown whenever no process is running. 026 * @see sale.SalesPoint#getDefaultFormSheet() 027 */ 028 protected FormSheet getDefaultFormSheet() { 029 FormSheet fs = 030 SingleTableFormSheet.create( 031 "Please log on!", 032 VideoShop.getVideoStock(), 033 null, 034 false, 035 new TEDVideoStock()); 036 fs.addContentCreator(new StartFSContentCreator()); 037 return fs; 038 } 039 040 }