*/
package org.mxchange.addressbook.menu;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
* @param client Client instance to call back
*/
public void show (final Client client) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("client={0} CALLED!", client)); //NOI18N
+
+ // Client must not be null
+ if (client == null) {
+ // Abort here
+ throw new NullPointerException("client is null"); //NOI18N
+ }
+
// Get values
Iterator<SelectableMenuItem> iterator = this.menuList.iterator();
// Show this item
item.show(client);
}
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
}
/**
* @param client CLient to call back
*/
protected void initMenu (final String menuType, final Client client) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N
+
// Init menu list
this.menuList = new ArrayList<>(5);
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
}
}