ifndef Android sbool setText_opt = true; // optimize by calling getText first static <A extends JTextComponent> A setText(A c, O text) { setText((JComponent) c, text); ret c; } static <A extends JComboBox> A setText(final A c, O text) { // only for editable combo boxes at this point fS s = strUnnull(text); swing { c.getEditor().setItem(s); } ret c; } svoid setText(JLabel c, O text) { setText((JComponent) c, text); } static JButton setText(JButton c, O text) { setText((JComponent) c, jlabel_textAsHTML_center_ifNeeded(strUnnull(text))); ret c; } static <A extends JComponent> A setText(final A c, O text) { if (c == null) null; final S s = strUnnull(text); swing { if (!setText_opt || neq(callOpt(c, "getText"), s)) call(c, "setText", s); } ret c; } endifndef ifdef Android svoid setText() {} // dummy endifdef
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