Last modified 16 years ago
Last modified on 01/29/09 00:06:54
Analysis
Overview
There should be common way of creating dialogs. This class should provide the ability to create and close the dialog as well as to add, remove and interact with dialog children.
Task requirements
- Following elements should present:
- OK and Cancel buttons - Both buttons close the dialog. Cancel button is optional and redo the changes if any. Probably the redo functionality will be specified by instance or inside of inherited components. Same for OK button - applies the changes or evoke a custom action(send mail, add element, load file etc.)
- message or error message - plane selectable but not editable text text. Also optional.
- Create easy to use interface that populate the data inside the dialog, allows you to add and remove children, and determines basic layout functionality.
- Allow the opportunity to add as a children common input elements(input text fields, check boxes, combo boxes etc.) as well as custom elements.
- Integrate the component in to the application.
Task result
- The result should be code
Implementation idea
Create a SimpleDialog Class inside of org.sophie2.main.dialogs.input. Get familiar with DialogManeger. You can review MessageDialogInput and ConfirmDialogInput just to see the samples.
Related
How to demo
- create a test environment and place a button that evoke an instance of simple dialog.
- see if you can operate with this dialog.
- add some children in this instance.
- test if it works out of the test environment.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)