FileDocCategorySizeDatePackage
StrutsModels.javaAPI DocExample12213Mon Jul 23 13:26:42 BST 2007org.apache.struts2.views.freemarker.tags

StrutsModels

public class StrutsModels extends Object
Provides @s.tag access for various tags.

Fields Summary
protected com.opensymphony.xwork2.util.ValueStack
stack
protected HttpServletRequest
req
protected HttpServletResponse
res
protected ActionModel
action
protected BeanModel
bean
protected CheckboxModel
checkbox
protected CheckboxListModel
checkboxlist
protected ComboBoxModel
comboBox
protected ComponentModel
component
protected DateModel
date
protected DateTimePickerModel
dateTimePicker
protected DivModel
div
protected DoubleSelectModel
doubleselect
protected FileModel
file
protected FormModel
form
protected HeadModel
head
protected HiddenModel
hidden
protected AnchorModel
a
protected I18nModel
i18n
protected IncludeModel
include
protected LabelModel
label
protected PasswordModel
password
protected PushModel
push
protected ParamModel
param
protected RadioModel
radio
protected SelectModel
select
protected SetModel
set
protected SubmitModel
submit
protected ResetModel
reset
protected TabbedPanelModel
tabbedPanel
protected TextAreaModel
textarea
protected TextModel
text
protected TextFieldModel
textfield
protected TokenModel
token
protected URLModel
url
protected WebTableModel
table
protected PropertyModel
property
protected IteratorModel
iterator
protected ActionErrorModel
actionerror
protected ActionMessageModel
actionmessage
protected FieldErrorModel
fielderror
protected OptionTransferSelectModel
optiontransferselect
protected TreeModel
treeModel
protected TreeNodeModel
treenodeModel
protected UpDownSelectModel
updownselect
protected OptGroupModel
optGroupModel
protected IfModel
ifModel
protected ElseModel
elseModel
protected ElseIfModel
elseIfModel
protected AutocompleterModel
autocompleterModel
protected InputTransferSelectModel
inputtransferselect
Constructors Summary
public StrutsModels(com.opensymphony.xwork2.util.ValueStack stack, HttpServletRequest req, HttpServletResponse res)

        this.stack = stack;
        this.req = req;
        this.res = res;
    
Methods Summary
public AnchorModelgetA()

        if (a == null) {
            a = new AnchorModel(stack, req, res);
        }

        return a;
    
public ActionModelgetAction()

        if (action == null) {
            action = new ActionModel(stack, req, res);
        }

        return action;
    
public ActionErrorModelgetActionerror()

        if (actionerror == null) {
            actionerror = new ActionErrorModel(stack, req, res);
        }

        return actionerror;
    
public ActionMessageModelgetActionmessage()

        if (actionmessage == null) {
            actionmessage = new ActionMessageModel(stack, req, res);
        }

        return actionmessage;
    
public AutocompleterModelgetAutocompleter()

        if (autocompleterModel == null) {
            autocompleterModel = new AutocompleterModel(stack, req, res);
        }

        return autocompleterModel;
    
public BeanModelgetBean()

        if (bean == null) {
            bean = new BeanModel(stack, req, res);
        }

        return bean;
    
public CheckboxModelgetCheckbox()

        if (checkbox == null) {
            checkbox = new CheckboxModel(stack, req, res);
        }

        return checkbox;
    
public CheckboxListModelgetCheckboxlist()

        if (checkboxlist == null) {
            checkboxlist = new CheckboxListModel(stack, req, res);
        }

        return checkboxlist;
    
public ComboBoxModelgetComboBox()

        if (comboBox == null) {
            comboBox = new ComboBoxModel(stack, req, res);
        }

        return comboBox;
    
public ComponentModelgetComponent()

        if (component == null) {
            component = new ComponentModel(stack, req, res);
        }

        return component;
    
public DateModelgetDate()

        if (date == null) {
            date = new DateModel(stack, req, res);
        }

        return date;
    
public DateTimePickerModelgetDateTimePicker()

        if (dateTimePicker == null) {
            dateTimePicker = new DateTimePickerModel(stack, req, res);
        }

        return dateTimePicker;
    
public DivModelgetDiv()

        if (div == null) {
            div = new DivModel(stack, req, res);
        }

        return div;
    
public DoubleSelectModelgetDoubleselect()

        if (doubleselect == null) {
            doubleselect = new DoubleSelectModel(stack, req, res);
        }

        return doubleselect;
    
public ElseModelgetElse()

        if (elseModel == null) {
            elseModel = new ElseModel(stack, req, res);
        }
        return elseModel;
    
public ElseIfModelgetElseif()

        if (elseIfModel == null) {
            elseIfModel = new ElseIfModel(stack, req, res);
        }
        return elseIfModel;
    
