Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gradle-example
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leona
I
idea
plugin
gradle-example
Commits
0f807488
Commit
0f807488
authored
Oct 16, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add doc
parent
5d66c57c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
293 additions
and
12 deletions
+293
-12
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/MybatisConfigForum.form
...anledexianxianxian/plugin/idea/ui/MybatisConfigForum.form
+17
-11
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/MybatisConfigForum.java
...anledexianxianxian/plugin/idea/ui/MybatisConfigForum.java
+3
-1
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test.java
...in/java/com/duanledexianxianxian/plugin/idea/ui/Test.java
+88
-0
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test.jfd
...ain/java/com/duanledexianxianxian/plugin/idea/ui/Test.jfd
+52
-0
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test1.java
...n/java/com/duanledexianxianxian/plugin/idea/ui/Test1.java
+84
-0
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test1.jfd
...in/java/com/duanledexianxianxian/plugin/idea/ui/Test1.jfd
+49
-0
No files found.
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/MybatisConfigForum.form
View file @
0f807488
...
@@ -8,24 +8,30 @@
...
@@ -8,24 +8,30 @@
<properties/>
<properties/>
<border
type=
"none"
/>
<border
type=
"none"
/>
<children>
<children>
<component
id=
"
b96c4"
class=
"javax.swing.JTextField"
binding=
"textField
1"
default-binding=
"true"
>
<component
id=
"
6b745"
class=
"javax.swing.JButton"
binding=
"button
1"
default-binding=
"true"
>
<constraints>
<constraints>
<grid
row=
"0"
column=
"0"
row-span=
"1"
col-span=
"1"
vsize-policy=
"0"
hsize-policy=
"6"
anchor=
"8"
fill=
"1"
indent=
"0"
use-parent-layout=
"false"
>
<grid
row=
"1"
column=
"1"
row-span=
"1"
col-span=
"1"
vsize-policy=
"0"
hsize-policy=
"3"
anchor=
"0"
fill=
"1"
indent=
"0"
use-parent-layout=
"false"
/>
<preferred-size
width=
"150"
height=
"-1"
/>
</grid>
</constraints>
</constraints>
<properties/>
<properties>
<text
value=
"Button"
/>
</properties>
</component>
</component>
<
hspacer
id=
"f7a5d
"
>
<
component
id=
"c0e42"
class=
"javax.swing.JLabel
"
>
<constraints>
<constraints>
<grid
row=
"0"
column=
"
1"
row-span=
"1"
col-span=
"1"
vsize-policy=
"1"
hsize-policy=
"6"
anchor=
"0"
fill=
"1
"
indent=
"0"
use-parent-layout=
"false"
/>
<grid
row=
"0"
column=
"
0"
row-span=
"2"
col-span=
"1"
vsize-policy=
"0"
hsize-policy=
"0"
anchor=
"8"
fill=
"0
"
indent=
"0"
use-parent-layout=
"false"
/>
</constraints>
</constraints>
</hspacer>
<properties>
<vspacer
id=
"529eb"
>
<text
value=
"姓名"
/>
</properties>
</component>
<component
id=
"b96c4"
class=
"javax.swing.JTextField"
binding=
"username"
>
<constraints>
<constraints>
<grid
row=
"1"
column=
"0"
row-span=
"1"
col-span=
"1"
vsize-policy=
"6"
hsize-policy=
"1"
anchor=
"0"
fill=
"2"
indent=
"0"
use-parent-layout=
"false"
/>
<grid
row=
"0"
column=
"1"
row-span=
"1"
col-span=
"1"
vsize-policy=
"0"
hsize-policy=
"6"
anchor=
"8"
fill=
"1"
indent=
"0"
use-parent-layout=
"false"
>
<preferred-size
width=
"150"
height=
"-1"
/>
</grid>
</constraints>
</constraints>
</vspacer>
<properties/>
</component>
</children>
</children>
</grid>
</grid>
</form>
</form>
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/MybatisConfigForum.java
View file @
0f807488
...
@@ -8,5 +8,7 @@ import javax.swing.*;
...
@@ -8,5 +8,7 @@ import javax.swing.*;
* @since 1.0.0
* @since 1.0.0
*/
*/
public
class
MybatisConfigForum
{
public
class
MybatisConfigForum
{
private
JTextField
textField1
;
private
JTextField
username
;
private
JButton
button1
;
private
JPanel
jPanel
;
}
}
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test.java
0 → 100644
View file @
0f807488
/*
* Created by JFormDesigner on Wed Oct 16 13:51:55 CST 2019
*/
package
com.duanledexianxianxian.plugin.idea.ui
;
import
java.awt.*
;
import
javax.swing.*
;
/**
* @author china
*/
public
class
Test
extends
JFrame
{
public
Test
()
{
initComponents
();
}
private
void
initComponents
()
{
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
// Generated using JFormDesigner Evaluation license - unknown
panel1
=
new
JPanel
();
panel2
=
new
JPanel
();
panel3
=
new
JPanel
();
panel4
=
new
JPanel
();
panel5
=
new
JPanel
();
label1
=
new
JLabel
();
textField1
=
new
JTextField
();
//======== this ========
Container
contentPane
=
getContentPane
();
contentPane
.
setLayout
(
new
BorderLayout
(
10
,
10
));
//======== panel1 ========
{
panel1
.
setBorder
(
new
javax
.
swing
.
border
.
CompoundBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
new
javax
.
swing
.
border
.
EmptyBorder
(
0
,
0
,
0
,
0
)
,
"JF\u006frmDesi\u0067ner Ev\u0061luatio\u006e"
,
javax
.
swing
.
border
.
TitledBorder
.
CENTER
,
javax
.
swing
.
border
.
TitledBorder
.
BOTTOM
,
new
java
.
awt
.
Font
(
"Dialo\u0067"
,
java
.
awt
.
Font
.
BOLD
,
12
),
java
.
awt
.
Color
.
red
)
,
panel1
.
getBorder
(
))
);
panel1
.
addPropertyChangeListener
(
new
java
.
beans
.
PropertyChangeListener
(
){
@Override
public
void
propertyChange
(
java
.
beans
.
PropertyChangeEvent
e
)
{
if
(
"borde\u0072"
.
equals
(
e
.
getPropertyName
()
))
throw
new
RuntimeException
(
)
;
}}
);
panel1
.
setLayout
(
new
BorderLayout
());
}
contentPane
.
add
(
panel1
,
BorderLayout
.
NORTH
);
//======== panel2 ========
{
panel2
.
setLayout
(
new
BorderLayout
());
}
contentPane
.
add
(
panel2
,
BorderLayout
.
WEST
);
//======== panel3 ========
{
panel3
.
setLayout
(
new
BorderLayout
());
}
contentPane
.
add
(
panel3
,
BorderLayout
.
EAST
);
//======== panel4 ========
{
panel4
.
setLayout
(
new
BorderLayout
());
}
contentPane
.
add
(
panel4
,
BorderLayout
.
SOUTH
);
//======== panel5 ========
{
panel5
.
setLayout
(
new
GridLayout
(
1
,
2
,
100
,
100
));
//---- label1 ----
label1
.
setText
(
"text"
);
panel5
.
add
(
label1
);
panel5
.
add
(
textField1
);
}
contentPane
.
add
(
panel5
,
BorderLayout
.
CENTER
);
pack
();
setLocationRelativeTo
(
getOwner
());
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
// Generated using JFormDesigner Evaluation license - unknown
private
JPanel
panel1
;
private
JPanel
panel2
;
private
JPanel
panel3
;
private
JPanel
panel4
;
private
JPanel
panel5
;
private
JLabel
label1
;
private
JTextField
textField1
;
// JFormDesigner - End of variables declaration //GEN-END:variables
}
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test.jfd
0 → 100644
View file @
0f807488
JFDML JFormDesigner: "7.0.0.6.255" Java: "1.8.0_202-release" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
root: new FormRoot {
add( new FormWindow( "javax.swing.JFrame", new FormLayoutManager( class java.awt.BorderLayout ) {
"hgap": 10
"vgap": 10
} ) {
name: "this"
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel1"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "North"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel2"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "West"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel3"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "East"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel4"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "South"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.GridLayout ) {
"columns": 2
"vgap": 100
"hgap": 100
} ) {
name: "panel5"
add( new FormComponent( "javax.swing.JLabel" ) {
name: "label1"
"text": "text"
} )
add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField1"
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
}, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 475, 365 )
} )
}
}
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test1.java
0 → 100644
View file @
0f807488
/*
* Created by JFormDesigner on Wed Oct 16 14:07:57 CST 2019
*/
package
com.duanledexianxianxian.plugin.idea.ui
;
import
java.awt.*
;
import
javax.swing.*
;
import
javax.swing.border.*
;
/**
* @author china
*/
public
class
Test1
extends
JFrame
{
public
Test1
()
{
initComponents
();
}
private
void
initComponents
()
{
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
// Generated using JFormDesigner Evaluation license - unknown
dialogPane
=
new
JPanel
();
contentPanel
=
new
JPanel
();
buttonBar
=
new
JPanel
();
okButton
=
new
JButton
();
cancelButton
=
new
JButton
();
//======== this ========
Container
contentPane
=
getContentPane
();
contentPane
.
setLayout
(
new
BorderLayout
());
//======== dialogPane ========
{
dialogPane
.
setBorder
(
new
EmptyBorder
(
12
,
12
,
12
,
12
));
dialogPane
.
setBorder
(
new
javax
.
swing
.
border
.
CompoundBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
new
javax
.
swing
.
border
.
EmptyBorder
(
0
,
0
,
0
,
0
)
,
"JFor\u006dDesi\u0067ner \u0045valu\u0061tion"
,
javax
.
swing
.
border
.
TitledBorder
.
CENTER
,
javax
.
swing
.
border
.
TitledBorder
.
BOTTOM
,
new
java
.
awt
.
Font
(
"Dia\u006cog"
,
java
.
awt
.
Font
.
BOLD
,
12
),
java
.
awt
.
Color
.
red
)
,
dialogPane
.
getBorder
(
))
);
dialogPane
.
addPropertyChangeListener
(
new
java
.
beans
.
PropertyChangeListener
(
)
{
@Override
public
void
propertyChange
(
java
.
beans
.
PropertyChangeEvent
e
)
{
if
(
"bord\u0065r"
.
equals
(
e
.
getPropertyName
()
))
throw
new
RuntimeException
(
);
}}
);
dialogPane
.
setLayout
(
new
BorderLayout
());
//======== contentPanel ========
{
contentPanel
.
setLayout
(
new
BorderLayout
());
}
dialogPane
.
add
(
contentPanel
,
BorderLayout
.
CENTER
);
//======== buttonBar ========
{
buttonBar
.
setBorder
(
new
EmptyBorder
(
12
,
0
,
0
,
0
));
buttonBar
.
setLayout
(
new
GridBagLayout
());
((
GridBagLayout
)
buttonBar
.
getLayout
()).
columnWidths
=
new
int
[]
{
0
,
85
,
80
};
((
GridBagLayout
)
buttonBar
.
getLayout
()).
columnWeights
=
new
double
[]
{
1.0
,
0.0
,
0.0
};
//---- okButton ----
okButton
.
setText
(
"OK"
);
buttonBar
.
add
(
okButton
,
new
GridBagConstraints
(
1
,
0
,
1
,
1
,
0.0
,
0.0
,
GridBagConstraints
.
CENTER
,
GridBagConstraints
.
BOTH
,
new
Insets
(
0
,
0
,
0
,
5
),
0
,
0
));
//---- cancelButton ----
cancelButton
.
setText
(
"Cancel"
);
buttonBar
.
add
(
cancelButton
,
new
GridBagConstraints
(
2
,
0
,
1
,
1
,
0.0
,
0.0
,
GridBagConstraints
.
CENTER
,
GridBagConstraints
.
BOTH
,
new
Insets
(
0
,
0
,
0
,
0
),
0
,
0
));
}
dialogPane
.
add
(
buttonBar
,
BorderLayout
.
SOUTH
);
}
contentPane
.
add
(
dialogPane
,
BorderLayout
.
CENTER
);
pack
();
setLocationRelativeTo
(
getOwner
());
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
// Generated using JFormDesigner Evaluation license - unknown
private
JPanel
dialogPane
;
private
JPanel
contentPanel
;
private
JPanel
buttonBar
;
private
JButton
okButton
;
private
JButton
cancelButton
;
// JFormDesigner - End of variables declaration //GEN-END:variables
}
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/ui/Test1.jfd
0 → 100644
View file @
0f807488
JFDML JFormDesigner: "7.0.0.6.255" Java: "1.8.0_202-release" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
root: new FormRoot {
add( new FormWindow( "javax.swing.JFrame", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "this"
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "dialogPane"
"border": new javax.swing.border.EmptyBorder( 12, 12, 12, 12 )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "contentPanel"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.GridBagLayout ) {
"$columnSpecs": "0:1.0, 80, 80"
"$rowSpecs": "0"
"$hGap": 5
"$vGap": 5
} ) {
name: "buttonBar"
"border": new javax.swing.border.EmptyBorder( 12, 0, 0, 0 )
add( new FormComponent( "javax.swing.JButton" ) {
name: "okButton"
"text": "OK"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 1
"gridy": 0
} )
add( new FormComponent( "javax.swing.JButton" ) {
name: "cancelButton"
"text": "Cancel"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 2
"gridy": 0
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "South"
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
}, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 715, 540 )
} )
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment