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

20
LINES

< > BotCompany Repo | #1016895 // DynTableWithSearcher

JavaX fragment (include)

1  
abstract sclass DynTableWithSearcher extends DynTable {
2  
  transient TableSearcher tableSearcher;
3  
  
4  
  JComponent visualize() {
5  
    tableSearcher = tableWithSearcher2((JTable) super.visualize());
6  
    ret tableSearcher.panel;
7  
  }
8  
  
9  
  void unvisualize {
10  
    super.unvisualize();
11  
    tableSearcher = null;
12  
  }
13  
  
14  
  // API
15  
  
16  
  void setSearchTerm(S s) {
17  
    if (tableSearcher != null)
18  
      setText(tableSearcher.tfInput, s);
19  
  }
20  
}

Author comment

Began life as a copy of #1016065

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016895
Snippet name: DynTableWithSearcher
Eternal ID of this version: #1016895/5
Text MD5: 7668a5070ef5c100562f37480e09faed
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-19 15:44:25
Source code size: 446 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 847
Version history: 4 change(s)
Referenced in: [show references]