static Map<S, O> tableLineAsRawMap(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++) map.put(tbl.getModel().getColumnName(i), tbl.getModel().getValueAt(row, i)); ret map; } ret null; }
Began life as a copy of #1003835
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005991 |
Snippet name: | tableLineAsRawMap - keeps objects as they are (e.g. images) |
Eternal ID of this version: | #1005991/1 |
Text MD5: | b303dfe4c127fab8f2ba88b5663225b1 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-13 23:57:55 |
Source code size: | 368 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 532 / 553 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |