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).

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

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: 210 / 323
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)