public void bind() {
   viewModel.setAddMode(addCheckBox.isSelected());
   viewModel.fromUnitText = fromUnit.getSelectedItem().toString();
   viewModel.toUnitText = toUnit.getSelectedItem().toString();
   viewModel.fromValueText = fromValue.getText();
   viewModel.toValueText = toValue.getText();
 }
 public void loadLog() {
   List<String> log = viewModel.getLog();
   logList.setListData(log.toArray(new String[log.size()]));
 }