Package org.apache.myfaces.trinidad.component.core.data

Examples of org.apache.myfaces.trinidad.component.core.data.CoreTable


   * selectedIndex should not change:
   */
  public void testDecodeNothing()
  {

    CoreTable table = _createComponent();
    _doDecode(table, -1);
    _testSelection(table, _INIT_SELECTION);
  }
View Full Code Here


  }

  private CoreTable _createComponent()
  {
    String[] data = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
    CoreTable table = new TestTable();
    table.setId(_TABLE_ID);
    table.setValue(data);
    table.setRowIndex(_INIT_SELECTION);
    table.getSelectedRowKeys().add();
    table.setRowIndex(-1);
    table.setRowSelection("single");
    return table;
  }
View Full Code Here


  @SuppressWarnings("unchecked")
  public void testTable() throws IOException
  {
    CoreTable table = new CoreTable();
    ArrayList<Integer> l = new ArrayList<Integer>();
    for (int i = 0 ; i < 10; i++)
      l.add(new Integer(i));
    table.setValue(l);

    for (int i = 0 ; i < 3; i++)
    {
      CoreColumn col = new CoreColumn();

      /*
      col.setHeaderText("Header " + i);
      // Use headerText instead of adding the facet; easier and faster.
      //CoreOutputText header = new CoreOutputText();
      //header.setValue("Header " + i);
      //col.setHeader(header);
      //CoreOutputText text = new CoreOutputText();
      CoreInputText text = new CoreInputText();
      text.setSimple(true);
      text.setValue("Column " + i);
      col.getChildren().add(text);
      */
      col.setHeader(new NullComp());
      col.getChildren().add(new NullComp());
      table.getChildren().add(col);
    }

    UIViewRoot root = createTestTree(table, "testTable()", 500);
    renderRoot(root);
  }
View Full Code Here

   * selectedIndex should not change:
   */
  public void testDecodeNothing()
  {

    CoreTable table = _createComponent();
    _doDecode(table, -1);
    _testSelection(table, _INIT_SELECTION);
  }
View Full Code Here

  }

  private CoreTable _createComponent()
  {
    String[] data = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
    CoreTable table = new TestTable();
    table.setId(_TABLE_ID);
    table.setValue(data);
    table.setRowIndex(_INIT_SELECTION);
    table.getSelectedRowKeys().add();
    table.setRowIndex(-1);
    table.setRowSelection("single");
    return table;
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.core.data.CoreTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.