Skip to content

Commit 9ff381b

Browse files
committed
add item save and delete
1 parent c26211d commit 9ff381b

File tree

11 files changed

+213
-146
lines changed

11 files changed

+213
-146
lines changed

objectbox-models/default.json

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,83 +4,71 @@
44
"_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
55
"entities": [
66
{
7-
"id": "3:2723635283541883978",
8-
"lastPropertyId": "6:8160730505161662463",
7+
"id": "1:9070185516669921501",
8+
"lastPropertyId": "6:5499539181800737854",
99
"name": "ApiBean",
1010
"properties": [
1111
{
12-
"id": "1:1009586835923650810",
12+
"id": "1:7029712485078776413",
1313
"name": "id"
1414
},
1515
{
16-
"id": "2:1819075072616422547",
16+
"id": "2:3978875683780283793",
1717
"name": "method"
1818
},
1919
{
20-
"id": "3:5840363995880335334",
21-
"indexId": "4:7528299978526598631",
20+
"id": "3:8086421898222647303",
21+
"indexId": "1:4855703933356883490",
2222
"name": "url"
2323
},
2424
{
25-
"id": "4:6535976958538309078",
25+
"id": "4:5827927612626697138",
2626
"name": "parameMap"
2727
},
2828
{
29-
"id": "5:1685148069388043356",
29+
"id": "5:8038266698557329938",
3030
"name": "encryptType"
3131
},
3232
{
33-
"id": "6:8160730505161662463",
34-
"indexId": "5:6124672461106652585",
33+
"id": "6:5499539181800737854",
3534
"name": "projectId"
3635
}
3736
],
3837
"relations": []
3938
},
4039
{
41-
"id": "4:5597683018629263095",
42-
"lastPropertyId": "3:6639654376183909253",
40+
"id": "2:7225886512415135978",
41+
"lastPropertyId": "3:5993062338108394619",
4342
"name": "ProjectBean",
4443
"properties": [
4544
{
46-
"id": "1:4867889443599709479",
45+
"id": "1:5197485647034223002",
4746
"name": "id"
4847
},
4948
{
50-
"id": "2:5918761106478195164",
51-
"indexId": "6:1848496440789613274",
49+
"id": "2:5984115378107091375",
50+
"indexId": "3:1701380745400854523",
5251
"name": "name"
5352
},
5453
{
55-
"id": "3:6639654376183909253",
54+
"id": "3:5993062338108394619",
5655
"name": "baseUrlList"
5756
}
5857
],
5958
"relations": []
6059
}
6160
],
62-
"lastEntityId": "4:5597683018629263095",
63-
"lastIndexId": "6:1848496440789613274",
61+
"lastEntityId": "2:7225886512415135978",
62+
"lastIndexId": "3:1701380745400854523",
6463
"lastRelationId": "0:0",
6564
"lastSequenceId": "0:0",
6665
"modelVersion": 4,
6766
"modelVersionParserMinimum": 4,
68-
"retiredEntityUids": [
69-
5987127870826382314,
70-
1500598098346202356
71-
],
67+
"retiredEntityUids": [],
7268
"retiredIndexUids": [
73-
8831818031265963749,
74-
4740578009850574679,
75-
4774298913206605671
76-
],
77-
"retiredPropertyUids": [
78-
8021379061043155619,
79-
2767558341465927091,
80-
885506218844556077,
81-
9206744007162437147,
82-
7796476320872320559
69+
4865196870853324190
8370
],
71+
"retiredPropertyUids": [],
8472
"retiredRelationUids": [],
8573
"version": 1
8674
}

