View Javadoc

    1   /*
    2    * $Id: AbstractDoubleListTag.java 471756 2006-11-06 15:01:43Z husted $
    3    *
    4    * Licensed to the Apache Software Foundation (ASF) under one
    5    * or more contributor license agreements.  See the NOTICE file
    6    * distributed with this work for additional information
    7    * regarding copyright ownership.  The ASF licenses this file
    8    * to you under the Apache License, Version 2.0 (the
    9    * "License"); you may not use this file except in compliance
    10   * with the License.  You may obtain a copy of the License at
    11   *
    12   *  http://www.apache.org/licenses/LICENSE-2.0
    13   *
    14   * Unless required by applicable law or agreed to in writing,
    15   * software distributed under the License is distributed on an
    16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    17   * KIND, either express or implied.  See the License for the
    18   * specific language governing permissions and limitations
    19   * under the License.
    20   */
    21  package org.apache.struts2.views.jsp.ui;
    22
    23  import org.apache.struts2.components.DoubleListUIBean;
    24
    25
    26  /***
    27   */
    28  public abstract class AbstractDoubleListTag extends AbstractRequiredListTag {
    29
    30      protected String doubleList;
    31      protected String doubleListKey;
    32      protected String doubleListValue;
    33      protected String doubleName;
    34      protected String doubleValue;
    35      protected String formName;
    36
    37      protected String emptyOption;
    38      protected String headerKey;
    39      protected String headerValue;
    40      protected String multiple;
    41      protected String size;
    42
    43      protected String doubleId;
    44      protected String doubleDisabled;
    45      protected String doubleMultiple;
    46      protected String doubleSize;
    47      protected String doubleHeaderKey;
    48      protected String doubleHeaderValue;
    49      protected String doubleEmptyOption;
    50
    51      protected String doubleCssClass;
    52      protected String doubleCssStyle;
    53
    54      protected String doubleOnclick;
    55      protected String doubleOndblclick;
    56      protected String doubleOnmousedown;
    57      protected String doubleOnmouseup;
    58      protected String doubleOnmouseover;
    59      protected String doubleOnmousemove;
    60      protected String doubleOnmouseout;
    61      protected String doubleOnfocus;
    62      protected String doubleOnblur;
    63      protected String doubleOnkeypress;
    64      protected String doubleOnkeydown;
    65      protected String doubleOnkeyup;
    66      protected String doubleOnselect;
    67      protected String doubleOnchange;
    68
    69      protected String doubleAccesskey;
    70
    71      protected void populateParams() {
    72          super.populateParams();
    73
    74          DoubleListUIBean bean = ((DoubleListUIBean) this.component);
    75          bean.setDoubleList(doubleList);
    76          bean.setDoubleListKey(doubleListKey);
    77          bean.setDoubleListValue(doubleListValue);
    78          bean.setDoubleName(doubleName);
    79          bean.setDoubleValue(doubleValue);
    80          bean.setFormName(formName);
    81
    82          bean.setDoubleId(doubleId);
    83          bean.setDoubleDisabled(doubleDisabled);
    84          bean.setDoubleMultiple(doubleMultiple);
    85          bean.setDoubleSize(doubleSize);
    86          bean.setDoubleHeaderKey(doubleHeaderKey);
    87          bean.setDoubleHeaderValue(doubleHeaderValue);
    88          bean.setDoubleEmptyOption(doubleEmptyOption);
    89
    90          bean.setDoubleCssClass(doubleCssClass);
    91          bean.setDoubleCssStyle(doubleCssStyle);
    92
    93          bean.setDoubleOnclick(doubleOnclick);
    94          bean.setDoubleOndblclick(doubleOndblclick);
    95          bean.setDoubleOnmousedown(doubleOnmousedown);
    96          bean.setDoubleOnmouseup(doubleOnmouseup);
    97          bean.setDoubleOnmouseover(doubleOnmouseover);
    98          bean.setDoubleOnmousemove(doubleOnmousemove);
    99          bean.setDoubleOnmouseout(doubleOnmouseout);
    100         bean.setDoubleOnfocus(doubleOnfocus);
    101         bean.setDoubleOnblur(doubleOnblur);
    102         bean.setDoubleOnkeypress(doubleOnkeypress);
    103         bean.setDoubleOnkeydown(doubleOnkeydown);
    104         bean.setDoubleOnkeyup(doubleOnkeyup);
    105         bean.setDoubleOnselect(doubleOnselect);
    106         bean.setDoubleOnchange(doubleOnchange);
    107
    108         bean.setDoubleAccesskey(doubleAccesskey);
    109
    110         bean.setEmptyOption(emptyOption);
    111         bean.setHeaderKey(headerKey);
    112         bean.setHeaderValue(headerValue);
    113         bean.setMultiple(multiple);
    114         bean.setSize(size);
    115     }
    116
    117     public void setDoubleList(String list) {
    118         this.doubleList = list;
    119     }
    120
    121     public void setDoubleListKey(String listKey) {
    122         this.doubleListKey = listKey;
    123     }
    124
    125     public void setDoubleListValue(String listValue) {
    126         this.doubleListValue = listValue;
    127     }
    128
    129     public void setDoubleName(String aName) {
    130         doubleName = aName;
    131     }
    132
    133     public void setDoubleValue(String doubleValue) {
    134         this.doubleValue = doubleValue;
    135     }
    136
    137     public void setFormName(String formName) {
    138         this.formName = formName;
    139     }
    140
    141     public String getDoubleCssClass() {
    142         return doubleCssClass;
    143     }
    144
    145     public void setDoubleCssClass(String doubleCssClass) {
    146         this.doubleCssClass = doubleCssClass;
    147     }
    148
    149     public String getDoubleCssStyle() {
    150         return doubleCssStyle;
    151     }
    152
    153     public void setDoubleCssStyle(String doubleCssStyle) {
    154         this.doubleCssStyle = doubleCssStyle;
    155     }
    156
    157     public String getDoubleDisabled() {
    158         return doubleDisabled;
    159     }
    160
    161     public void setDoubleDisabled(String doubleDisabled) {
    162         this.doubleDisabled = doubleDisabled;
    163     }
    164
    165     public String getDoubleEmptyOption() {
    166         return doubleEmptyOption;
    167     }
    168
    169     public void setDoubleEmptyOption(String doubleEmptyOption) {
    170         this.doubleEmptyOption = doubleEmptyOption;
    171     }
    172
    173     public String getDoubleHeaderKey() {
    174         return doubleHeaderKey;
    175     }
    176
    177     public void setDoubleHeaderKey(String doubleHeaderKey) {
    178         this.doubleHeaderKey = doubleHeaderKey;
    179     }
    180
    181     public String getDoubleHeaderValue() {
    182         return doubleHeaderValue;
    183     }
    184
    185     public void setDoubleHeaderValue(String doubleHeaderValue) {
    186         this.doubleHeaderValue = doubleHeaderValue;
    187     }
    188
    189     public String getDoubleId() {
    190         return doubleId;
    191     }
    192
    193     public void setDoubleId(String doubleId) {
    194         this.doubleId = doubleId;
    195     }
    196
    197     public String getDoubleMultiple() {
    198         return doubleMultiple;
    199     }
    200
    201     public void setDoubleMultiple(String doubleMultiple) {
    202         this.doubleMultiple = doubleMultiple;
    203     }
    204
    205     public String getDoubleOnblur() {
    206         return doubleOnblur;
    207     }
    208
    209     public void setDoubleOnblur(String doubleOnblur) {
    210         this.doubleOnblur = doubleOnblur;
    211     }
    212
    213     public String getDoubleOnchange() {
    214         return doubleOnchange;
    215     }
    216
    217     public void setDoubleOnchange(String doubleOnchange) {
    218         this.doubleOnchange = doubleOnchange;
    219     }
    220
    221     public String getDoubleOnclick() {
    222         return doubleOnclick;
    223     }
    224
    225     public void setDoubleOnclick(String doubleOnclick) {
    226         this.doubleOnclick = doubleOnclick;
    227     }
    228
    229     public String getDoubleOndblclick() {
    230         return doubleOndblclick;
    231     }
    232
    233     public void setDoubleOndblclick(String doubleOndblclick) {
    234         this.doubleOndblclick = doubleOndblclick;
    235     }
    236
    237     public String getDoubleOnfocus() {
    238         return doubleOnfocus;
    239     }
    240
    241     public void setDoubleOnfocus(String doubleOnfocus) {
    242         this.doubleOnfocus = doubleOnfocus;
    243     }
    244
    245     public String getDoubleOnkeydown() {
    246         return doubleOnkeydown;
    247     }
    248
    249     public void setDoubleOnkeydown(String doubleOnkeydown) {
    250         this.doubleOnkeydown = doubleOnkeydown;
    251     }
    252
    253     public String getDoubleOnkeypress() {
    254         return doubleOnkeypress;
    255     }
    256
    257     public void setDoubleOnkeypress(String doubleOnkeypress) {
    258         this.doubleOnkeypress = doubleOnkeypress;
    259     }
    260
    261     public String getDoubleOnkeyup() {
    262         return doubleOnkeyup;
    263     }
    264
    265     public void setDoubleOnkeyup(String doubleOnkeyup) {
    266         this.doubleOnkeyup = doubleOnkeyup;
    267     }
    268
    269     public String getDoubleOnmousedown() {
    270         return doubleOnmousedown;
    271     }
    272
    273     public void setDoubleOnmousedown(String doubleOnmousedown) {
    274         this.doubleOnmousedown = doubleOnmousedown;
    275     }
    276
    277     public String getDoubleOnmousemove() {
    278         return doubleOnmousemove;
    279     }
    280
    281     public void setDoubleOnmousemove(String doubleOnmousemove) {
    282         this.doubleOnmousemove = doubleOnmousemove;
    283     }
    284
    285     public String getDoubleOnmouseout() {
    286         return doubleOnmouseout;
    287     }
    288
    289     public void setDoubleOnmouseout(String doubleOnmouseout) {
    290         this.doubleOnmouseout = doubleOnmouseout;
    291     }
    292
    293     public String getDoubleOnmouseover() {
    294         return doubleOnmouseover;
    295     }
    296
    297     public void setDoubleOnmouseover(String doubleOnmouseover) {
    298         this.doubleOnmouseover = doubleOnmouseover;
    299     }
    300
    301     public String getDoubleOnmouseup() {
    302         return doubleOnmouseup;
    303     }
    304
    305     public void setDoubleOnmouseup(String doubleOnmouseup) {
    306         this.doubleOnmouseup = doubleOnmouseup;
    307     }
    308
    309     public String getDoubleOnselect() {
    310         return doubleOnselect;
    311     }
    312
    313     public void setDoubleOnselect(String doubleOnselect) {
    314         this.doubleOnselect = doubleOnselect;
    315     }
    316
    317     public String getDoubleSize() {
    318         return doubleSize;
    319     }
    320
    321     public void setDoubleSize(String doubleSize) {
    322         this.doubleSize = doubleSize;
    323     }
    324
    325     public String getDoubleList() {
    326         return doubleList;
    327     }
    328
    329     public String getDoubleListKey() {
    330         return doubleListKey;
    331     }
    332
    333     public String getDoubleListValue() {
    334         return doubleListValue;
    335     }
    336
    337     public String getDoubleName() {
    338         return doubleName;
    339     }
    340
    341     public String getDoubleValue() {
    342         return doubleValue;
    343     }
    344
    345     public String getFormName() {
    346         return formName;
    347     }
    348
    349     public void setEmptyOption(String emptyOption) {
    350         this.emptyOption = emptyOption;
    351     }
    352
    353     public void setHeaderKey(String headerKey) {
    354         this.headerKey = headerKey;
    355     }
    356
    357     public void setHeaderValue(String headerValue) {
    358         this.headerValue = headerValue;
    359     }
    360
    361     public void setMultiple(String multiple) {
    362         this.multiple = multiple;
    363     }
    364
    365     public void setSize(String size) {
    366         this.size = size;
    367     }
    368
    369     public void setDoubleAccesskey(String doubleAccesskey) {
    370         this.doubleAccesskey = doubleAccesskey;
    371     }
    372 }