Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
7cb7dc31
Commit
7cb7dc31
authored
Aug 02, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改界面
parent
ea6340fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
+12
-1
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
View file @
7cb7dc31
...
...
@@ -16,6 +16,8 @@ import java.awt.Dimension;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.awt.event.HierarchyEvent
;
import
java.awt.event.ItemEvent
;
import
java.awt.event.ItemListener
;
import
java.util.List
;
import
javax.swing.Box
;
...
...
@@ -80,8 +82,17 @@ public class RouterTopology extends AbstractTopology {
}
private
void
initializeToolBar
()
{
JSecurityAction
addServiceAction
=
createAddServiceAction
();
comboBox
=
new
JBasicComboBox
();
comboBox
.
setPreferredSize
(
new
Dimension
(
300
,
comboBox
.
getPreferredSize
().
height
));
comboBox
.
addItemListener
(
new
ItemListener
()
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
if
(
comboBox
.
getSelectedItem
()
!=
e
.
getItem
())
{
addServiceAction
.
execute
(
null
);
}
}
});
textField
=
new
JBasicTextField
();
textField
.
setPreferredSize
(
new
Dimension
(
650
,
textField
.
getPreferredSize
().
height
));
...
...
@@ -92,7 +103,7 @@ public class RouterTopology extends AbstractTopology {
toolBar
.
add
(
new
JLabel
(
ConsoleLocale
.
getString
(
"service_list"
)));
toolBar
.
add
(
Box
.
createHorizontalStrut
(
5
));
toolBar
.
add
(
comboBox
);
toolBar
.
add
(
new
JClassicButton
(
createAddServiceAction
()
));
toolBar
.
add
(
new
JClassicButton
(
addServiceAction
));
toolBar
.
add
(
new
JClassicButton
(
createDeleteServiceAction
()));
toolBar
.
add
(
textField
);
toolBar
.
add
(
new
JClassicButton
(
createExecuteRouterAction
()));
...
...
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