View Javadoc
1   package org.andromda.cartridges.jsf.taglib;
2   
3   import javax.faces.component.UIComponent;
4   
5   import org.andromda.cartridges.jsf.component.html.HtmlExtendedDataTable;
6   import org.apache.myfaces.taglib.html.ext.HtmlDataTableTag;
7   
8   /**
9    * Extends dataTable to provide the ability to submit tables of data and render
10   * the data back into the table using a backing value.
11   *
12   * @author Chad Brandon
13   */
14  public class HtmlExtendedDataTableTag
15      extends HtmlDataTableTag
16  {
17      /**
18       * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
19       */
20      @Override
21      protected void setProperties(final UIComponent component)
22      {
23          super.setProperties(component);
24          this.setStringProperty(component, HtmlExtendedDataTable.IDENTIFIER_COLUMNS, this.identifierColumns);
25          this.setStringProperty(component, HtmlExtendedDataTable.BACKING_VALUE, this.backingValue);
26      }
27  
28      /**
29       * A comma separated list of the columns that uniquely identify the row for this data table.
30       */
31      private String identifierColumns;
32  
33      /**
34       * @return Returns the identifierColumns.
35       */
36      public String getIdentifierColumns()
37      {
38          return this.identifierColumns;
39      }
40  
41      /**
42       * @param identifierColumnsIn The identifierColumns to set.
43       */
44      public void setIdentifierColumns(String identifierColumnsIn)
45      {
46          this.identifierColumns = identifierColumnsIn;
47      }
48  
49      /**
50       * The backing value for this table.
51       */
52      private String backingValue;
53  
54      /**
55       * @return Returns the backingValue.
56       */
57      public String getBackingValue()
58      {
59          return this.backingValue;
60      }
61  
62      /**
63       * @param backingValueIn The backingValue to set.
64       */
65      public void setBackingValue(String backingValueIn)
66      {
67          this.backingValue = backingValueIn;
68      }
69  
70      /**
71       * The component type for this tag.
72       */
73      private static final String COMPONENT_TYPE = HtmlExtendedDataTable.class.getName();
74  
75      /**
76       * @see javax.faces.webapp.UIComponentTag#getComponentType()
77       */
78      @Override
79      public String getComponentType()
80      {
81          return COMPONENT_TYPE;
82      }
83  }