Skip to content

Commit da99413

Browse files
author
banzhe
committed
feat: support split pane
1 parent 9aa6d31 commit da99413

File tree

3 files changed

+414
-289
lines changed

3 files changed

+414
-289
lines changed

src/main/java/io/github/linyimin/plugin/ui/SpecifyTableTabbedPane.form

Lines changed: 93 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<properties/>
2626
<border type="none"/>
2727
<children>
28-
<grid id="49d1c" binding="schemaContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="true" same-size-vertically="false" hgap="-1" vgap="-1">
28+
<grid id="49d1c" binding="schemaContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
2929
<margin top="0" left="0" bottom="0" right="0"/>
3030
<constraints>
3131
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="0" anchor="0" fill="3" indent="0" use-parent-layout="false">
@@ -35,28 +35,42 @@
3535
<properties/>
3636
<border type="none"/>
3737
<children>
38-
<scrollpane id="51e51" binding="tableSchemaScroll">
38+
<splitpane id="3dbf0">
3939
<constraints>
40-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
40+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
41+
<preferred-size width="200" height="200"/>
42+
</grid>
4143
</constraints>
42-
<properties/>
44+
<properties>
45+
<oneTouchExpandable value="true"/>
46+
<resizeWeight value="0.5"/>
47+
</properties>
4348
<border type="none"/>
4449
<children>
45-
<component id="34172" class="javax.swing.JTable" binding="tableSchema">
46-
<constraints/>
50+
<scrollpane id="51e51" binding="tableSchemaScroll">
51+
<constraints>
52+
<splitpane position="left"/>
53+
</constraints>
54+
<properties/>
55+
<border type="none"/>
56+
<children>
57+
<component id="34172" class="javax.swing.JTable" binding="tableSchema">
58+
<constraints/>
59+
<properties/>
60+
</component>
61+
</children>
62+
</scrollpane>
63+
<grid id="d83a5" binding="tableRulePanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
64+
<margin top="0" left="0" bottom="0" right="0"/>
65+
<constraints>
66+
<splitpane position="right"/>
67+
</constraints>
4768
<properties/>
48-
</component>
69+
<border type="none"/>
70+
<children/>
71+
</grid>
4972
</children>
50-
</scrollpane>
51-
<grid id="d83a5" binding="tableRulePanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
52-
<margin top="0" left="0" bottom="0" right="0"/>
53-
<constraints>
54-
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
55-
</constraints>
56-
<properties/>
57-
<border type="none"/>
58-
<children/>
59-
</grid>
73+
</splitpane>
6074
</children>
6175
</grid>
6276
</children>
@@ -77,36 +91,50 @@
7791
<properties/>
7892
<border type="none"/>
7993
<children>
80-
<grid id="47b6c" binding="indexContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="true" same-size-vertically="false" hgap="-1" vgap="-1">
94+
<grid id="47b6c" binding="indexContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
8195
<margin top="0" left="0" bottom="0" right="0"/>
8296
<constraints>
8397
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
8498
</constraints>
8599
<properties/>
86100
<border type="none"/>
87101
<children>
88-
<scrollpane id="77d4e">
102+
<splitpane id="692">
89103
<constraints>
90-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
104+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
105+
<preferred-size width="200" height="200"/>
106+
</grid>
91107
</constraints>
92-
<properties/>
108+
<properties>
109+
<oneTouchExpandable value="true"/>
110+
<resizeWeight value="0.5"/>
111+
</properties>
93112
<border type="none"/>
94113
<children>
95-
<component id="f6310" class="javax.swing.JTable" binding="indexTable">
96-
<constraints/>
114+
<scrollpane id="77d4e">
115+
<constraints>
116+
<splitpane position="left"/>
117+
</constraints>
97118
<properties/>
98-
</component>
119+
<border type="none"/>
120+
<children>
121+
<component id="f6310" class="javax.swing.JTable" binding="indexTable">
122+
<constraints/>
123+
<properties/>
124+
</component>
125+
</children>
126+
</scrollpane>
127+
<grid id="d134e" binding="indexRulePane" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
128+
<margin top="0" left="0" bottom="0" right="0"/>
129+
<constraints>
130+
<splitpane position="right"/>
131+
</constraints>
132+
<properties/>
133+
<border type="none"/>
134+
<children/>
135+
</grid>
99136
</children>
100-
</scrollpane>
101-
<grid id="d134e" binding="indexRulePane" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
102-
<margin top="0" left="0" bottom="0" right="0"/>
103-
<constraints>
104-
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
105-
</constraints>
106-
<properties/>
107-
<border type="none"/>
108-
<children/>
109-
</grid>
137+
</splitpane>
110138
</children>
111139
</grid>
112140
</children>
@@ -131,36 +159,50 @@
131159
<properties/>
132160
<border type="none"/>
133161
<children>
134-
<grid id="5f70c" binding="mockContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="true" same-size-vertically="false" hgap="-1" vgap="-1">
162+
<grid id="5f70c" binding="mockContentPane" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
135163
<margin top="0" left="0" bottom="0" right="0"/>
136164
<constraints>
137165
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
138166
</constraints>
139167
<properties/>
140168
<border type="none"/>
141169
<children>
142-
<grid id="eea51" binding="mockConfigResultPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
143-
<margin top="0" left="0" bottom="0" right="0"/>
144-
<constraints>
145-
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
146-
</constraints>
147-
<properties/>
148-
<border type="none"/>
149-
<children/>
150-
</grid>
151-
<scrollpane id="fc263" binding="mockConfigScroll">
170+
<splitpane id="66eb2">
152171
<constraints>
153-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
172+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
173+
<preferred-size width="200" height="200"/>
174+
</grid>
154175
</constraints>
155-
<properties/>
176+
<properties>
177+
<oneTouchExpandable value="true"/>
178+
<resizeWeight value="0.5"/>
179+
</properties>
156180
<border type="none"/>
157181
<children>
158-
<component id="bf147" class="javax.swing.JTable" binding="mockConfigTable">
159-
<constraints/>
182+
<scrollpane id="fc263" binding="mockConfigScroll">
183+
<constraints>
184+
<splitpane position="left"/>
185+
</constraints>
160186
<properties/>
161-
</component>
187+
<border type="none"/>
188+
<children>
189+
<component id="bf147" class="javax.swing.JTable" binding="mockConfigTable">
190+
<constraints/>
191+
<properties/>
192+
</component>
193+
</children>
194+
</scrollpane>
195+
<grid id="eea51" binding="mockConfigResultPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
196+
<margin top="0" left="0" bottom="0" right="0"/>
197+
<constraints>
198+
<splitpane position="right"/>
199+
</constraints>
200+
<properties/>
201+
<border type="none"/>
202+
<children/>
203+
</grid>
162204
</children>
163-
</scrollpane>
205+
</splitpane>
164206
</children>
165207
</grid>
166208
</children>

0 commit comments

Comments
 (0)