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 * ID for Serialization. 017 */ 018 private static final long serialVersionUID = 5590664334669058948L; 019 020 /** 021 * The Constructor of VideoAutomat 022 * 023 */ 024 public VideoAutomat() { 025 super(VideoShop.CAPTION_AUTOMAT); 026 setSalesPointFrameBounds(new Rectangle(0, 0, 640, 480)); 027 } 028 029 /** 030 * @return the default <code>FormSheet</code> shown whenever no process is running. 031 * @see sale.SalesPoint#getDefaultFormSheet() 032 */ 033 protected FormSheet getDefaultFormSheet() { 034 FormSheet fs = 035 SingleTableFormSheet.create( 036 "Please log on!", 037 VideoShop.getVideoStock(), 038 null, 039 false, 040 new TEDVideoStock()); 041 fs.addContentCreator(new StartFSContentCreator()); 042 return fs; 043 } 044 045 }