Skip to content

Commit b92a39c

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

File tree

1 file changed

+73
-44
lines changed

1 file changed

+73
-44
lines changed

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

Lines changed: 73 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -84,83 +84,112 @@
8484
<border type="none"/>
8585
<children/>
8686
</grid>
87-
<grid id="41759" binding="sqlContentPanel" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="true" hgap="-1" vgap="-1">
87+
<grid id="41759" binding="sqlContentPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
8888
<margin top="0" left="0" bottom="0" right="0"/>
8989
<constraints>
9090
<splitpane position="right"/>
9191
</constraints>
9292
<properties/>
9393
<border type="none"/>
9494
<children>
95-
<grid id="c9af6" binding="sqlAndExplainPanel" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="true" same-size-vertically="false" hgap="-1" vgap="-1">
96-
<margin top="0" left="0" bottom="0" right="0"/>
95+
<splitpane id="a773b">
9796
<constraints>
98-
<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"/>
97+
<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">
98+
<preferred-size width="200" height="200"/>
99+
</grid>
99100
</constraints>
100-
<properties/>
101+
<properties>
102+
<oneTouchExpandable value="true"/>
103+
<orientation value="0"/>
104+
<resizeWeight value="0.5"/>
105+
</properties>
101106
<border type="none"/>
102107
<children>
103-
<grid id="e3aed" binding="statementPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
104-
<margin top="0" left="0" bottom="0" right="0"/>
105-
<constraints>
106-
<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"/>
107-
</constraints>
108-
<properties/>
109-
<border type="none"/>
110-
<children/>
111-
</grid>
112-
<grid id="d7cef" binding="statementRulePanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
108+
<grid id="c9af6" binding="sqlAndExplainPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
113109
<margin top="0" left="0" bottom="0" right="0"/>
114110
<constraints>
115-
<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"/>
111+
<splitpane position="left"/>
116112
</constraints>
117113
<properties/>
118114
<border type="none"/>
119-
<children/>
115+
<children>
116+
<splitpane id="e8587">
117+
<constraints>
118+
<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">
119+
<preferred-size width="200" height="200"/>
120+
</grid>
121+
</constraints>
122+
<properties>
123+
<oneTouchExpandable value="true"/>
124+
<resizeWeight value="0.5"/>
125+
</properties>
126+
<border type="none"/>
127+
<children>
128+
<grid id="e3aed" binding="statementPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
129+
<margin top="0" left="0" bottom="0" right="0"/>
130+
<constraints>
131+
<splitpane position="left"/>
132+
</constraints>
133+
<properties/>
134+
<border type="none"/>
135+
<children/>
136+
</grid>
137+
<grid id="d7cef" binding="statementRulePanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
138+
<margin top="0" left="0" bottom="0" right="0"/>
139+
<constraints>
140+
<splitpane position="right"/>
141+
</constraints>
142+
<properties/>
143+
<border type="none"/>
144+
<children/>
145+
</grid>
146+
</children>
147+
</splitpane>
148+
</children>
120149
</grid>
121-
</children>
122-
</grid>
123-
<grid id="e73c7" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
124-
<margin top="0" left="0" bottom="0" right="0"/>
125-
<constraints>
126-
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
127-
</constraints>
128-
<properties/>
129-
<border type="none"/>
130-
<children>
131-
<grid id="422dc" binding="indexPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
150+
<grid id="e73c7" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
132151
<margin top="0" left="0" bottom="0" right="0"/>
133152
<constraints>
134-
<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"/>
153+
<splitpane position="right"/>
135154
</constraints>
136155
<properties/>
137156
<border type="none"/>
138157
<children>
139-
<scrollpane id="7071d" binding="indexScrollPane">
158+
<grid id="422dc" binding="indexPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
159+
<margin top="0" left="0" bottom="0" right="0"/>
140160
<constraints>
141-
<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"/>
161+
<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"/>
142162
</constraints>
143163
<properties/>
144164
<border type="none"/>
145165
<children>
146-
<component id="c8fca" class="javax.swing.JTable" binding="indexTable">
147-
<constraints/>
166+
<scrollpane id="7071d" binding="indexScrollPane">
167+
<constraints>
168+
<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"/>
169+
</constraints>
148170
<properties/>
149-
</component>
171+
<border type="none"/>
172+
<children>
173+
<component id="c8fca" class="javax.swing.JTable" binding="indexTable">
174+
<constraints/>
175+
<properties/>
176+
</component>
177+
</children>
178+
</scrollpane>
150179
</children>
151-
</scrollpane>
180+
</grid>
181+
<component id="b51a7" class="javax.swing.JButton" binding="jumpButton" default-binding="true">
182+
<constraints>
183+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
184+
</constraints>
185+
<properties>
186+
<text value="jump"/>
187+
</properties>
188+
</component>
152189
</children>
153190
</grid>
154-
<component id="b51a7" class="javax.swing.JButton" binding="jumpButton" default-binding="true">
155-
<constraints>
156-
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
157-
</constraints>
158-
<properties>
159-
<text value="jump"/>
160-
</properties>
161-
</component>
162191
</children>
163-
</grid>
192+
</splitpane>
164193
</children>
165194
</grid>
166195
</children>

0 commit comments

Comments
 (0)