1

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

1 Answer 1

3

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.

2
  • 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. Commented Sep 1, 2012 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. Commented Sep 1, 2012 at 12:22

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.