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

144
LINES

< > BotCompany Repo | #1019849 // Loadable Utils

JavaX module (desktop) [tags: use-pretranspiled]

Download Jar. Uses 108K of libraries. Click here for Pure Java version (34735L/194K).

1  
!759
2  
3  
// TODO: licensed
4  
5  
mainPackage loadableUtils
6  
mainClassName utils
7  
8  
set flag AllPublic.
9  
10  
import static x30_pkg.x30_util.VF1;
11  
12  
import x30_pkg.x30_util.DynamicObject; // BRAVE
13  
static ThreadLocal<Boolean> DynamicObject_loading = x30_pkg.x30_util.DynamicObject_loading;
14  
15  
!include once #1001372 // direct nohupJavax 
16  
17  
!include once #1016530 // DynamicMethods
18  
!include once #1011150 // BetterLabel
19  
!include once #1005319 // SingleComponentPanel
20  
!include once #1003519 // Snippet
21  
!include once #1004247 // BWImage
22  
!include once #1007582 // Cache
23  
24  
!include once #1015892 // DynModule
25  
!include once #1016205 // DynPrintLog
26  
!include once #1016978 // DynObjectTable
27  
!include once #1018873 // DynImageSurface 
28  
!include once #1015977 // DynCalculatedList
29  
30  
please include class SimpleCRUD.
31  
please include class IntRange.
32  
please include class LongRange.
33  
please include class GlobalID.
34  
please include class SynchronizedArrayList.
35  
please include class SecretValue.
36  
37  
// We now also include HTML cruds because they're so useful
38  
please include class HCRUD.
39  
please include class HCRUD_Concepts.
40  
please include class DefaultValueConverterForField.
41  
42  
please include function rethrow.
43  
please include function isAWTThread.
44  
please include function _handleError.
45  
please include function call_checkArgs.
46  
please include function fail.
47  
please include function multiMapPut.
48  
please include function endsWithLetterOrDigit.
49  
please include function getExceptionCause.
50  
please include function isAndroid.
51  
please include function isHeadless.
52  
please include function join.
53  
please include function joinWithSpace.
54  
please include function newWeakHashMap.
55  
please include function javaTok.
56  
please include function print_append.
57  
please include function get.
58  
please include function getOpt.
59  
please include function getOpt_raw.
60  
please include function set.
61  
please include function setOpt.
62  
please include function setOpt_raw.
63  
please include function callF.
64  
please include function call.
65  
please include function callOpt.
66  
please include function fixNewLines.
67  
please include function uniqueString.
68  
please include function doEvery.
69  
please include function doLater.
70  
please include function hasBot.
71  
please include function nohupJavax.
72  
please include function jlabel.
73  
please include function newTypeWriterTextArea.
74  
please include function struct.
75  
please include function sfu.
76  
please include function loadPageSilentlyWithTimeout.
77  
please include function loadPageWithUserAgent.
78  
please include function db.
79  
please include function cget.
80  
please include function cset.
81  
please include function print.
82  
please include function print_byThread.
83  
please include function print_byThread_dontCreate.
84  
please include function _threadInfo.
85  
please include function _threadInheritInfo.
86  
please include function _threadInfo_addMakerAndRetriever.
87  
please include function match.
88  
please include function getField.
89  
please include function fieldType.
90  
please include function format3.
91  
please include function vm_generalIdentityHashSet.
92  
please include function vm_generalHashMap.
93  
please include function vm_generalWeakSubMap.
94  
please include function bindToComponent.
95  
please include function loadPage.
96  
please include function loadPage_utf8.
97  
please include function loadSnippet.
98  
please include function loadSnippetQuietly.
99  
please include function sendToLocalBot.
100  
please include function sendToLocalBotOpt.
101  
please include function sendToLocalBotQuietly.
102  
please include function sexyTableWithoutDrag.
103  
please include function tablePopupMenu.
104  
please include function tablePopupMenuFirst.
105  
please include function componentPopupMenu.
106  
please include function componentPopupMenu_top.
107  
please include function componentPopupMenu_getEvent.
108  
please include function dm_current_generic.
109  
please include function dm_current_mandatory_generic.
110  
please include function withDBLock.
111  
please include function makePopupMenuConditional.
112  
please include function dynamicObjectIsLoading.
113  
please include function interceptPrintInThisThread.
114  
please include function rowSorter_setComparators.
115  
116  
sO creator() {
117  
  ret callOpt(assertNotNull("No real MC", realMC_tl())!, 'creator);
118  
}
119  
120  
sS programID;
121  
122  
sS getProgramID() {
123  
  O mc = realMC_tl()!;
124  
  if (mc != null) ret getProgramID(mc);
125  
  ret nempty(programID) ? formatSnippetIDOpt(programID) : "?";
126  
}
127  
128  
ifndef LeanMode
129  
// TODO: ask JavaX instead
130  
static String getProgramID(Class c) {
131  
  S id = (String) getOpt(c, "programID");
132  
  if (nempty(id))
133  
    ret formatSnippetID(id);
134  
  ret "?";
135  
}
136  
endifndef
137  
138  
static String getProgramID(Object o) {
139  
  ret getProgramID(getMainClass(o));
140  
}
141  
142  
static Concepts db_mainConcepts() {
143  
  ret (Concepts) call(assertNotNull("No real MC", realMC()), 'db_mainConcepts);
144  
}

Author comment

Began life as a copy of #1016582

download  show line numbers  debug dex  old transpilations   

Travelled to 126 computer(s): abdkfuuuzlrh, aijbjpqedjjc, axwnutwaxmlh, ayivmpnvhhik, bhatertpkbcr, btvdylkaqoum, cakrgxpiokeh, cecjewutwwoy, cfanbtxnzgsh, cfunsshuasjs, cnewtswnjcpl, cvvynrlkszfz, cztyabzxhris, dbzfplsxganw, djztyncnmsck, dloekvbwinie, dmudagwnpltw, dpqxeycirhfy, efpmhuupphur, eiwvkucnqnjw, ekrmjmnbrukm, elmgxqgtpvxh, entxvcegmwzr, fahqjvhjlwxd, fbfmidhxkvnp, fieshchysztm, fpbaligaclcw, fzcpzdstiiyc, fzvnojzqxaxz, gfcwnmfwchyu, gjtlkbvenryc, gwrvuhgaqvyk, hhahivfpefrf, hhusmcjygydo, hpgrupgrauku, hwgbvbltjbed, igbjgfnkunsb, ilgbwaciyqrp, ilvjycmexeho, inmhkjdpuplp, ippswpntdvcc, irmadwmeruwu, ishqpsrjomds, iveijnkanddl, ivooqtyprxgh, ixlofvyxkrco, jcllbfdqhrgy, jozkyjcghlvl, jsbwwwyklurv, kanivhkedcyu, kncoksjjbkvx, kqtgfpckfxfy, ktbwgngfmivo, lastaxpxduqo, lhvziyvqzfhp, lnbujpyubztb, lqnftawlhpir, lqtupojvcdmc, mikhejdllvsw, mowyntqkapby, mpkoxxqdwzpp, mplzucoataeu, mqqgnosmbjvj, mqsvbyillbrs, nazvggbglmsf, nphwexcmpunv, nrkwhpbvqrop, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, pcsjzfqafodr, podlckwnjdmb, poggnhebuplf, pqlutkgzgdaw, preudubyouod, pyentgdyhuwx, pzhvpgtvlbxg, qgvkllrfbgaw, qmtsvidgarql, qnjxhkjyztuv, qqauijjrzgml, qsqiayxyrbia, qtdedymdshqb, quptcaucixah, rjpzpeejafvs, sekmkcqzslie, skddmizpvtmy, snaazhdonpnp, svlzptffahhm, tehgtemmtmqf, tosptxptpfyt, tpturoigtvwk, tslmcundralx, tvejysmllsmz, tvglmbzyvdpz, twycvekltchr, ubadkicnhrcp, uelavcdoioby, uextrqwqhvpn, uhjabitqdyqv, unoaxrwscvea, uwytdfmwznxb, uxrcbidwleeo, vdksuejmluqn, veepotesqksf, vouqrxazstgt, vtoaovihiybt, vtpnfdczhzww, vyglienxolln, vzdtmrzilvqm, whxojlpjdney, wnsclhtenguj, wpzdwgqboxjy, wtczhwjvfteg, xfddqsrefgvo, xjedlqssgqex, xjxzojmxrrua, xkfnxevppnqj, xrpafgyirdlv, xvimeffiorjm, xwhgvpbsylsu, xylnpskcbyhy, zmkyvqxnmjhp, znvaruejrphg, zyhkwdvyqfnd, zznhmpvsaqzk

No comments. add comment

Snippet ID: #1019849
Snippet name: Loadable Utils
Eternal ID of this version: #1019849/81
Text MD5: 067161b7917439c8f1cd6ead00a225d9
Transpilation MD5: b0e7617943062c3dfb7b409cde626025
Author: stefan
Category: javax
Type: JavaX module (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-28 13:46:11
Source code size: 4765 bytes / 144 lines
Pitched / IR pitched: No / No
Views / Downloads: 1408 / 176150
Version history: 80 change(s)
Referenced in: [show references]