<- 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 position | icon name | item variable name |
| far left | exit | btnBack |
| left | edit | btnEdit |
| right | copy | btnCopy |
| far right | help | btnHelp |
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:
- A member variable called clipboardListIndex is set to -1
- The method loadEntry in DataLayer is called, with the name parameter given as entryName.
The returned value is saved in the variable entryData
- 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
-
- 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
- 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
- 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
- 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
- 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
- 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:
- the selected entry is copied to the clipboard.
- If clipboardListIndex is not equal to -1, the image icon in the row at index clipboardListIndex
is set to the copyempty drawable.
- The value of clipboardListIndex is set to the vlsFields list index of the row that was selected.
- The image icon in the row at index clipboardListIndex is set to the copied drawable.
- The value of clipboardListIndex is set to the vlsFields list index of the row that was selected.
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.