@ExtDirectMethod
 public String method12(Row aRow) {
   assertThat(aRow).isNotNull();
   assertThat(aRow.getId()).isEqualTo(104);
   assertThat(aRow.getName()).isEqualTo("myRow");
   assertThat(aRow.isAdmin()).isEqualTo(true);
   assertThat(aRow.getSalary().toPlainString()).isEqualTo("100.45");
   return aRow.toString();
 }
 @ExtDirectMethod(value = ExtDirectMethodType.SIMPLE_NAMED, group = "named")
 public String method9(Row aRow) {
   assertThat(aRow).isNotNull();
   assertThat(aRow.getId()).isEqualTo(104);
   assertThat(aRow.getName()).isEqualTo("myRow");
   assertThat(aRow.isAdmin()).isEqualTo(true);
   assertThat(aRow.getSalary().toPlainString()).isEqualTo("100.45");
   return aRow.toString();
 }
 public Object getValueAt(int rowIndex, int columnIndex) {
   switch (columnIndex) {
     case 0:
       return row.getId();
     case 1:
       return row.getVal();
     case 2:
       return row.getExtra();
   }
   return null;
 }
  public void testattachFileRow() throws SmartsheetException, IOException {
    // add rows
    Row row = addRows(sheetId);
    rowId = row.getId();

    // attach file to row
    Attachment attachment =
        smartsheet
            .sheetResources()
            .rowResources()
            .attachmentResources()
            .attachFile(sheetId, rowId, file, "text/plain");
    testGetAttachmentRow(attachment.getId());
  }
Beispiel #5
0
 public Object getRowidObject() {
   return currentRow == null ? null : Long.valueOf(currentRow.getId());
 }
Beispiel #6
0
 public long getRowid() {
   return currentRow == null ? 0 : currentRow.getId();
 }