title: Change the List itemRender depends of the view state
body: <p>I have one list, which the item render it`s like this:<a href="http://flexponential.com/2009/09/23/deleting-items-in-a-list-from-an-item-renderer/" rel="nofollow">link</a>.
  But now I need to enable or disable the button delete depends the view state which my List is inside.</p>
  
  <p>This is my view(which contains the list):</p>
  
  <pre><code>&lt;s:states&gt;
      &lt;s:State name="main" /&gt;             &lt;!-- Navigation.CART_MAIN  --&gt;
      &lt;s:State name="cash" /&gt;             &lt;!-- Navigation.CART_CASH  --&gt;
      &lt;s:State name="credit" /&gt;           &lt;!-- Navigation.CART_CREDIT  --&gt;
  &lt;/s:states&gt;
      &lt;s:List id="theList"
              width="480" height="240"
              x="69" y="82"
              dataProvider="{model.products}"
              useVirtualLayout="false"
              itemRenderer="com.png.vm.ui.components.ProductCartThumbnail" &gt;
  
      &lt;/s:List&gt;
  </code></pre>
  
  <p>The thing is that I just want to enable the delete buttons inside the itemRender when the screen is using the state "main"</p>