Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1007225 // rawTableLineAsMap

JavaX fragment (include)

static Map<S, O> rawTableLineAsMap(JTable tbl, int row) {
  if (row >= 0 && row < tbl.getModel().getRowCount()) {
    Map<S, O> map = litorderedmap(); // keep order of columns
    for (int i = 0; i < tbl.getModel().getColumnCount(); i++)
      mapPut(map, tbl.getModel().getColumnName(i),
        tbl.getModel().getValueAt(row, i));
    ret map;
  }
  ret null;
}

Author comment

Began life as a copy of #1003835

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007225
Snippet name: rawTableLineAsMap
Eternal ID of this version: #1007225/4
Text MD5: 82c2a9ed0bee8823b9922051b7f16549
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-12 15:31:56
Source code size: 372 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 578
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)