浏览代码

Anzeige stornierter Untersuchungen

testBranch
Johannes 10 年前
父节点
当前提交
1ca4bd54de
共有 1 个文件被更改,包括 25 次插入7 次删除
  1. +25
    -7
      src/main/java/de/uniluebeck/mi/projmi6/controller/UntersuchungenController.java

+ 25
- 7
src/main/java/de/uniluebeck/mi/projmi6/controller/UntersuchungenController.java 查看文件

@@ -13,6 +13,8 @@ import javafx.collections.ObservableList;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.control.*; import javafx.scene.control.*;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;


import java.sql.SQLException; import java.sql.SQLException;


@@ -86,11 +88,27 @@ public class UntersuchungenController {






/* untsList.setCellFactory(lv -> {
untsList.setCellFactory(lv -> {
return new ListCell<Untersuchung>(){ return new ListCell<Untersuchung>(){

}
});*/
@Override
protected void updateItem(Untersuchung item, boolean empty) {
super.updateItem(item, empty);
if(item==null||empty){
setText(null);
setGraphic(null);
return;
}
setText(item.toString());
if(item.getStorniert()){
setTextFill(Color.GRAY);
setGraphic(new Text("<storniert> "));
}else{
setTextFill(Color.BLACK);
setGraphic(null);
}
}
};
});
} }


@FXML @FXML
@@ -165,9 +183,9 @@ public class UntersuchungenController {


private void clearFields(){ private void clearFields(){


//untersCreateTime.setText("<auto>");
//untersCreator.setText("<auto>");
//untersEditTime.setText("<auto>");
untsCreateTime.setText("");
untsCreator.setText("");
untsChangeTime.setText("");
// untersEditor.setText("<auto>"); // untersEditor.setText("<auto>");


untsOpsCode.setValue(null); untsOpsCode.setValue(null);


正在加载...
取消
保存