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

10
LINES

< > BotCompany Repo | #1033768 // initMetaOfJComponent

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

Transpiled version (4762L) is out of date.

static IMeta initMetaOfJComponent(JComponent c) {
  if (c == null) null;
  IMeta meta = cast c.getClientProperty(IMeta);
  if (meta == null)
    c.putClientProperty(IMeta, meta = new Meta);
  ifdef debugComponentMeta
    print("meta of " + c + ": " + meta);
  endifdef
  ret meta;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033768
Snippet name: initMetaOfJComponent
Eternal ID of this version: #1033768/4
Text MD5: 12b336408a78a8b907da6206f3c9fb52
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 18:49:33
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 244
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033769 - metaOfJComponent - doesn't initialize