How to Simulate UI Navigation

During UI design, having screen mock-ups could give others a better idea as to what users would be looking at when interacting with the system. With Visual Paradigm’s products ( e.g. Visual Paradigm for UML), you can create mock-ups using user interface diagrams. Apart from static visual presentation, you may also simulate navigation between screens after publishing your project to HTML files.

In this article, we are going to show you how to simulate UI navigation using Visual Paradigm for UML (VP-UML) Enterprise Edition. We will create a few screen mock-ups and publish your project, after which you can see dynamic user interaction between screen shots in a web browser.

As an example, let’s say we are designing a UI which authenticates users and upon successful login, allows them to select orders for review and finally process them.

Activity Diagram - Order Processing

Activity Diagram – Order Processing

Steps to Create User Interface Diagrams

In our example, we will create a total of 5 user interface diagrams for screen mock-ups.

Steps to Create the Login Screen

This is what we are going to mock up in the 1st diagram. It is a login screen for user authentication.

U01 Login

U01 Login

 

  1. To add a new user interface diagram, select Diagrams > User Interface from the main toolbar.
    Select to add a user interface diagram

    Select to add a user interface diagram

     

  2. To rename your diagram, right click on the background of your diagram and select Rename…
    Right click to rename diagram

    Right click to rename diagram

    Name the diagram U01 Login. (Note: This is our 1st diagram.)

    Name diagram U01 Login

    Name diagram U01 Login

  3. From the Diagram Toolbar, select Frame and add one to the diagram. Double click at the top of the frame to name it Sales Order System Staff Portal.

    Add a frame to diagram

    Add a frame to diagram

  4. From the Diagram Toolbar, select label and add one to the frame. Name it Welcome to ABC Sales Order System.
    Add a title to the frame

    Add a title to the frame

    To format the text, right click on the label and select Styles and Formatting > Formats…

    In the dialog, go to the Font section and change it as you like.

    Change Font for Label

    Change Font for Label

  5. Add two more labels, Staff ID : and Password :

    Add labels for user inputs

    Add labels for user inputs

  6. Add a Text Field next to Staff ID. Add a Password Field next to Password. Add a button and name it Login.

    Add text fields and button to dialog box

    Add text fields and button to dialog box

Steps to Create the Order Main Screen

This is what we are going to mock up in the 2nd diagram.

U02 Order Main Screen

U02 Order Main Screen

  1. Add a new user interface diagram and name it U02 Order Main Screen. This is our 2nd diagram.
  2. In U02 Order Main Screen, add a frame and name it ABC Sales Order System.
  3. Add a Tabbed Header to the frame.

    Add a tabbed header

    Add a tabbed header

  4. Right click on the tabbed header and select Open Specification… Note: In a fresh tabbed header, there are 2 default tabs called Tab 1 and Tab 2. In the UITabbedHeader Specification dialog, the tab list corresponds to the mnemonic character list below, which ultimately corresponds to the UI displaying these tabs in the same order, but from left to right visually. By default, the first character of a tab name (e.g. Tab 1 –> T ) becomes its mnemonic character (unless you change it). In the UITabbedHeader Specification dialog, select the UI tab.Select Tab 1. Click Edit. Name it Order.Select T (first item in the list). Click Edit. Enter the letter O.Edit Tab 2. Name it Customer. Change the mnemonic character to the letter C.

    Dialog to add tabs

    Dialog to add tabs

  5. Click Add to append a new tab to the list and name it Search.

    Click Add to insert a tab

    Click Add to insert a tab

  6. Click Add to insert another tab and name it System Log. Change the mnemonic character to L as the default S has already been taken by the Search tab.

    What you should see after adding all tabs

    What you should see after adding all tabs

  7. Add a text label and name it Order Status :
  8. Add a combo box next to the label Order Status.
    Add a combo box to the diagram

    Add a combo box to the diagram

    To add items, right click on the combo box and select Open Specification…

    In the dialog, click Add to add these 5 items [All, Quoted, Invoiced, Placed, Done] one by one. Then choose “All” to be the selected (or default) item.

    Add items to the combo box

    Add items to the combo box

  9. Add a table below the label Order Status.
    Add a table to the diagram

    Add a table to the diagram

    Right click on the table and select Open Specification…

    In the dialog (under the UI tab), click the Insert Column to Right button and add these 5 columns one by one [ ID, Date, Customer, Total, Status ].

    Insert Column to Right button

    Insert Column to Right button

    Click the Insert Row Below button to add 3 rows to the table.

    Insert Row Below button

    Insert Row Below button

    To populate the table, double click on each cell to enter the values as shown.

    Enter values in table cells

    Enter values in table cells

Steps to Create the Order Details Screen

This is what we are going to mock up in the 3rd diagram.

U03 Order Details

