Examples of removeRow()


Examples of com.ponysdk.ui.server.basic.PFlexTable.removeRow()

        final PButton button = new PButton("Remove last row");
        button.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                table.removeRow(table.getRowCount() - 1);
            }
        });

        bodyLayout.add(button);
        bodyLayout.add(table);
View Full Code Here

Examples of com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider.removeRow()

      (TableRowGroup) handlerCtx.getInputValue("tableRowGroup");
  RowKey[] keys = (RowKey []) handlerCtx.getInputValue("rowKeys");
        MultipleListDataProvider dp =
      (MultipleListDataProvider) trg.getSourceData();
  for (RowKey key : keys) {
      dp.removeRow(key);
  }
    }

    /**
     *  <p> This handler commits the changes to a <code>TableRowGroup</code>'s
View Full Code Here

Examples of com.sun.star.awt.grid.XMutableGridDataModel.removeRow()

        // the active cell
        columnModel.removeColumn( columnCount - 1 );
        assertEquals( "removed the last and active column, active column was not adjusted!",
            columnCount - 2, gridControl.getCurrentColumn() );
        // same holds for rows
        dataModel.removeRow( rowCount - 1 );
        assertEquals( "removed the last and active row, active row was not adjusted!",
            rowCount - 2, gridControl.getCurrentRow() );
    }

    // -----------------------------------------------------------------------------------------------------------------
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.FreeformQueryDelegate.removeRow()

    public void commit_freeformRemovedItem_shouldBeRemovedFromDB()
            throws SQLException {
        FreeformQueryDelegate delegate = EasyMock
                .createMock(FreeformQueryDelegate.class);
        EasyMock.expect(
                delegate.removeRow(EasyMock.isA(Connection.class),
                        EasyMock.isA(RowItem.class)))
                .andAnswer(new IAnswer<Boolean>() {
                    @Override
                    public Boolean answer() throws Throwable {
                        Connection conn = (Connection) EasyMock
View Full Code Here

Examples of com.vaadin.ui.GridLayout.removeRow()

        grid.addComponent(new Label("Col1"));
        grid.addComponent(new Label("Col2"));

        try {
            // Removing the last row in the grid
            grid.removeRow(0);
        } catch (IllegalArgumentException iae) {
            // Removing the last row should not throw an
            // IllegalArgumentException
            fail("removeRow(0) threw an IllegalArgumentExcetion when removing the last row");
        }
View Full Code Here

Examples of com.vaadin.ui.GridLayout.removeRow()

        Button removeRowBtn = new Button("Remove row",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        layout.removeRow(0);
                    }
                });
        addComponent(removeRowBtn);
    }
View Full Code Here

Examples of edu.isi.karma.rep.Table.removeRow()

        flag |= addJSONObjectValues((JSONObject)value, worksheet, nestedHTable, factory, r, h.getId());
      if (value instanceof JSONArray)
        flag |= addJSONArrayValues((JSONArray) value, worksheet, nestedHTable, factory,r, h.getId());
    }
    if (!flag)
      nestedTable.removeRow(r);
    return flag;
  }

  private boolean addValues(Node node, String value, RepFactory factory, Table table) {
    Worksheet worksheet = factory.getWorksheet(worksheetId);
View Full Code Here

Examples of javax.swing.table.DefaultTableModel.removeRow()

    final int[] rows = table.getSelectedRows();
    removeLineFromPlayList(Settings.getLastPlayList(),
        (String) table.getValueAt(rows[0], 7));

    for (int i = 0; i < rows.length; i++) {
      model.removeRow(rows[i] - i);
    }

  }

  public static void resetDiscoInterface() {
View Full Code Here

Examples of javax.swing.table.DefaultTableModel.removeRow()

              rows[i] += addCount;
            }
          }
        }
        for (int i = rows.length - 1; i >= 0; i--) {
          model.removeRow(rows[i]);
        }
      }
    }
  }
}
View Full Code Here

Examples of javax.swing.table.DefaultTableModel.removeRow()

        levelModel.addRow(new Object[] { "", null });
    }//GEN-LAST:event_levelTablePlusActionPerformed

    private void levelTableMinusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_levelTableMinusActionPerformed
        DefaultTableModel levelModel = (DefaultTableModel) levelTable.getModel();
        levelModel.removeRow(levelTable.getSelectedRow());
    }//GEN-LAST:event_levelTableMinusActionPerformed

    private class LoggerTableModel extends DefaultTableModel {

        private Map<String, Level> origLevels;
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.