public FieldErrorModelgetFielderror()

        if (fielderror == null) {
            fielderror = new FieldErrorModel(stack, req, res);
        }

        return fielderror;
    
public FileModelgetFile()

        if (file == null) {
            file = new FileModel(stack, req, res);
        }

        return file;
    
public FormModelgetForm()

        if (form == null) {
            form = new FormModel(stack, req, res);
        }

        return form;
    
public HeadModelgetHead()

        if (head == null) {
            head = new HeadModel(stack, req, res);
        }

        return head;
    
public HiddenModelgetHidden()

        if (hidden == null) {
            hidden = new HiddenModel(stack, req, res);
        }

        return hidden;
    
public AnchorModelgetHref()

        if (a == null) {
            a = new AnchorModel(stack, req, res);
        }

        return a;
    
public I18nModelgetI18n()

        if (i18n == null) {
            i18n = new I18nModel(stack, req, res);
        }

        return i18n;
    
public IfModelgetIf()

        if (ifModel == null) {
            ifModel = new IfModel(stack, req, res);
        }
        return ifModel;
    
public IncludeModelgetInclude()

        if (include == null) {
            include = new IncludeModel(stack, req, res);
        }

        return include;
    
public InputTransferSelectModelgetInputtransferselect()

        if (inputtransferselect == null) {
            inputtransferselect = new InputTransferSelectModel(stack, req, res);
        }
        return inputtransferselect;
    
public IteratorModelgetIterator()

        if (iterator == null) {
            iterator = new IteratorModel(stack, req, res);
        }

        return iterator;
    
public LabelModelgetLabel()

        if (label == null) {
            label = new LabelModel(stack, req, res);
        }

        return label;
    
public OptGroupModelgetOptgroup()

        if (optGroupModel == null) {
            optGroupModel = new OptGroupModel(stack, req, res);
        }
        return optGroupModel;
    
public OptionTransferSelectModelgetOptiontransferselect()

        if (optiontransferselect == null) {
            optiontransferselect = new OptionTransferSelectModel(stack, req, res);
        }
        return optiontransferselect;
    
public ParamModelgetParam()

        if (param == null) {
            param = new ParamModel(stack, req, res);
        }

        return param;
    
public PasswordModelgetPassword()

        if (password == null) {
            password = new PasswordModel(stack, req, res);
        }

        return password;
    
public PropertyModelgetProperty()

        if (property == null) {
            property = new PropertyModel(stack, req, res);
        }

        return property;
    
public PushModelgetPush()

        if (push == null) {
            push = new PushModel(stack, req, res);
        }

        return push;
    
public RadioModelgetRadio()

        if (radio == null) {
            radio = new RadioModel(stack, req, res);
        }

        return radio;
    
public ResetModelgetReset()

        if (reset == null) {
            reset = new ResetModel(stack, req, res);
        }

        return reset;
    
public SelectModelgetSelect()

        if (select == null) {
            select = new SelectModel(stack, req, res);
        }

        return select;
    
public SetModelgetSet()

        if (set == null) {
            set = new SetModel(stack, req, res);
        }

        return set;
    
public SubmitModelgetSubmit()

        if (submit == null) {
            submit = new SubmitModel(stack, req, res);
        }

        return submit;
    
public TabbedPanelModelgetTabbedPanel()

        if (tabbedPanel == null) {
            tabbedPanel = new TabbedPanelModel(stack, req, res);
        }

        return tabbedPanel;
    
public WebTableModelgetTable()

        if (table == null) {
            table = new WebTableModel(stack, req, res);
        }

        return table;
    
public TextModelgetText()

        if (text == null) {
            text = new TextModel(stack, req, res);
        }

        return text;
    
public TextAreaModelgetTextarea()

        if (textarea == null) {
            textarea = new TextAreaModel(stack, req, res);
        }

        return textarea;
    
public TextFieldModelgetTextfield()

        if (textfield == null) {
            textfield = new TextFieldModel(stack, req, res);
        }

        return textfield;
    
public TokenModelgetToken()

        if (token == null) {
            token = new TokenModel(stack, req, res);
        }

        return token;
    
public TreeModelgetTree()

        if (treeModel == null) {
            treeModel = new TreeModel(stack,req, res);
        }
        return treeModel;
    
public TreeNodeModelgetTreenode()

        if (treenodeModel == null) {
            treenodeModel = new TreeNodeModel(stack, req, res);
        }
        return treenodeModel;
    
public UpDownSelectModelgetUpdownselect()

        if (updownselect == null)  {
            updownselect = new UpDownSelectModel(stack, req, res);
        }
        return updownselect;
    
public URLModelgetUrl()

        if (url == null) {
            url = new URLModel(stack, req, res);
        }

        return url;