| | |
| | | @ViewById |
| | | RadioButton only_allow, no_limit; |
| | | @ViewById |
| | | EditText cluster_name, cluster_id, cluster_cookie, cluster_ip; |
| | | EditText cluster_name, cluster_id, cluster_cookie, cluster_ip, node_id, node_name; |
| | | @ViewById |
| | | ClusterRoundView round_view; |
| | | @ViewById |
| | |
| | | |
| | | @AfterViews |
| | | public void afterViews() { |
| | | lv_device_list.addHeaderView(View.inflate(getContext(), com.basic.security.utils.ResolutionAdaptation.cluster_setting_list_head(), null)); |
| | | } |
| | | |
| | | public void queryDeviceList() { |
| | |
| | | } |
| | | cluster_cookie.setText(password); |
| | | cluster_ip.setText(cluster.getString(ClusterSetting.other_node_ip)); |
| | | node_id.setText(cluster.getString(ClusterSetting.node_id)); |
| | | node_name.setText(cluster.getString(ClusterSetting.node_name)); |
| | | isCreateCluster = true; |
| | | deviceListAdapter = new DeviceListAdapter(); |
| | | lv_device_list.setAdapter(deviceListAdapter); |
| | |
| | | String cluster_id = this.cluster_id.getText().toString().trim(); |
| | | String password = this.cluster_cookie.getText().toString().trim(); |
| | | String cluster_ip = this.cluster_ip.getText().toString().trim(); |
| | | String node_id = this.node_id.getText().toString().trim(); |
| | | String node_name = this.node_name.getText().toString().trim(); |
| | | if (TextUtils.isEmpty(node_id)) { |
| | | ToastUtil.show("请输入节点ID"); |
| | | return; |
| | | } |
| | | if (TextUtils.isEmpty(node_name)) { |
| | | ToastUtil.show("请输入节点名称"); |
| | | return; |
| | | } |
| | | if (TextUtils.isEmpty(cluster_name)) { |
| | | ToastUtil.show("请输入集群名称"); |
| | | return; |