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

!759

// TODO: licensed

mainPackage loadableUtils
mainClassName utils

set flag AllPublic.

import static x30_pkg.x30_util.VF1;

import x30_pkg.x30_util.DynamicObject; // BRAVE
static ThreadLocal<Boolean> DynamicObject_loading = x30_pkg.x30_util.DynamicObject_loading;

!include once #1001372 // direct nohupJavax 

!include once #1016530 // DynamicMethods
!include once #1011150 // BetterLabel
!include once #1005319 // SingleComponentPanel
!include once #1003519 // Snippet
!include once #1004247 // BWImage
!include once #1007582 // Cache

!include once #1015892 // DynModule
!include once #1016205 // DynPrintLog
!include once #1016978 // DynObjectTable
!include once #1018873 // DynImageSurface 
!include once #1015977 // DynCalculatedList

please include class SimpleCRUD.
please include class IntRange.
please include class LongRange.
please include class GlobalID.
please include class SynchronizedArrayList.
please include class SecretValue.

// We now also include HTML cruds because they're so useful
please include class HCRUD.
please include class HCRUD_Concepts.
please include class DefaultValueConverterForField.

please include function rethrow.
please include function isAWTThread.
please include function _handleError.
please include function call_checkArgs.
please include function fail.
please include function multiMapPut.
please include function endsWithLetterOrDigit.
please include function getExceptionCause.
please include function isAndroid.
please include function isHeadless.
please include function join.
please include function joinWithSpace.
please include function newWeakHashMap.
please include function javaTok.
please include function print_append.
please include function get.
please include function getOpt.
please include function getOpt_raw.
please include function set.
please include function setOpt.
please include function setOpt_raw.
please include function callF.
please include function call.
please include function callOpt.
please include function fixNewLines.
please include function uniqueString.
please include function doEvery.
please include function doLater.
please include function hasBot.
please include function nohupJavax.
please include function jlabel.
please include function newTypeWriterTextArea.
please include function struct.
please include function sfu.
please include function loadPageSilentlyWithTimeout.
please include function loadPageWithUserAgent.
please include function db.
please include function cget.
please include function cset.
please include function print.
please include function print_byThread.
please include function print_byThread_dontCreate.
please include function _threadInfo.
please include function _threadInheritInfo.
please include function _threadInfo_addMakerAndRetriever.
please include function match.
please include function getField.
please include function fieldType.
please include function format3.
please include function vm_generalIdentityHashSet.
please include function vm_generalHashMap.
please include function vm_generalWeakSubMap.
please include function bindToComponent.
please include function loadPage.
please include function loadPage_utf8.
please include function loadSnippet.
please include function loadSnippetQuietly.
please include function sendToLocalBot.
please include function sendToLocalBotOpt.
please include function sendToLocalBotQuietly.
please include function sexyTableWithoutDrag.
please include function tablePopupMenu.
please include function tablePopupMenuFirst.
please include function componentPopupMenu.
please include function componentPopupMenu_top.
please include function componentPopupMenu_getEvent.
please include function dm_current_generic.
please include function dm_current_mandatory_generic.
please include function withDBLock.
please include function makePopupMenuConditional.
please include function dynamicObjectIsLoading.
please include function interceptPrintInThisThread.
please include function rowSorter_setComparators.

sO creator() {
  ret callOpt(assertNotNull("No real MC", realMC_tl())!, 'creator);
}

sS programID;

sS getProgramID() {
  O mc = realMC_tl()!;
  if (mc != null) ret getProgramID(mc);
  ret nempty(programID) ? formatSnippetIDOpt(programID) : "?";
}

ifndef LeanMode
// TODO: ask JavaX instead
static String getProgramID(Class c) {
  S id = (String) getOpt(c, "programID");
  if (nempty(id))
    ret formatSnippetID(id);
  ret "?";
}
endifndef

static String getProgramID(Object o) {
  ret getProgramID(getMainClass(o));
}

static Concepts db_mainConcepts() {
  ret (Concepts) call(assertNotNull("No real MC", realMC()), 'db_mainConcepts);
}

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: 1407 / 176144
Version history: 80 change(s)
Referenced in: #1019858 - Test hotwireWithParents [OK!]
#1025218 - IntegralImage as src lib
#1025824 - DynTalkBot2 as src lib
#1029874 - DynNewBot2 as loadable util
#1029927 - Loadable Utils v2 (old)