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

10
LINES

< > BotCompany Repo | #1007225 // rawTableLineAsMap

JavaX fragment (include)

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

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: 532 / 579
Version history: 3 change(s)
Referenced in: [show references]