wiki:APP_SIMPLE_DIALOGS_R0
Last modified 16 years ago Last modified on 01/29/09 00:06:54

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=APP_SIMPLE_DIALOGS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

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.

BASE_DIALOGS?

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.)