U03 Order Details

  1. Add a new user interface diagram and name it U03 Order Details. This is our 3rd diagram.
  2. Add a frame.
  3. Add a tabbed header.
  4. In the upper screen, add labels.

    U03 Order Details (Upper Screen)

    U03 Order Details (Upper Screen)

  5. Add a text area [Rm 1234, ABC Building]

    Add a Text Area to the diagram

    Add a Text Area to the diagram

  6. In the screen’s middle, add a table (4 columns X 3 rows).
  7. Add labels.

    U03 Order Details (Middle Screen)

    U03 Order Details (Middle Screen)

  8. Add 2 buttons at the screen’s bottom.

    Back and Process Order buttons

    Back and Process Order buttons

Steps to Create the Order Details Screen (After the Order Being Processed)

This is what we are going to mock up in the 4th diagram.

U04 Order Processed

U04 Order Processed

Since diagram 4 is very similar to diagram 3, we can make a copy of diagram 3 first and then edit from there. This will save us a lot of work.

  1. Add a new user interface diagram and name it U04 Order Processed.
  2. Go to diagram 3 (U03 Order Details). Click on the top of the frame. Press Ctrl-C to copy.
  3. To paste it in diagram 4 (U04 Order Processed), right click on the diagram and select Paste Model Element.

    Paste Model Element Menu Item

    Paste Model Element Menu Item

  4. Let’s update the order status. Double click on the label Placed. Type in Done to replace Placed.
  5. Since this screen appears after the order has been processed, remove the Process Order button at bottom right. Right click on it and select Delete > Delete.

    Right click to delete button on screen

    Right click to delete button on screen

Steps to Create the Order Main Screen (After the Order Being Processed)

This is what we are going to mock up in the 5th diagram.

U05 Order Main Screen (Order Completed)

U05 Order Main Screen (Order Completed)

Since diagram 5 is very similar to diagram 2, we can make a copy of diagram 2 first and then edit from there. This will save us a lot of work.

  1. Add a new user interface diagram and name it U05 Order Main Screen (Order Completed).
  2. Go to the U02 Order Main Screen diagram. Click on the top of the frame. Press Ctrl-C to copy.
  3. To paste it in diagram 5, U05 Order Main Screen (Order Completed), right click on the diagram and select Paste Model Element.
  4. Right click on the table and select Open Specification…In the dialog, double click on the Status for Order ID 00001 and replace Placed with Done.

    Change order status to Done

    Change order status to Done

Steps to Model UI Flow

Create References to Jump to Diagrams

In this section, we’ll add references to a few components (e.g. buttons) so that clicking them would jump to the appropriate screens (represented by diagrams 2 to 5) for UI simulation.

  1. Expected UI Navigation: Clicking the Login button will take users to diagram 2 showing the order list. To Do: Create a reference from the Login button to jump to diagram 2.Select the Login button and then click on the References icon around it.Select Add Diagram…
    Right click on button to add reference to diagram

    Right click on button to add reference to diagram

    In the Select Diagram window, select U02 Order Main Screen. Click OK.

    Select diagram to add reference

    Select diagram to add reference

  2. Expected UI Navigation: Clicking on the order row ( ID 00001 ) in the order list will take users to the U03 Order Details Screenshowing details of that particular order.In the U02 Order Main Screen diagram, select the table and click on the Referencesicon.Select Add Diagram…Add a reference to the U03 Order Details Screen diagram.
  3. Expected UI Navigation: Clicking the Back button in U03 Order Details Screen will take users back to U02 Order Main Screen.In the U03 Order Details Screen diagram, select the Back button and click on the Referencesicon.Select Add Diagram…Add a reference to the U02 Order Main Screen diagram.
  4. Expected UI Navigation: Clicking the Process Order button in U03 Order Details will take users to the U04 Order Processedscreen.In the U03 Order Details diagram, select the Process Order button and click on the References icon.Select Add Diagram…Add a reference to the U04 Order Processed diagram.
  5. Expected UI Navigation: Clicking the Back button (after order being processed) in U04 Order Processed will take users to U05 Order Main Screen (Order Completed).In the U04 Order Processed diagram, select the Back button and click on the Referencesicon.Select Add Diagram…Add a reference to the U05 Order Main Screen (Order Completed) diagram.

Publish Your Project to Simulate UI Flow

  1. From the menu bar, select Tools > Project Publisher…

    Select Tools - Project Publisher...

    Select Tools – Project Publisher…

  2. In the Project publisher… dialog, click Advanced Options…

    Click the Advanced Options button

    Click the Advanced Options button

  3. In the Project Publisher Optionsdialog,- for Drill down effect for UI elements, select Open references– for Default diagram, select U01 Login(which is our 1st diagram). Click OK.

    Project Publisher Options dialog

    Project Publisher Options dialog

  4. Your published project will appear in a web browser with UI navigation simulation available. For example, if you click on the Login button, it will jump to the order main screen (U02 Order Main Screen).

    Navigation Simulation in Web Browser

    Navigation Simulation in Web Browser

You can download the sample project file here.

Remarks:

User Interface Diagram is supported by:

Drill down effect for UI elements is available with Build sp2_20110817p or later. ( how to update? )

Watch this tutorial in YouTube.

Related Links

46 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply