FileDocCategorySizeDatePackage
FavoritesForm.javaAPI DocExample1892Fri Jul 09 13:42:34 BST 2004com.oreilly.strutsckbk

FavoritesForm

public final class FavoritesForm extends org.apache.struts.action.ActionForm

Fields Summary
private static String[]
javaIdes
private static String[]
csharpIdes
private List
webLinks
private String
name
private String[]
colors
private String
language
private String
ide
Constructors Summary
public FavoritesForm()

	
	  
		webLinks = new ArrayList();
		for (int i=0; i<5; i++) webLinks.add(new WebLink()); 
		colors = new String[3];
		colors[0]="Black";
		colors[1]="Blue";
		colors[2]="Red";
	
Methods Summary
public java.lang.StringgetColor(int index)

		return colors[index];
	
public java.lang.String[]getColors()

        return colors;
    
public java.lang.String[]getCsharpIdes()

return csharpIdes;
public java.lang.StringgetIde()

		return ide;
	
public java.lang.String[]getJavaIdes()

return javaIdes;
public java.lang.StringgetLanguage()

		return language;
	
public java.lang.StringgetName()

		return name;
	
public WebLinkgetWebLink(int index)

		return (WebLink)webLinks.get(index);
	
public java.util.ListgetWebLinks()

		return webLinks;
	
public voidreset()

		webLinks.clear();
		colors = new String[3];
	
public voidsetColor(int index, java.lang.String color)

		colors[index] = color;
	
public voidsetColors(java.lang.String[] colors)

        this.colors = colors;
    
public voidsetIde(java.lang.String ide)

		this.ide = ide;
	
public voidsetLanguage(java.lang.String language)

		this.language = language;
	
public voidsetName(java.lang.String name)

		this.name = name;
	
public voidsetWebLink(int index, WebLink webLink)

		webLinks.set(index, webLink);