Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 3
0
 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());
  }
Exemplo n.º 5
0
 public Object getRowidObject() {
   return currentRow == null ? null : Long.valueOf(currentRow.getId());
 }
Exemplo n.º 6
0
 public long getRowid() {
   return currentRow == null ? 0 : currentRow.getId();
 }