View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one
    3    * or more contributor license agreements.  See the NOTICE file
    4    * distributed with this work for additional information
    5    * regarding copyright ownership.  The ASF licenses this file
    6    * to you under the Apache License, Version 2.0 (the
    7    * "License"); you may not use this file except in compliance
    8    * with the License.  You may obtain a copy of the License at
    9    *
    10   *   http://www.apache.org/licenses/LICENSE-2.0
    11   *
    12   * Unless required by applicable law or agreed to in writing,
    13   * software distributed under the License is distributed on an
    14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    15   * KIND, either express or implied.  See the License for the
    16   * specific language governing permissions and limitations
    17   * under the License.
    18   */
    19  package org.apache.myfaces.shared_orchestra.taglib.html;
    20
    21  import javax.faces.component.UIComponent;
    22
    23
    24  /**
    25   * @author Manfred Geiler (latest modification by $Author: grantsmith $)
    26   * @version $Revision: 472618 $ $Date: 2006-11-08 15:06:54 -0500 (Wed, 08 Nov 2006) $
    27   */
    28  public abstract class HtmlInputTextareaTagBase
    29          extends org.apache.myfaces.shared_orchestra.taglib.html.HtmlInputTagBase
    30  {
    31      // UIComponent attributes --> already implemented in UIComponentTagBase
    32
    33      // user role attributes --> already implemented in UIComponentTagBase
    34
    35      // HTML universal attributes --> already implemented in HtmlComponentTagBase
    36
    37      // HTML event handler attributes --> already implemented in HtmlComponentTagBase
    38
    39      // HTML input attributes
    40      private String _accesskey;
    41      private String _cols;
    42      private String _datafld; //FIXME: not in RI so far
    43      private String _datasrc; //FIXME: not in RI so far
    44      private String _dataformatas; //FIXME: not in RI so far
    45      private String _disabled;
    46      private String _onblur;
    47      private String _onchange;
    48      private String _onfocus;
    49      private String _onselect;
    50      private String _readonly;
    51      private String _rows;
    52      private String _tabindex;
    53
    54      // UIOutput attributes
    55      // value and converter --> already implemented in UIComponentTagBase
    56
    57      // UIInput attributes
    58      // --> already implemented in HtmlInputTagBase
    59
    60      //HtmlTextArea attributes
    61      // FIXME: is in RI, but not in HTML 4.0. what to do?
    62      private String _alt;
    63
    64      public void release() {
    65          super.release();
    66          _accesskey=null;
    67          _cols=null;
    68          _datafld=null;
    69          _datasrc=null;
    70          _dataformatas=null;
    71          _disabled=null;
    72          _onblur=null;
    73          _onchange=null;
    74          _onfocus=null;
    75          _onselect=null;
    76          _readonly=null;
    77          _rows=null;
    78          _tabindex=null;
    79          _alt=null;
    80      }
    81
    82      protected void setProperties(UIComponent component)
    83      {
    84          super.setProperties(component);
    85
    86          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ACCESSKEY_ATTR, _accesskey);
    87          setIntegerProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.COLS_ATTR, _cols);
    88          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.DATAFLD_ATTR, _datafld);
    89          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.DATASRC_ATTR, _datasrc);
    90          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.DATAFORMATAS_ATTR, _dataformatas);
    91          setBooleanProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.DISABLED_ATTR, _disabled);
    92          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ONBLUR_ATTR, _onblur);
    93          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ONCHANGE_ATTR, _onchange);
    94          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ONFOCUS_ATTR, _onfocus);
    95          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ONSELECT_ATTR, _onselect);
    96          setBooleanProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.READONLY_ATTR, _readonly);
    97          setIntegerProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ROWS_ATTR, _rows);
    98          setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.TABINDEX_ATTR, _tabindex);
    99
    100         setStringProperty(component, org.apache.myfaces.shared_orchestra.renderkit.html.HTML.ALT_ATTR, _alt);
    101     }
    102
    103     public void setAccesskey(String accesskey)
    104     {
    105         _accesskey = accesskey;
    106     }
    107
    108     public void setAlt(String alt)
    109     {
    110         _alt = alt;
    111     }
    112
    113     public void setCols(String cols)
    114     {
    115         _cols = cols;
    116     }
    117
    118     public void setDatafld(String datafld)
    119     {
    120         _datafld = datafld;
    121     }
    122
    123     public void setDatasrc(String datasrc)
    124     {
    125         _datasrc = datasrc;
    126     }
    127
    128     public void setDataformatas(String dataformatas)
    129     {
    130         _dataformatas = dataformatas;
    131     }
    132
    133     public void setDisabled(String disabled)
    134     {
    135         _disabled = disabled;
    136     }
    137
    138     public void setOnblur(String onblur)
    139     {
    140         _onblur = onblur;
    141     }
    142
    143     public void setOnchange(String onchange)
    144     {
    145         _onchange = onchange;
    146     }
    147
    148     public void setOnfocus(String onfocus)
    149     {
    150         _onfocus = onfocus;
    151     }
    152
    153     public void setOnselect(String onselect)
    154     {
    155         _onselect = onselect;
    156     }
    157
    158     public void setReadonly(String readonly)
    159     {
    160         _readonly = readonly;
    161     }
    162
    163     public void setRows(String rows)
    164     {
    165         _rows = rows;
    166     }
    167
    168     public void setTabindex(String tabindex)
    169     {
    170         _tabindex = tabindex;
    171     }
    172
    173 }