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

11
LINES

< > BotCompany Repo | #1033771 // testMetaOfJComponent (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6707L/38K).

set flag debugComponentMeta.

svoid testMetaOfJComponent() {
  JLabel l = jlabel("bla");
  metaPut(l, I := "am God");
  assertEqualsVerbose(metaGet I(l), "am God");
  metaPut(l, You := "are me");
  assertEqualsVerbose(metaGet I(l), "am God");
  assertEqualsVerbose(metaGet You(l), "are me");
  assertEqualsVerbose(metaGet Unknown(l), null);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033771
Snippet name: testMetaOfJComponent (OK)
Eternal ID of this version: #1033771/3
Text MD5: c2f4de1bd94080253752be9ddc5932b4
Transpilation MD5: 3ff1f3ac8b6b8f87747d27b45bada31f
Author: stefan
Category: javax / reasoning
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-02 19:02:03
Source code size: 352 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 212
Version history: 2 change(s)
Referenced in: [show references]