package keymon.lat.medicomed; import anywheresoftware.b4a.BA; import anywheresoftware.b4a.B4AClass; import anywheresoftware.b4a.BALayout; import anywheresoftware.b4a.debug.*; public class b4xlongtexttemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{ private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { ba = new BA(_ba, this, htSubs, "keymon.lat.medicomed.b4xlongtexttemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; } } if (BA.isShellModeRuntimeCheck(ba)) this.getClass().getMethod("_class_globals", keymon.lat.medicomed.b4xlongtexttemplate.class).invoke(this, new Object[] {null}); else ba.raiseEvent2(null, true, "class_globals", false); } public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; public b4a.example3.customlistview _customlistview1 = null; public Object _text = null; public b4a.example.dateutils _dateutils = null; public keymon.lat.medicomed.main _main = null; public keymon.lat.medicomed.starter _starter = null; public keymon.lat.medicomed.subs _subs = null; public keymon.lat.medicomed.appupdater _appupdater = null; public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null; public keymon.lat.medicomed.tracker _tracker = null; public keymon.lat.medicomed.newinst2 _newinst2 = null; public keymon.lat.medicomed.b4xpages _b4xpages = null; public keymon.lat.medicomed.b4xcollections _b4xcollections = null; public keymon.lat.medicomed.httputils2service _httputils2service = null; public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null; public String _class_globals() throws Exception{ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView"; _customlistview1 = new b4a.example3.customlistview(); //BA.debugLineNum = 5;BA.debugLine="Public Text As Object"; _text = new Object(); //BA.debugLineNum = 6;BA.debugLine="End Sub"; return ""; } public String _dialogclosed(int _result) throws Exception{ //BA.debugLineNum = 41;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; //BA.debugLineNum = 43;BA.debugLine="End Sub"; return ""; } public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(keymon.lat.medicomed.b4xdialog _dialog) throws Exception{ //BA.debugLineNum = 30;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; //BA.debugLineNum = 31;BA.debugLine="Return mBase"; if (true) return _mbase; //BA.debugLineNum = 32;BA.debugLine="End Sub"; return null; } public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); //BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize"; //BA.debugLineNum = 9;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; _mbase = _xui.CreatePanel(ba,"mBase"); //BA.debugLineNum = 10;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)"; _mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300))); //BA.debugLineNum = 11;BA.debugLine="mBase.LoadLayout(\"LongTextTemplate\")"; _mbase.LoadLayout("LongTextTemplate",ba); //BA.debugLineNum = 12;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; _mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0)); //BA.debugLineNum = 13;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr"; _customlistview1._sv.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0)); //BA.debugLineNum = 14;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF"; _customlistview1._defaulttextbackgroundcolor = ((int)0xff555555); //BA.debugLineNum = 15;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit"; _customlistview1._defaulttextcolor = _xui.Color_White; //BA.debugLineNum = 16;BA.debugLine="CustomListView1.sv.Color = 0xFF464646"; _customlistview1._sv.setColor(((int)0xff464646)); //BA.debugLineNum = 21;BA.debugLine="End Sub"; return ""; } public String _resize(int _width,int _height) throws Exception{ //BA.debugLineNum = 23;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; //BA.debugLineNum = 24;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; _mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); //BA.debugLineNum = 25;BA.debugLine="CustomListView1.AsView.SetLayoutAnimated(0, 0, 0,"; _customlistview1._asview().SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); //BA.debugLineNum = 26;BA.debugLine="CustomListView1.Base_Resize(Width, Height)"; _customlistview1._base_resize(_width,_height); //BA.debugLineNum = 27;BA.debugLine="End Sub"; return ""; } public String _show(keymon.lat.medicomed.b4xdialog _dialog) throws Exception{ //BA.debugLineNum = 34;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore"; //BA.debugLineNum = 35;BA.debugLine="CustomListView1.Clear"; _customlistview1._clear(); //BA.debugLineNum = 36;BA.debugLine="CustomListView1.AddTextItem(Text, \"\")"; _customlistview1._addtextitem(_text,(Object)("")); //BA.debugLineNum = 37;BA.debugLine="CustomListView1.GetPanel(0).GetView(0).SetTextAli"; _customlistview1._getpanel((int) (0)).GetView((int) (0)).SetTextAlignment("TOP","LEFT"); //BA.debugLineNum = 38;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView"; _xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_customlistview1._defaulttextbackgroundcolor); //BA.debugLineNum = 39;BA.debugLine="End Sub"; return ""; } public Object callSub(String sub, Object sender, Object[] args) throws Exception { BA.senderHolder.set(sender); if (BA.fastSubCompare(sub, "DIALOGCLOSED")) return _dialogclosed(((Number)args[0]).intValue()); if (BA.fastSubCompare(sub, "GETPANEL")) return _getpanel((keymon.lat.medicomed.b4xdialog) args[0]); if (BA.fastSubCompare(sub, "SHOW")) return _show((keymon.lat.medicomed.b4xdialog) args[0]); return BA.SubDelegator.SubNotFound; } }