1

I'm developing a desktop application which has some similar UIs. So, I decided to extract out the common behaviors like below.

Here is my Class diagram for the application.

enter image description here

Since I have another 4 similar UIs containing same components (form, search, table), I have used Abstract class to get/set panels (formPanel, searchPanel and TablePanel) to each module (According to this diagram: PatientPanel)

Patient panel
|---form panel
|---search panel
|---table panel

Prescription panel
|---form panel
|---search panel
|---table panel

Drug panel
|---form panel
|---search panel
|---table panel

MainWindowPanel is used to add all panels to the main window.

Am I using the proper way to implement those user interfaces?

  • I think you have mistakenly drawn the connection from MainWindowPanel -> PatientPanel. I think it should be MainWIndowPanel -> AbstractPanel – Jude Niroshan Jul 19 '17 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.