Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I need to draw a sequence diagram and I am not sure exactly if it is correct to show interaction between user and user interface in this diagram. For example I want to make a panel visible or invisible based on choosing a check box by user. Is it correct to have it on a sequence diagram? and how can I draw it?

thanks

share|improve this question

1 Answer 1

up vote 2 down vote accepted

UML allows to you to place an actor in a sequence diagram. The actor ("user") has a lifeline like any object instance. I'd say that "checking the check box" is the message, that the user sends to your check box instance. Alternatively you can take the IBM approach and let the initial event be an incoming message to your first instance.

share|improve this answer
    
Do you suggest that I put a check box instance on the diagram or a UI instance I mean a form instance. which one is more appropriate? If I put a check box instance so I have to show every control on the diagram. –  Vahid Ghadiri Sep 1 '12 at 7:54
    
The check box is very detailed. If you need this information it is okay. Usually I'd prefer the containing form/dialog. Suppose you change the check box to a radio button or a combo box or something else. If you do so, the diagram with the check box will be out of date. –  scarfridge Sep 1 '12 at 12:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.