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

UITagExample

public class UITagExample extends com.opensymphony.xwork2.ActionSupport implements com.opensymphony.xwork2.Validateable

Fields Summary
private static final long
serialVersionUID
String
name
Date
birthday
String
bio
String
favouriteColor
List
friends
boolean
legalAge
String
state
String
region
File
picture
String
pictureContentType
String
pictureFileName
String
favouriteLanguage
String
favouriteVehicalType
String
favouriteVehicalSpecific
List
leftSideCartoonCharacters
List
rightSideCartoonCharacters
List
favouriteLanguages
List
vehicalTypeList
Map
vehicalSpecificMap
String
thoughts
Constructors Summary
public UITagExample()


      
        favouriteLanguages.add(new Language("EnglishKey", "English Language"));
        favouriteLanguages.add(new Language("FrenchKey", "French Language"));
        favouriteLanguages.add(new Language("SpanishKey", "Spanish Language"));

        VehicalType car = new VehicalType("CarKey", "Car");
        VehicalType motorcycle = new VehicalType("MotorcycleKey", "Motorcycle");
        vehicalTypeList.add(car);
        vehicalTypeList.add(motorcycle);

        List cars = new ArrayList();
        cars.add(new VehicalSpecific("MercedesKey", "Mercedes"));
        cars.add(new VehicalSpecific("HondaKey", "Honda"));
        cars.add(new VehicalSpecific("FordKey", "Ford"));

        List motorcycles = new ArrayList();
        motorcycles.add(new VehicalSpecific("SuzukiKey", "Suzuki"));
        motorcycles.add(new VehicalSpecific("YamahaKey", "Yamaha"));

        vehicalSpecificMap.put(car, cars);
        vehicalSpecificMap.put(motorcycle, motorcycles);
    
Methods Summary
public java.lang.StringdoSubmit()

        return SUCCESS;
    
public java.lang.Stringexecute()

        return SUCCESS;
    
public java.lang.StringgetBio()

        return bio;
    
public java.util.DategetBirthday()

        return birthday;
    
public java.lang.StringgetFavouriteColor()

        return favouriteColor;
    
public java.lang.StringgetFavouriteLanguage()

        return favouriteLanguage;
    
public java.util.ListgetFavouriteLanguages()

        return favouriteLanguages;
    
public java.lang.StringgetFavouriteVehicalSpecific()

        return favouriteVehicalSpecific;
    
public java.lang.StringgetFavouriteVehicalType()

        return favouriteVehicalType;
    
public java.util.ListgetFriends()

        return friends;
    
public java.util.ListgetLeftSideCartoonCharacters()

        return leftSideCartoonCharacters;
    
public java.lang.StringgetName()

        return name;
    
public java.io.FilegetPicture()

        return this.picture;
    
public java.lang.StringgetRegion()

        return region;
    
public java.util.ListgetRightSideCartoonCharacters()

        return rightSideCartoonCharacters;
    
public java.lang.StringgetState()

        return state;
    
public java.lang.StringgetThoughts()

        return this.thoughts;
    
public java.util.ListgetVehicalSpecificList()

        ValueStack stack = ServletActionContext.getValueStack(ServletActionContext.getRequest());
        Object vehicalType = stack.findValue("top");
        if (vehicalType != null && vehicalType instanceof VehicalType) {
            List l = (List) vehicalSpecificMap.get(vehicalType);
            return l;
        }
        return Collections.EMPTY_LIST;
    
public java.util.ListgetVehicalTypeList()

        return vehicalTypeList;
    
public booleanisLegalAge()

        return legalAge;
    
public voidsetBio(java.lang.String bio)

        this.bio = bio;
    
public voidsetBirthday(java.util.Date birthday)

        this.birthday = birthday;
    
public voidsetFavouriteColor(java.lang.String favoriteColor)

        this.favouriteColor = favoriteColor;
    
public voidsetFavouriteLanguage(java.lang.String favouriteLanguage)

        this.favouriteLanguage = favouriteLanguage;
    
public voidsetFavouriteVehicalSpecific(java.lang.String favouriteVehicalSpecific)

        this.favouriteVehicalSpecific = favouriteVehicalSpecific;
    
public voidsetFavouriteVehicalType(java.lang.String favouriteVehicalType)

        this.favouriteVehicalType = favouriteVehicalType;
    
public voidsetFriends(java.util.List friends)

        this.friends = friends;
    
public voidsetLeftSideCartoonCharacters(java.util.List leftSideCartoonCharacters)

        this.leftSideCartoonCharacters = leftSideCartoonCharacters;
    
public voidsetLegalAge(boolean legalAge)

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

        this.name = name;
    
public voidsetPicture(java.io.File picture)

        this.picture = picture;
    
public voidsetPictureContentType(java.lang.String pictureContentType)

        this.pictureContentType = pictureContentType;
    
public voidsetPictureFileName(java.lang.String pictureFileName)

        this.pictureFileName = pictureFileName;
    
public voidsetRegion(java.lang.String region)

        this.region = region;
    
public voidsetRightSideCartoonCharacters(java.util.List rightSideCartoonCharacters)

        this.rightSideCartoonCharacters = rightSideCartoonCharacters;
    
public voidsetState(java.lang.String state)

        this.state = state;
    
public voidsetThoughts(java.lang.String thoughts)

        this.thoughts = thoughts;