import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
import org.mxchange.jcore.client.Client;
/**
* Utility class for menu structure
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
import org.mxchange.jcore.client.Client;
/**
* Utility class for menu structure
* @param menuList Menu list for later showing
* @param menuType Type of menu
* @param client Client instance to call back
*/
public static void addItemsToList (final List<SelectableMenuItem> menuList, final String menuType, final Client client) {
* @param menuList Menu list for later showing
* @param menuType Type of menu
* @param client Client instance to call back
*/
public static void addItemsToList (final List<SelectableMenuItem> menuList, final String menuType, final Client client) {
- // Get logger
- Logger log = new AddressbookMenu().getLogger();
-
- // Trace call
- log.trace(MessageFormat.format("menuList={0},menuType={1},client={2} - CALLED!", menuList, menuType, client)); //NOI18N
-
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
} else if (!(client instanceof AddressbookClient)) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
} else if (!(client instanceof AddressbookClient)) {