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

LotsOfOptiontransferselectAction

public class LotsOfOptiontransferselectAction extends com.opensymphony.xwork2.ActionSupport

Fields Summary
private List
_favouriteCartoonCharactersKeys
private List
_notFavouriteCartoonCharactersKeys
private List
_favouriteCarsKeys
private List
_notFavouriteCarsKeys
private List
_favouriteMotorcyclesKeys
private List
_notFavouriteMotorcyclesKeys
private List
_favouriteCountriesKeys
private List
_notFavouriteCountriesKeys
private List
_favouriteSportsKeys
private List
_nonFavouriteSportsKeys
private List
_favouriteCities
private List
_prioritisedFavouriteCartoonCharacters
private List
_prioritisedFavouriteCars
private List
_prioritisedFavouriteCountries
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.MapgetDefaultFavoriteSports()

        return new LinkedHashMap();
    
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.MapgetDefaultFavouriteMotorcycles()

        Map m = new LinkedHashMap();
        m.put("honda", "Honda");
        m.put("yamaha", "Yamaha");
        m.put("Aprillia", "Aprillia");
        return m;
    
public java.util.MapgetDefaultNonFavoriteSports()

        Map m = new LinkedHashMap();
        m.put("basketball", "Basketball");
        m.put("football", "Football");
        m.put("baseball", "Baseball");
        return m;
    
public java.util.MapgetDefaultNotFavouriteCars()

        Map m = new LinkedHashMap();
        m.put("ford", "Ford");
        m.put("landRover", "Land Rover");
        m.put("mercedes", "Mercedes");
        return m;
    
public java.util.MapgetDefaultNotFavouriteCartoonCharacters()

        Map m = new LinkedHashMap();
        m.put("donaldDuck", "Donald Duck");
        m.put("atomicAnt", "Atomic Ant");
        m.put("pinkPainter", "Pink Painter");
        return m;
    
public java.util.MapgetDefaultNotFavouriteCountries()

        Map m = new LinkedHashMap();
        m.put("germany", "Germany");
        m.put("china", "China");
        m.put("russia", "Russia");
        return m;
    
public java.util.MapgetDefaultNotFavouriteMotorcycles()

        Map m = new LinkedHashMap();
        m.put("cagiva", "Cagiva");
        m.put("harleyDavidson", "Harley Davidson");
        m.put("suzuki", "Suzuki");
        return m;
    
public java.util.ListgetFavouriteCars()

        return _favouriteCarsKeys;
    
public java.util.ListgetFavouriteCartoonCharacters()

        return _favouriteCartoonCharactersKeys;
    
public java.util.ListgetFavouriteCities()

        return _favouriteCities;
    
public java.util.ListgetFavouriteCountries()

        return _favouriteCountriesKeys;
    
public java.util.ListgetFavouriteMotorcycles()

        return _favouriteMotorcyclesKeys;
    
public java.util.ListgetFavouriteSports()

        return _favouriteSportsKeys;
    
public java.util.ListgetNonFavouriteSports()

        return _nonFavouriteSportsKeys;
    
public java.util.ListgetNotFavouriteCars()

        return _notFavouriteCarsKeys;
    
public java.util.ListgetNotFavouriteCartoonCharacters()

        return _notFavouriteCartoonCharactersKeys;
    
public java.util.ListgetNotFavouriteCountries()

        return _notFavouriteCountriesKeys;
    
public java.util.ListgetNotFavouriteMotorcycles()

        return _notFavouriteMotorcyclesKeys;
    
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 voidsetFavouriteCars(java.util.List favouriteCars)

        _favouriteCarsKeys = favouriteCars;
    
public voidsetFavouriteCartoonCharacters(java.util.List favouriteCartoonCharacters)

        _favouriteCartoonCharactersKeys = favouriteCartoonCharacters;
    
public voidsetFavouriteCities(java.util.List favouriteCities)

        this._favouriteCities = favouriteCities;
    
public voidsetFavouriteCountries(java.util.List favouriteCountries)

        _favouriteCountriesKeys = favouriteCountries;
    
public voidsetFavouriteMotorcycles(java.util.List favouriteMotorcycles)

        _favouriteMotorcyclesKeys = favouriteMotorcycles;
    
public voidsetFavouriteSports(java.util.List favouriteSportsKeys)

        this._favouriteSportsKeys = favouriteSportsKeys;
    
public voidsetNonFavouriteSports(java.util.List notFavouriteSportsKeys)

        this._nonFavouriteSportsKeys = notFavouriteSportsKeys;
    
public voidsetNotFavouriteCars(java.util.List notFavouriteCars)

        _notFavouriteCarsKeys = notFavouriteCars;
    
public voidsetNotFavouriteCartoonCharacters(java.util.List notFavouriteCartoonCharacters)

        _notFavouriteCartoonCharactersKeys = notFavouriteCartoonCharacters;
    
public voidsetNotFavouriteCountries(java.util.List notFavouriteCountries)

        _notFavouriteCountriesKeys = notFavouriteCountries;
    
public voidsetNotFavouriteMotorcycles(java.util.List notFavouriteMotorcycles)

        _notFavouriteMotorcyclesKeys = notFavouriteMotorcycles;
    
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;