Skip to content

Commit 71f8962

Browse files
committed
version 2.00
1 parent a7a7a19 commit 71f8962

31 files changed

+966
-0
lines changed

Web API Client 2/B4A/$APPNAME$.b4a

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Build1=Default,b4a.webapi.client
2+
File1=CategoryItem.bal
3+
File2=MainPage.bal
4+
File3=ProductItem.bal
5+
File4=template_category.json
6+
File5=template_product.json
7+
FileGroup1=Default Group
8+
FileGroup2=Default Group
9+
FileGroup3=Default Group
10+
FileGroup4=Default Group
11+
FileGroup5=Default Group
12+
Group=Default Group
13+
Library1=b4xpages
14+
Library2=b4xpreferencesdialog
15+
Library3=core
16+
Library4=ime
17+
Library5=okhttputils2
18+
Library6=xui views
19+
ManifestCode='This code will be applied to the manifest file during compilation.~\n~'You do not need to modify it in most cases.~\n~'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136~\n~AddManifestText(~\n~<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="33"/>~\n~<supports-screens android:largeScreens="true" ~\n~ android:normalScreens="true" ~\n~ android:smallScreens="true" ~\n~ android:anyDensity="true"/>)~\n~SetApplicationAttribute(android:icon, "@drawable/icon")~\n~SetApplicationAttribute(android:label, "$LABEL$")~\n~CreateResourceFromFile(Macro, Themes.LightTheme)~\n~'End of default text.~\n~SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)~\n~CreateResourceFromFile(Macro, Core.NetworkClearText) ' Comment this if using https protocol
20+
Module1=|relative|..\B4XMainPage
21+
Module2=Starter
22+
NumberOfFiles=5
23+
NumberOfLibraries=6
24+
NumberOfModules=2
25+
Version=12.8
26+
@EndOfDesignText@
27+
#Region Project Attributes
28+
#ApplicationLabel: WebAPI Client
29+
#VersionCode: 7
30+
#VersionName: 2.00
31+
'SupportedOrientations possible values: unspecified, landscape or portrait.
32+
#SupportedOrientations: portrait
33+
#CanInstallToExternalStorage: False
34+
#End Region
35+
36+
#Region Activity Attributes
37+
#FullScreen: False
38+
#IncludeTitle: True
39+
#End Region
40+
41+
'#BridgeLogger: True
42+
43+
Sub Process_Globals
44+
Public ActionBarHomeClicked As Boolean
45+
End Sub
46+
47+
Sub Globals
48+
Private ime As IME
49+
End Sub
50+
51+
Sub Activity_Create(FirstTime As Boolean)
52+
ime.Initialize("IME")
53+
ime.AddHeightChangedEvent
54+
Dim pm As B4XPagesManager
55+
pm.Initialize(Activity)
56+
End Sub
57+
58+
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
59+
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
60+
End Sub
61+
62+
'Template version: B4A-1.01
63+
#Region Delegates
64+
65+
Sub Activity_ActionBarHomeClick
66+
ActionBarHomeClicked = True
67+
B4XPages.Delegate.Activity_ActionBarHomeClick
68+
ActionBarHomeClicked = False
69+
End Sub
70+
71+
Sub Activity_KeyPress (KeyCode As Int) As Boolean
72+
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
73+
End Sub
74+
75+
Sub Activity_Resume
76+
B4XPages.Delegate.Activity_Resume
77+
End Sub
78+
79+
Sub Activity_Pause (UserClosed As Boolean)
80+
B4XPages.Delegate.Activity_Pause
81+
End Sub
82+
83+
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
84+
B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
85+
End Sub
86+
87+
Sub Create_Menu (Menu As Object)
88+
B4XPages.Delegate.Create_Menu(Menu)
89+
End Sub
90+
91+
#if Java
92+
public boolean _onCreateOptionsMenu(android.view.Menu menu) {
93+
processBA.raiseEvent(null, "create_menu", menu);
94+
return true;
95+
}
96+
#End If
97+
#End Region
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ModuleBookmarks0=
2+
ModuleBookmarks1=11
3+
ModuleBookmarks2=
4+
ModuleBreakpoints0=
5+
ModuleBreakpoints1=
6+
ModuleBreakpoints2=
7+
ModuleClosedNodes0=
8+
ModuleClosedNodes1=
9+
ModuleClosedNodes2=
10+
NavigationStack=B4XMainPage,Class_Globals,10,0
11+
SelectedBuild=0
12+
VisibleModules=1

