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

10
LINES

< > BotCompany Repo | #1006616 // conceptFromComboBox

JavaX fragment (include)

static <A extends Concept> A conceptFromComboBox(JComboBox cb, Class<A> cc) {
  ret conceptFromComboBox(cb, mainConcepts, cc);
}

static <A extends Concept> A conceptFromComboBox(JComboBox cb, Concepts concepts, Class<A> cc) {
  S s = getTextFromComboBox(cb);
  if (empty(s)) null;
  long id = parseFirstLong(s);
  ret getConcept(concepts, cc, id);
}

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: 414 / 455
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)