Changes between Version 19 and Version 20 of BOOK_PROPERTIES_DIALOG_R0


Ignore:
Timestamp:
06/02/09 15:31:15 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified BOOK_PROPERTIES_DIALOG_R0

    v19 v20  
    4343== Internal design == 
    4444 
    45 A new class BookInfo will be created in the org.sophie2.base.model.book module. It will contain three value properties, holding the values for the title, the page width and the page height. These should be set with the following default initial values: 
    46  * Title - "New Book" 
     45A new class BookInfo will be created in the org.sophie2.base.model.book module. It will contain three properties, holding the values for the title, the page width and the page height. These should be set with the following default initial values: 
     46 * Title - "New Book A" 
    4747 * Page width - 640 
    4848 * Page height - 480 
    49 There will be two constructors of this class. The first takes no arguments and is invoked when a new book is created. The second takes a book as an argument and sets the values of the properties to the corresponding values of the given book. It is invoked with the current book when there is such. There will be one other property as well, which will hold the current book (if there is such). This structure is briefly presented in the following class diagram:[[BR]] 
    50 [[Image(source:/branches/private/diana/sophie2-platform/doc/uml-design-diagrams/BookInfoClassDiagram.png)]] 
    51  
     49There will be two constructors of this class. The first takes no arguments and is invoked when a new book is created. The second takes title,width and height as arguments and sets it's properties to the corresponding values of the given ones.  
     50In the BookPropertiesDialog class a new static class is created: SwingDialog. SwingDialog hold's the swing elements of the dialog. 
    5251The book properties dialog will provide a JPanel that shows the information from the BookInfo class. Based on the user input (OK/Cancel clicked) and the currentBook property of BookInfo (whether it is null or not), one of the above mentioned actions will be taken. 
    5352