private Properties getConnectionProps() {
Properties connectionProps = new Properties();
for (Entry<String, JComponent> entry : components.entrySet()) {
String value = null;
JComponent component = entry.getValue();
if (component instanceof JTextField) {
value = ((JTextField) component).getText();
} else if (component instanceof JComboBox) {
value = ((JComboBox) component).getSelectedItem().toString();
}
connectionProps.put(entry.getKey(), value);
}
return connectionProps;
}
ZooInspectorConnectionPropertiesDialog.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:fuck_zookeeper
作者:
评论列表
文章目录