src/main/java/com/longforus/apidebugger/ui/MainPanel.form

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<rowspec value="top:4dlu:noGrow"/>
77
<rowspec value="center:max(d;4px):noGrow"/>
88
<rowspec value="top:4dlu:noGrow"/>
9+
<rowspec value="center:max(d;4px):noGrow"/>
10+
<rowspec value="top:4dlu:noGrow"/>
911
<rowspec value="center:200px:noGrow"/>
1012
<rowspec value="top:4dlu:noGrow"/>
1113
<rowspec value="center:max(p;600px):grow"/>
@@ -24,7 +26,7 @@
2426
<colspec value="left:4dlu:noGrow"/>
2527
<colspec value="fill:max(p;600px):grow"/>
2628
<constraints>
27-
<xy x="20" y="20" width="1327" height="959"/>
29+
<xy x="20" y="20" width="1375" height="959"/>
2830
</constraints>
2931
<properties>
3032
<name value="Api debugger"/>
@@ -60,36 +62,9 @@
6062
<text value="Save"/>
6163
</properties>
6264
</component>
63-
<component id="a35e1" class="javax.swing.JLabel">
64-
<constraints>
65-
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
66-
<forms/>
67-
</constraints>
68-
<properties>
69-
<text value="Api Url:"/>
70-
</properties>
71-
</component>
72-
<component id="48771" class="javax.swing.JComboBox" binding="mCbApiUrl">
73-
<constraints>
74-
<grid row="3" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
75-
<forms/>
76-
</constraints>
77-
<properties>
78-
<editable value="true"/>
79-
</properties>
80-
</component>
81-
<component id="998ff" class="javax.swing.JButton" binding="mBtnSend">
82-
<constraints>
83-
<grid row="3" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
84-
<forms/>
85-
</constraints>
86-
<properties>
87-
<text value="Send"/>
88-
</properties>
89-
</component>
9065
<scrollpane id="13be7">
9166
<constraints>
92-
<grid row="5" column="0" row-span="1" col-span="11" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
67+
<grid row="7" column="0" row-span="1" col-span="11" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
9368
<forms defaultalign-horz="false" defaultalign-vert="false"/>
9469
</constraints>
9570
<properties/>
@@ -105,7 +80,7 @@
10580
</scrollpane>
10681
<scrollpane id="86e31">
10782
<constraints>
108-
<grid row="7" column="0" row-span="1" col-span="11" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
83+
<grid row="9" column="0" row-span="1" col-span="11" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
10984
<forms defaultalign-horz="false" defaultalign-vert="false"/>
11085
</constraints>
11186
<properties/>
@@ -121,7 +96,7 @@
12196
</scrollpane>
12297
<component id="8b0f0" class="javax.swing.JLabel" binding="lbStatus">
12398
<constraints>
124-
<grid row="8" column="0" row-span="1" col-span="11" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
99+
<grid row="10" column="0" row-span="1" col-span="11" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
125100
<forms/>
126101
</constraints>
127102
<properties>
@@ -130,7 +105,7 @@
130105
</component>
131106
<scrollpane id="c35dd">
132107
<constraints>
133-
<grid row="0" column="12" row-span="6" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
108+
<grid row="0" column="12" row-span="8" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
134109
<forms defaultalign-horz="false" defaultalign-vert="false"/>
135110
</constraints>
136111
<properties/>
@@ -146,7 +121,7 @@
146121
<rowspec value="center:d:grow"/>
147122
<colspec value="fill:d:grow"/>
148123
<constraints>
149-
<grid row="6" column="12" row-span="2" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
124+
<grid row="8" column="12" row-span="2" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
150125
<forms/>
151126
</constraints>
152127
<properties/>
@@ -178,6 +153,49 @@
178153
<text value="Delete"/>
179154
</properties>
180155
</component>
156+
<component id="60004" class="javax.swing.JLabel">
157+
<constraints>
158+
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
159+
<forms/>
160+
</constraints>
161+
<properties>
162+
<text value="Mthod:"/>
163+
</properties>
164+
</component>
165+
<component id="48771" class="javax.swing.JComboBox" binding="mCbApiUrl">
166+
<constraints>
167+
<grid row="5" column="2" row-span="1" col-span="7" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
168+
<forms/>
169+
</constraints>
170+
<properties>
171+
<editable value="true"/>
172+
</properties>
173+
</component>
174+
<component id="260c2" class="javax.swing.JComboBox" binding="mCbMethod">
175+
<constraints>
176+
<grid row="3" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
177+
<forms/>
178+
</constraints>
179+
<properties/>
180+
</component>
181+
<component id="a35e1" class="javax.swing.JLabel">
182+
<constraints>
183+
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
184+
<forms/>
185+
</constraints>
186+
<properties>
187+
<text value="Api Url:"/>
188+
</properties>
189+
</component>
190+
<component id="e47f" class="javax.swing.JButton" binding="btnDelApi">
191+
<constraints>
192+
<grid row="3" column="10" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
193+
<forms/>
194+
</constraints>
195+
<properties>
196+
<text value="Delete"/>
197+
</properties>
198+
</component>
181199
<component id="1e7e4" class="javax.swing.JButton" binding="mBtnSaveApi">
182200
<constraints>
183201
<grid row="3" column="6" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
@@ -196,13 +214,13 @@
196214
<text value="Copy New"/>
197215
</properties>
198216
</component>
199-
<component id="e47f" class="javax.swing.JButton" binding="btnDelApi">
217+
<component id="998ff" class="javax.swing.JButton" binding="mBtnSend">
200218
<constraints>
201-
<grid row="3" column="10" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
219+
<grid row="5" column="10" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
202220
<forms/>
203221
</constraints>
204222
<properties>
205-
<text value="Delete"/>
223+
<text value="Send"/>
206224
</properties>
207225
</component>
208226
</children>

0 commit comments

Comments
 (0)