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

10
LINES

< > BotCompany Repo | #1006616 // conceptFromComboBox

JavaX fragment (include)

1  
static <A extends Concept> A conceptFromComboBox(JComboBox cb, Class<A> cc) {
2  
  ret conceptFromComboBox(cb, mainConcepts, cc);
3  
}
4  
5  
static <A extends Concept> A conceptFromComboBox(JComboBox cb, Concepts concepts, Class<A> cc) {
6  
  S s = getTextFromComboBox(cb);
7  
  if (empty(s)) null;
8  
  long id = parseFirstLong(s);
9  
  ret getConcept(concepts, cc, id);
10  
}

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: #1006616
Snippet name: conceptFromComboBox
Eternal ID of this version: #1006616/1
Text MD5: debf1d2b1efbb4864bd8bd8df15d44e9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-22 00:58:18
Source code size: 359 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 456
Referenced in: [show references]