FileDocCategorySizeDatePackage
MoreSelectsAction.javaAPI DocApache Struts 2.0.9 Apps3982Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase

MoreSelectsAction

public class MoreSelectsAction extends com.opensymphony.xwork2.ActionSupport

Fields Summary
private List
_prioritisedFavouriteCartoonCharacters
private List
_prioritisedFavouriteCars
private List
_prioritisedFavouriteCountries
private List
favouriteNumbers
Constructors Summary
Methods Summary
public java.util.MapgetAvailableCities()

        Map map = new LinkedHashMap();
        map.put("boston", "Boston");
        map.put("new york", "New York");
        map.put("london", "London");
        map.put("rome", "Rome");
        return map;
    
public java.util.MapgetDefaultFavouriteCars()

        Map m = new LinkedHashMap();
        m.put("alfaRomeo", "Alfa Romeo");
        m.put("Toyota", "Toyota");
        m.put("Mitsubitshi", "Mitsubitshi");
        return m;
    
public java.util.MapgetDefaultFavouriteCartoonCharacters()

        Map m = new LinkedHashMap();
        m.put("heMan", "He-Man");
        m.put("popeye", "Popeye");
        m.put("mockeyMouse", "Mickey Mouse");
        return m;
    
public java.util.ListgetDefaultFavouriteCities()

        List list = new ArrayList();
        list.add("boston");
        list.add("rome");
        return list;
    
public java.util.MapgetDefaultFavouriteCountries()

        Map m = new LinkedHashMap();
        m.put("england", "England");
        m.put("america", "America");
        m.put("brazil", "Brazil");
        return m;
    
public java.util.ListgetDefaultFavouriteNumbers()

        List list = new ArrayList();
        list.add("Three");
        list.add("Seven");
        return list;
    
public java.util.ListgetFavouriteNumbers()

        return favouriteNumbers;
    
public java.util.ListgetPrioritisedFavouriteCars()

        return _prioritisedFavouriteCars;
    
public java.util.ListgetPrioritisedFavouriteCartoonCharacters()

        return _prioritisedFavouriteCartoonCharacters;
    
public java.util.ListgetPrioritisedFavouriteCountries()

        return _prioritisedFavouriteCountries;
    
public java.lang.Stringinput()

        return SUCCESS;
    
public voidsetFavouriteNumbers(java.util.List favouriteNumbers)

        this.favouriteNumbers = favouriteNumbers;
    
public voidsetPrioritisedFavouriteCars(java.util.List prioritisedFavouriteCars)

        _prioritisedFavouriteCars = prioritisedFavouriteCars;
    
public voidsetPrioritisedFavouriteCartoonCharacters(java.util.List prioritisedFavouriteCartoonCharacters)

        _prioritisedFavouriteCartoonCharacters = prioritisedFavouriteCartoonCharacters;
    
public voidsetPrioritisedFavouriteCountries(java.util.List prioritisedFavouriteCountries)

        _prioritisedFavouriteCountries = prioritisedFavouriteCountries;
    
public java.lang.Stringsubmit()

        return SUCCESS;