Libraryless. Click here for Pure Java version (14388L/100K).
1 | !7 |
2 | |
3 | sclass SnippetInfo extends DynSCP {
|
4 | S id, title; |
5 | int type; |
6 | |
7 | void update {
|
8 | S s = dm_getInterestingString(); |
9 | if (isSnippetID(s) && (setField(id := s) || title == null)) {
|
10 | setField(title := getSnippetTitle(s)); |
11 | setField(type := getSnippetType(s)); |
12 | revisualize2(); |
13 | } |
14 | } |
15 | |
16 | JComponent visualize2() {
|
17 | ret jMultiLineLabel(id == null ? "" |
18 | : "ID: " + id + "\n" |
19 | + "Title: " + title + "\n" |
20 | + "Type: " + type); |
21 | } |
22 | } |
Began life as a copy of #1015930
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016265 |
| Snippet name: | Snippet Info [DynModule] |
| Eternal ID of this version: | #1016265/7 |
| Text MD5: | 278be22a26bf74a6c09f7260c5c14fad |
| Transpilation MD5: | 5042a4a9c7bc7e7c3ef2fa58c1217c9b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-12 20:12:24 |
| Source code size: | 492 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 651 / 820 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |