@SuppressWarnings("unchecked")
	private void getElementsList() {
		try {
			List<NetworkHardware> elements;
			
			DataOutputStream dos = new DataOutputStream(socket.getOutputStream());			
			dos.writeBytes(ServerFrame.getElementsListCmd + "\n");
			
			ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
			elements = (List<NetworkHardware>) ois.readObject();
			

			addLinkFromComboBox.removeAllItems();
			addLinkToComboBox.removeAllItems();
			addAlarmTargetComboBox.removeAllItems();
			updateElementsComboBox.removeAllItems();
			dropElementComboBox.removeAllItems();
			updateLinkFromComboBox.removeAllItems();
			updateLinkToComboBox.removeAllItems();
			updateAlarmTargetComboBox.removeAllItems();
			
			if(!elements.isEmpty()) {				
				for(NetworkHardware nh : elements) {
					ElementListViewHelper helper = new ElementListViewHelper(nh);
					
					addLinkFromComboBox.addItem(helper);
					addLinkToComboBox.addItem(helper);
					addAlarmTargetComboBox.addItem(helper);
					updateElementsComboBox.addItem(helper);
					dropElementComboBox.addItem(helper);
					updateLinkFromComboBox.addItem(helper);
					updateLinkToComboBox.addItem(helper);
					updateAlarmTargetComboBox.addItem(helper);
				}
			}
		} catch(Exception e) {
			connect();
		}
	}