1 | !7 |
2 | |
3 | abstract sclass DynPrintLogAndButtons > DynPrintLog { |
4 | transient SingleComponentPanel buttons; |
5 | |
6 | visualize { |
7 | ret centerAndSouth(super.visualize(), buttons = singleComponentPanel()); |
8 | } |
9 | |
10 | void unvisualize { |
11 | zeroAllFieldsOfTypeExcept(this, Component, 'buttons); |
12 | } |
13 | |
14 | start { |
15 | // keep this permanently to allow setting buttons in hidden module |
16 | buttons = singleComponentPanel(); |
17 | } |
18 | |
19 | void hideButtons { |
20 | buttons.setComponent(null); |
21 | } |
22 | |
23 | void showButtons(O... params) { |
24 | buttons.setComponent(withMargin(centeredButtonsOrSingleComponent(params))); |
25 | } |
26 | } |
Began life as a copy of #1019363
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019370 |
Snippet name: | DynPrintLogAndButtons |
Eternal ID of this version: | #1019370/3 |
Text MD5: | 157f8f17759502d0afbd7cacd12a9add |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-04 16:31:52 |
Source code size: | 613 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 892 |
Version history: | 2 change(s) |
Referenced in: | [show references] |