Package de.dis2011.menu

Source Code of de.dis2011.menu.MaklerSelectionMenu

package de.dis2011.menu;

import java.util.Iterator;
import java.util.Set;

import de.dis2011.data.Makler;

/**
* Ein kleines Menü, dass alle Makler aus einem Set zur Auswahl anzeigt
*/
public class MaklerSelectionMenu extends Menu {
  public static final int BACK = -1;
 
  public MaklerSelectionMenu(String title, Set<Makler> makler) {
    super(title);
   
    Iterator<Makler> it = makler.iterator();
    while(it.hasNext()) {
      Makler m = it.next();
      addEntry(m.getName(), m.getId());
    }
    addEntry("Zur√ºck", BACK);
  }
}
TOP

Related Classes of de.dis2011.menu.MaklerSelectionMenu

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.