Uses 911K of libraries. Click here for Pure Java version (3234L/16K).
!7 cmodule Variable > DynBigNumber { transient JLabel lblType; start { doPersist(); } void makeTexts() { super.makeTexts(); setModuleName(nempty(description) ? "Variable " + quote(description) : "Unnamed Variable"); } bool setValue(O o) { if (!super.setValue(o)) false; ret true with setText(lblType, className(o)); } afterVisualize { replaceComponent(label, func(Component label) -> Component { centerAndSouthWithMargin(label, lblType = jRightAlignedLabel(className(value))) }); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022717 |
Snippet name: | Variable for chat bot |
Eternal ID of this version: | #1022717/11 |
Text MD5: | 1d7d70b9cd2a268730d667b7829d68d0 |
Transpilation MD5: | 90f8fba3cd70337c2a76826c61dbb3cb |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-01 17:37:03 |
Source code size: | 564 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 650 |
Version history: | 10 change(s) |
Referenced in: | [show references] |