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

6
LINES

< > BotCompany Repo | #1027316 // dm_intTextField - JTextField bound to module int field (both ways)

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

Libraryless. Click here for Pure Java version (10264L/72K).

1  
static JTextField dm_intTextField(S field) {
2  
  ret jLiveValueTextField_bothWays(
3  
    dm_fieldLiveValueWithConversions(field, S.class,
4  
      func(Int i) -> S { strOrEmpty(i) },
5  
      func(S s) -> Int { parseInt(s) }));
6  
}

Author comment

Began life as a copy of #1017128

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027316
Snippet name: dm_intTextField - JTextField bound to module int field (both ways)
Eternal ID of this version: #1027316/8
Text MD5: 0d980fa043520658d7a5d1e45d36df3e
Transpilation MD5: bb6aa72b63df51031f63f836ee73e161
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-02 16:29:29
Source code size: 224 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 211 / 324
Version history: 7 change(s)
Referenced in: [show references]