// Add new addess\r
menuList.add(client.getMenuItem('3', "Neue Adresse hinzufügen"));\r
\r
+ // List entries\r
+ menuList.add(client.getMenuItem('4', "Adressbuch anzeigen"));\r
+\r
+ // Address search\r
+ menuList.add(client.getMenuItem('5', "Adresse suchen"));\r
+\r
// Change other address\r
- menuList.add(client.getMenuItem('4', "Adresse ändern"));\r
+ menuList.add(client.getMenuItem('6', "Adresse ändern"));\r
\r
// Delete other address\r
- menuList.add(client.getMenuItem('5', "Adresse löschen"));\r
+ menuList.add(client.getMenuItem('7', "Adresse löschen"));\r
\r
// Always last line: Exit program\r
menuList.add(client.getMenuItem('0', "Programm verlassen"));\r
super();\r
}\r
\r
+ /**\r
+ * Size of menu items\r
+ * @return Count of menu items\r
+ */\r
+ public int getMenuItemsCount () {\r
+ return this.menuList.size();\r
+ }\r
+\r
/**\r
* "Getter" for an iterator of this menu's items\r
*\r
return this.menuList.iterator();\r
}\r
\r
- /**\r
- * Size of menu items\r
- * @return Count of menu items\r
- */\r
- public int getMenuItemsCount () {\r
- return this.menuList.size();\r
- }\r
-\r
/**\r
* Shows this menu\r
* \r
return this.accessKey;\r
}\r
\r
+ /**\r
+ * Access key\r
+ * @param accessKey the accessKey to set\r
+ */\r
+ private void setAccessKey (char accessKey) {\r
+ this.accessKey = accessKey;\r
+ }\r
+\r
/**\r
* Text to user\r
* @return the text\r
return this.text;\r
}\r
\r
- @Override\r
- public void show (final Client client) {\r
- // Call-back client over menu\r
- client.showEntry(this);\r
- }\r
-\r
/**\r
* Text to user\r
* @param text the text to set\r
this.text = text;\r
}\r
\r
- /**\r
- * Access key\r
- * @param accessKey the accessKey to set\r
- */\r
- private void setAccessKey (char accessKey) {\r
- this.accessKey = accessKey;\r
+ @Override\r
+ public void show (final Client client) {\r
+ // Call-back client over menu\r
+ client.showEntry(this);\r
}\r
\r
}\r