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.

1  
static IMeta initMetaOfJComponent(JComponent c) {
2  
  if (c == null) null;
3  
  IMeta meta = cast c.getClientProperty(IMeta);
4  
  if (meta == null)
5  
    c.putClientProperty(IMeta, meta = new Meta);
6  
  ifdef debugComponentMeta
7  
    print("meta of " + c + ": " + meta);
8  
  endifdef
9  
  ret meta;
10  
}

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: 139 / 246
Version history: 3 change(s)
Referenced in: [show references]