FileDocCategorySizeDatePackage
LanguageChoices.javaAPI DocExample1122Thu May 06 01:19:58 BST 2004com.oreilly.strutsckbk

LanguageChoices

public class LanguageChoices extends Object

Fields Summary
private List
languages
private Map
languageIdeMap
Constructors Summary
public LanguageChoices()

		// create the set of languages
		languages = new ArrayList();
		languages.add(createBean("Java"));
		languages.add(createBean("C#"));

		languageIdeMap = new HashMap();

		// create the set of Java IDEs
		LabelValueBean[] javaIdes =  new LabelValueBean[] {
				createBean("Eclipse"),
				createBean("NetBeans"),
				createBean("JDeveloper"),
				createBean("IDEA") };

		// create the set of C# IDEs
		LabelValueBean[] csharpIdes =  new LabelValueBean[] {
				createBean("SharpDevelop"),
				createBean("Visual Studio") };

		// relate the language and IDEs
		languageIdeMap.put("Java", javaIdes);
		languageIdeMap.put("C#", csharpIdes);				
	
Methods Summary
private org.apache.struts.util.LabelValueBeancreateBean(java.lang.String name)

		return new LabelValueBean(name, name);
	
public java.util.MapgetLanguageIdeMap()

		return languageIdeMap;
	
public java.util.ListgetLanguages()

		return languages;