Web API Client 2/B4A/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ignore files
2+
*.zip
3+
4+
# ignore ALL files in these directories
5+
AutoBackups/
6+
7+
# Include icon.png inside drawable
8+
Objects/*
9+
!Objects/res/
10+
Objects/res/*
11+
!Objects/res/drawable/
3.55 KB
Binary file not shown.
5.76 KB
Binary file not shown.
4.87 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Name",
7+
"type": "Text",
8+
"key": "Category Name",
9+
"required": true
10+
} ]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Category",
7+
"type": "Options",
8+
"key": "Category",
9+
"required": true
10+
},
11+
{
12+
"title": "Name",
13+
"type": "Text",
14+
"key": "Product Name",
15+
"required": true
16+
},
17+
{
18+
"title": "Code",
19+
"type": "Text",
20+
"key": "Product Code",
21+
"required": true
22+
},
23+
{
24+
"title": "Price",
25+
"type": "Text",
26+
"key": "Product Price",
27+
"required": true
28+
}
29+
]
30+
}
Loading

Web API Client 2/B4A/Starter.bas

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
B4A=true
2+
Group=Default Group
3+
ModulesStructureVersion=1
4+
Type=Service
5+
Version=9.85
6+
@EndOfDesignText@
7+
#Region Service Attributes
8+
#StartAtBoot: False
9+
#ExcludeFromLibrary: True
10+
#End Region
11+
12+
Sub Process_Globals
13+
14+
End Sub
15+
16+
Sub Service_Create
17+
18+
End Sub
19+
20+
Sub Service_Start (StartingIntent As Intent)
21+
Service.StopAutomaticForeground
22+
End Sub
23+
24+
Sub Service_TaskRemoved
25+
26+
End Sub
27+
28+
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
29+
Return True
30+
End Sub
31+
32+
Sub Service_Destroy
33+
34+
End Sub

Web API Client 2/B4J/$APPNAME$.b4j

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
AppType=JavaFX
2+
Build1=Default,b4j.webapi.client
3+
File1=CategoryItem.bjl
4+
File2=icon.png
5+
File3=MainPage.bjl
6+
File4=ProductItem.bjl
7+
File5=template_category.json
8+
File6=template_product.json
9+
FileGroup1=Default Group
10+
FileGroup2=Default Group
11+
FileGroup3=Default Group
12+
FileGroup4=Default Group
13+
FileGroup5=Default Group
14+
FileGroup6=Default Group
15+
Group=Default Group
16+
Library1=b4xpages
17+
Library2=b4xpreferencesdialog
18+
Library3=jcore
19+
Library4=jfx
20+
Library5=jokhttputils2
21+
Library6=xui views
22+
Module1=|relative|..\B4XMainPage
23+
NumberOfFiles=6
24+
NumberOfLibraries=6
25+
NumberOfModules=1
26+
Version=10.2
27+
@EndOfDesignText@
28+
' Version 2.00
29+
#Region Project Attributes
30+
#MainFormWidth: 600
31+
#MainFormHeight: 600
32+
#End Region
33+
34+
Sub Process_Globals
35+
Private fx As JFX
36+
Private MainForm As Form
37+
End Sub
38+
39+
Sub AppStart (Form1 As Form, Args() As String)
40+
MainForm = Form1
41+
MainForm.Show
42+
Dim PagesManager As B4XPagesManager
43+
PagesManager.Initialize(MainForm)
44+
End Sub
45+
46+
'Template version: B4J-1.0
47+
#Region Delegates
48+
Sub MainForm_FocusChanged (HasFocus As Boolean)
49+
B4XPages.Delegate.MainForm_FocusChanged(HasFocus)
50+
End Sub
51+
52+
Sub MainForm_Resize (Width As Double, Height As Double)
53+
B4XPages.Delegate.MainForm_Resize(Width, Height)
54+
End Sub
55+
56+
Sub MainForm_Closed
57+
B4XPages.Delegate.MainForm_Closed
58+
End Sub
59+
60+
Sub MainForm_CloseRequest (EventData As Event)
61+
B4XPages.Delegate.MainForm_CloseRequest(EventData)
62+
End Sub
63+
64+
Public Sub MainForm_IconifiedChanged (Iconified As Boolean)
65+
B4XPages.Delegate.MainForm_IconifiedChanged(Iconified)
66+
End Sub
67+
#End Region
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ModuleBookmarks0=
2+
ModuleBookmarks1=11
3+
ModuleBreakpoints0=
4+
ModuleBreakpoints1=
5+
ModuleClosedNodes0=
6+
ModuleClosedNodes1=
7+
NavigationStack=B4XMainPage,Class_Globals,10,0
8+
SelectedBuild=0
9+
VisibleModules=1

Web API Client 2/B4J/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ignore files
2+
*.zip
3+
4+
# ignore ALL files in these directories
5+
AutoBackups/
6+
Objects/
3.54 KB
Binary file not shown.
6.3 KB
Binary file not shown.
5.13 KB
Binary file not shown.

Web API Client 2/B4J/Files/icon.png

88.1 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Name",
7+
"type": "Text",
8+
"key": "Category Name",
9+
"required": true
10+
} ]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Category",
7+
"type": "Options",
8+
"key": "Category",
9+
"required": true
10+
},
11+
{
12+
"title": "Name",
13+
"type": "Text",
14+
"key": "Product Name",
15+
"required": true
16+
},
17+
{
18+
"title": "Code",
19+
"type": "Text",
20+
"key": "Product Code",
21+
"required": true
22+
},
23+
{
24+
"title": "Price",
25+
"type": "Text",
26+
"key": "Product Price",
27+
"required": true
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)