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

25
LINES

< > BotCompany Repo | #1001756 // Get Selected Table Line Helper Bot (searches current VM)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (878L/7K/21K).

1  
!752 // new translator
2  
3  
m {
4  
  p {
5  
    addToMultiPortSilent("Get Selected Table Line Helper Bot.");
6  
  }
7  
  
8  
  static S answer(S s) {
9  
    if (match3("get selected table line", s)) {
10  
      Component focus = getFocusOwner();
11  
      if (!(focus instanceof JTable)) ret "no table";
12  
      JTable tbl = cast focus;
13  
      ret structure(getSelectedLine(tbl));
14  
    }
15  
    
16  
    if (match3("get selected table line as map", s)) {
17  
      Component focus = getFocusOwner();
18  
      if (!(focus instanceof JTable)) ret "no table";
19  
      JTable tbl = cast focus;
20  
      ret structure(getSelectedLineAsMap(tbl));
21  
    }
22  
    
23  
    ret null;
24  
  }
25  
}

Author comment

Began life as a copy of #1001734

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001756
Snippet name: Get Selected Table Line Helper Bot (searches current VM)
Eternal ID of this version: #1001756/1
Text MD5: d7326d6830338436bc3062c9a512ff8a
Transpilation MD5: c4b7bf48491511c5f8f36171ca993538
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-21 18:42:11
Source code size: 642 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 564 / 972
Referenced in: [show references]