Examples of TableRow


Examples of org.springframework.xd.shell.util.TableRow

    List<TableRow> rows = modules.getRows();
    assertThat(rows, hasSize(2));

    Iterator<TableRow> iterator = rows.iterator();
    TableRow firstRow = iterator.next();
    assertThat(firstRow.getValue(1), equalTo("    jms"));
    assertThat(firstRow.getValue(2), equalTo("    aggregator"));
    assertThat(firstRow.getValue(3), equalTo("    avro"));

    TableRow secondRow = iterator.next();
    assertThat(secondRow.getValue(1), equalTo("(c) myfile"));
    assertThat(secondRow.getValue(2), equalTo(""));
    assertThat(secondRow.getValue(3), equalTo(""));
  }
View Full Code Here

Examples of org.springframework.yarn.support.console.TableRow

        .addHeader(6, new TableHeader("FinishTime"))
        .addHeader(7, new TableHeader("State"))
        .addHeader(8, new TableHeader("FinalStatus"));

    for (ApplicationReport a : applications) {
      final TableRow row = new TableRow();
      row.addValue(1, a.getApplicationId().toString())
          .addValue(2, a.getUser())
          .addValue(3, a.getName())
          .addValue(4, a.getQueue())
          .addValue(5, DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(
              new Date(a.getStartTime())))
View Full Code Here

Examples of org.springmodules.xt.ajax.component.TableRow

   
    public AjaxResponse addEmployee(AjaxActionEvent event) {
        Collection<IEmployee> employees = this.store.getEmployees();

        // Create the row, with a given rowId:
        TableRow row = new TableRow();
        String rowId = Long.toString(new Date().getTime());
        row.addAttribute("id", rowId);

        // Create the employee selection box (binding to employees) and add it to a column:
        BindStatusHelper helper = new BindStatusHelper("command.employees");
        Select selectionList = new Select(helper.getStatusExpression());
        for (IEmployee emp : employees) {
            Option o = new Option(emp, "matriculationCode", "surname");
            selectionList.addOption(o);
        }
        TableData td1 = new TableData(selectionList);

        // Create the remove button and add it to another column:
        InputField removeButton = new InputField("toRemove", "Remove", InputField.InputType.BUTTON);
        TableData td2 = new TableData(removeButton);

        // Add the two columns to the row:
        row.addTableData(td1);
        row.addTableData(td2);
       
        // Add an onclick event to the remove button, which executes a client side javascript function for actually
        // removing the row:
        removeButton.addAttribute("onclick", new StringBuilder("removeRow('").append(rowId).append("');").toString());
View Full Code Here

Examples of org.springmodules.xt.ajax.component.TableRow

        highlightAction.addOption("duration", 0.5);
       
        // Create the components to render (a list of html table rows):
        List rows = new LinkedList();
        for(IEmployee emp : employees) {
            TableRow row = new TableRow(emp, new String[]{"firstname", "surname", "matriculationCode"}, null);
            rows.add(row);
        }
        // Create an ajax action for replacing the old table body content, inserting these new rows:
        ReplaceContentAction replaceRowsAction = new ReplaceContentAction("employees", rows);
       
View Full Code Here

Examples of org.zanata.util.TableRow

                .sendKeys(personName);

        log.info("Click search button");
        waitForWebElement(addUserSearchButton).click();

        TableRow firstRow = tryGetFirstRowInSearchPersonResult(personName);

        final String personUsername = firstRow.getCellContents()
                .get(SEARCH_RESULT_PERSON_COLUMN);
        log.info("Username to be added: {}", personUsername);
        log.info("Set checked as translator");
        Checkbox.of(firstRow.getCells()
                .get(ISTRANSLATOR_COLUMN)
                .findElement(By.tagName("input")))
                .check();
        log.info("Click Add Selected");
        waitForWebElement(addSelectedButton).click();
View Full Code Here

Examples of pivot.wtk.content.TableRow

                // Populate table
                ArrayList<Object> tableData = new ArrayList<Object>();

                for (int i = 0; i < 10000; i++) {
                    TableRow tableRow = new TableRow();

                    tableRow.put("i", i);
                    tableRow.put("a", (int)Math.round(Math.random() * 10));
                    tableRow.put("b", (int)Math.round(Math.random() * 100));
                    tableRow.put("c", (int)Math.round(Math.random() * 1000));
                    tableRow.put("d", (int)Math.round(Math.random() * 10000));

                    tableData.add(tableRow);
                }

                sortableTableView.setTableData(tableData);
View Full Code Here

Examples of remote.service.motedata.client.TableRow

      }
      return c;
    }
    else if (TableRow.class.isAssignableFrom(value.getClass()))
    {
      TableRow tableRow = (TableRow)value;
      Table table = tableRow.getTable();
      TableHeader header = table.getHeader();
      String[] headers = {"",""};
      Object[][] data= new Object[header.countVisible()][2];
      int j = 0;
      for ( int i=0; i < table.columns(); i++ )
      {
        if (header.isVisible(i))
        {
          data[j][0] = header.getTitle(i);
          data[j][1] = tableRow.get(i);
          j++;
        }
      }
      JTable jTable = new JTable(data,headers);
      jTable.setShowGrid(false);
View Full Code Here

Examples of remote.service.motedata.client.TableRow

  {
    try
    {
      Table moteInfoTable = MoteDataWrapper.getMoteTable();
      int colIndex = moteInfoTable.getHeader().indexOf("mote_id");
      TableRow moteInfoRow = moteInfoTable.lookup(colIndex,new Long(mote.getId()));
      MoteControlRow moteControl = new MoteControlRow(mote,true,moteInfoRow,this);
    /*  LedsListenerWrapper ledsobs = new LedsListenerWrapper(this,mote);
      moteControl.getMoteLeds().addListener(ledsobs);*/
      this.moteControlMap.put(mote,moteControl);
      mote.getStatus().addChangeListener(this);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.