<- ReadMe.html  ||  <- ../Functionality.html

ViewEntryActivity UI Specification

Class name: ViewEntryActivity
Title:View Entry
Level: level four activity, displayed when there is an existing store

The activity is displayed when a list entry is selected in the ListEntriesActivity. ListEntriesActivity has supplied the entryName to the ViewEntryActivity.

The activity has a navigation bar at the bottom of the screen, with the following navigation bar items:

icon positionicon nameitem variable name
far leftexitbtnBack
lefteditbtnEdit
rightcopybtnCopy
far righthelpbtnHelp

The activity has a vertically scrolling list of rows. Each row has a text fields and an image icon to the right of the text. The scrolling list is saved in the variable vlsFields

When the activity is initially displayed, the following is carried out:

  1. A member variable called clipboardListIndex is set to -1
  2. The method loadEntry in DataLayer is called, with the name parameter given as entryName. The returned value is saved in the variable entryData
  3. A new row in the vlsFields list is created for the entryData name member variable. If the name value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable
  4. A new row in the vlsFields list is created for the entryData creationDateTime member variable. If the creationDateTime value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable
  5. A new row in the vlsFields list is created for the entryData lastModifiedDateTime member variable. If the lastModifiedDateTime value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable
  6. A new row in the vlsFields list is created for the entryData password member variable. If the password value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable
  7. For each field in the entryData detailFields list, a new row in the vlsFields list is created. If the field value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable
  8. A new row in the vlsFields list is created for the entryData notes member variable. If the notes value is in the clipboard, the row's image icon is set to the copied drawable, otherwise it is set to the copyempty drawable. The notes text field should be large enough to contain the entire notes multiline text
  9. btnCopy is disabled

ViewEntryActivity functionality

When the button btnEdit is pressed, the activity navigates to the EditEntryActivity. The selected entryName is passed to the EditEntryActivity

When a row in the vlsFields list is selected, btnCopy in the navigation bar is enabled.

When the button btnCopy is pressed, the following is carried out:

When the button btnBack is pressed, the activity is popped of the activity stack, and then the app navigates to ListEntriesActivity.

When the btnHelp button is pressed, the activity navigates to the HelpActivity, requesting that the asset file CreateNewStoreActivityHelp.html be displayed.