コード例 #1
0
 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();
 }
コード例 #2
0
 public void loadLog() {
   List<String> log = viewModel.getLog();
   logList.setListData(log.toArray(new String[log.size()]));
 }