Java 类javafx.scene.control.cell.PropertyValueFactory 实例源码

项目:alchem    文件:ViewSaleController.java   
public void initializeTable() {
    dateColumn.setCellValueFactory(new PropertyValueFactory<Sale, String>("date"));
    billNumberColumn.setCellValueFactory(new PropertyValueFactory<Sale, Long>("billNumber"));
    patientNameColumn.setCellValueFactory(new PropertyValueFactory<Sale, String>("patientName"));
    doctorNameColumn.setCellValueFactory(new PropertyValueFactory<Sale, String>("doctorName"));
    companyNameColumn.setCellValueFactory(new PropertyValueFactory<Sale, String>("companyName"));
    modeColumn.setCellValueFactory(new PropertyValueFactory<Sale, String>("mode"));
    amountColumn.setCellValueFactory(new PropertyValueFactory<Sale, Float>("amount"));
    saleList = getSale();
    if (saleList.size() < 1) {
        Calendar dateToday = Calendar.getInstance();
        int year, day, month;
        year = dateToday.get(Calendar.YEAR);
        month = dateToday.get(Calendar.MONTH) + 1;
        day = dateToday.get(Calendar.DAY_OF_MONTH);
        String date = year + "-" + month + "-" + day;
        saleList.add(new Sale(date, (long) 0, "-", "-", "-", "-", 0.0f));
    }
    saleTableView.setItems(saleList);

}
项目:ts-cards    文件:TsCardExplorerController.java   
@Override
public void initialize(URL url, ResourceBundle rb) {
    cbTypes.getItems().addAll(OPT_2K3DES, OPT_3K3DES, OPT_AES);
    cbTypes.setValue(OPT_2K3DES);

    disableTextControl4Key();

    //configuration for table AppIDs
    appIdCol.setCellValueFactory(new PropertyValueFactory<>("id"));
    selCol.setCellValueFactory(new PropertyValueFactory<>("type"));

    //configuration for table view History
    statusCol.setCellValueFactory(new PropertyValueFactory<>("status"));
    cmdCol.setCellValueFactory(new PropertyValueFactory<>("command"));
    uidCol.setCellValueFactory(new PropertyValueFactory<>("uid"));
    receivedDataCol.setCellValueFactory(new PropertyValueFactory<>("receivedData"));
    tbViewHistory.setItems(historyData);

    setupUI();
}
项目:Dr-Assistant    文件:DrugsController.java   
private void searchDrugs(String query) {
    drugDefault = false;
    totalSearchDrug = drugGetway.totalSearchDrug(query);
    paginate.setTotal(totalSearchDrug);
    paginate.setStart(0);
    paginate.setPerPage(10);
    paginate.setEnd(10);
    drugTable.getItems().clear();
    drugs = drugGetway.searchDrug(paginate, query);
    clmSl.setCellValueFactory(new PropertyValueFactory<>("sl"));
    clmDrugName.setCellValueFactory(new PropertyValueFactory<>("name"));
    clmGenericName.setCellValueFactory(new PropertyValueFactory<>("genricName"));
    clmNote.setCellValueFactory(new PropertyValueFactory<>("note"));
    clmUseInPrescription.setCellValueFactory(new PropertyValueFactory<>("useInPrescription"));
    clmUseInTemplate.setCellValueFactory(new PropertyValueFactory<>("useInTemplate"));
    clmAction.setCellFactory(action);
    drugTable.setItems(drugs);
}
项目:ShowMilhaoPOOJava    文件:ControllerLayoutRanking.java   
@Override
public void initialize(URL url, ResourceBundle rb) {            

    makeFadeInTransition();            

    tblClmNome.setResizable(false);
    tblClmPosicao.setResizable(false);
    tblClmPontuacao.setResizable(false);

    tblClmPosicao.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, Integer>("linhaTable"));        
    tblClmNome.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, String>("nomeTable"));
    tblClmPontuacao.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, Integer>("pontuacaoTable"));       

    ObservableList<ModelJogadorTable> jogadorTable = FXCollections.observableArrayList(mostrarRankingView());
    tblRanking.setItems(jogadorTable);             
}
项目:ETUmulator    文件:RegistersTab.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    registerFile.addObserver(this);
    pc.addObserver(this);
    lr.addObserver(this);
    navigator.addObserver(this);
    property.setCellValueFactory(new PropertyValueFactory<>("property"));
    property.setComparator(new NavigatorRowComparator());
    value.setCellValueFactory(new PropertyValueFactory<>("value"));
    for(int i = 0; i < 13; i++) {
        String registerName = "r" + Integer.toString(i);
        data.add(new NavigatorRow(registerName, registerFile.getValue(registerName)));
    }
    data.add(new NavigatorRow("LR", lr.getValue()));
    data.add(new NavigatorRow("PC", pc.getValue()));
    table.setItems(data);
}
项目:KnapsackFX    文件:FXMLDocumentController.java   
@Override
public void initialize(URL url, ResourceBundle rb) {
    itemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    itemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    GAitemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    GAitemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    SAitemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    SAitemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    DPitemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    DPitemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    HCitemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    HCitemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    TSitemVColumn.setCellValueFactory(new PropertyValueFactory("value"));
    TSitemWColumn.setCellValueFactory(new PropertyValueFactory("weight"));
    HCVersionBox.getItems().addAll("Standard", "Stochastic", "Best First", "HC with Sideways Moves");
    HCVersionBox.getSelectionModel().select(0);
}
项目:atbash-octopus    文件:JWKView.java   
private void defineTable() {
    tableView = new TableView<>();

    TableColumn<JWKItem, String> idCol = new TableColumn<>("ID");
    TableColumn<JWKItem, String> typeCol = new TableColumn<>("Type");
    TableColumn<JWKItem, Boolean> privateCol = new TableColumn<>("Private");
    TableColumn<JWKItem, String> keyUseCol = new TableColumn<>("Key Usage");

    idCol.setCellValueFactory(new PropertyValueFactory<>("kid"));
    typeCol.setCellValueFactory(new PropertyValueFactory<>("keyType"));
    privateCol.setCellValueFactory(new PropertyValueFactory<>("privatePart"));
    keyUseCol.setCellValueFactory(new PropertyValueFactory<>("keyUse"));

    tableView.getColumns().addAll(idCol, typeCol, privateCol, keyUseCol);
    ObservableList<JWKItem> list = getItemList();
    tableView.setItems(list);

}
项目:atbash-octopus    文件:ImportJWKView.java   
private void defineTable() {
    tableView = new TableView<>();

    TableColumn<JWKItem, String> idCol = new TableColumn<>("ID");
    TableColumn<JWKItem, String> typeCol = new TableColumn<>("Type");
    TableColumn<JWKItem, Boolean> privateCol = new TableColumn<>("Private");
    TableColumn<JWKItem, String> keyUseCol = new TableColumn<>("Key Usage");

    idCol.setCellValueFactory(new PropertyValueFactory<>("kid"));
    typeCol.setCellValueFactory(new PropertyValueFactory<>("keyType"));
    privateCol.setCellValueFactory(new PropertyValueFactory<>("privatePart"));
    keyUseCol.setCellValueFactory(new PropertyValueFactory<>("keyUse"));

    tableView.getColumns().addAll(idCol, typeCol, privateCol, keyUseCol);
    ObservableList<JWKItem> list = getItemList();
    tableView.setItems(list);

    /*
    tableView.getSelectionModel().selectedItemProperty().addListener((obs, oldSelection, newSelection) -> {
        if (newSelection != null) {
            System.out.println(newSelection);
        }
    });
    */

}
项目:vertx-generator    文件:HistoryConfigController.java   
/**
 * 初始化配置table
 */
public void initTable() {
    LOG.debug("初始化配置信息表格...");
    ObservableList<HistoryConfigCVF> data = null;
    try {
        data = getHistoryConfig();
    } catch (Exception e) {
        tblConfigInfo.setPlaceholder(new Label("加载配置文件失败!失败原因:\r\n" + e.getMessage()));
        LOG.error("初始化配置信息表格出现异常!!!" + e);
    }

    TableColumn<HistoryConfigCVF, String> tdInfo = new TableColumn<HistoryConfigCVF, String>("配置信息文件名");
    TableColumn<HistoryConfigCVF, String> tdOperation = new TableColumn<HistoryConfigCVF, String>("操作");

    tdInfo.setPrefWidth(320);
    tdInfo.setCellValueFactory(new PropertyValueFactory<>("name"));

    tdOperation.setPrefWidth(198);
    tdOperation.setCellValueFactory(new PropertyValueFactory<>("hbox"));

    tblConfigInfo.getColumns().add(tdInfo);
    tblConfigInfo.getColumns().add(tdOperation);

    tblConfigInfo.setItems(data);
    LOG.debug("初始化配置信息完成!");
}
项目:TOA-DataSync    文件:RankingsController.java   
public RankingsController(DataSyncController instance) {
    this.controller = instance;
    this.teamRankings = FXCollections.observableArrayList();
    this.controller.btnRankUpload.setDisable(true);
    this.controller.colRank.setCellValueFactory(new PropertyValueFactory<>("rank"));
    this.controller.colRankTeam.setCellValueFactory(new PropertyValueFactory<>("teamKey"));
    this.controller.colRankWins.setCellValueFactory(new PropertyValueFactory<>("wins"));
    this.controller.colRankLosses.setCellValueFactory(new PropertyValueFactory<>("losses"));
    this.controller.colRankTies.setCellValueFactory(new PropertyValueFactory<>("ties"));
    this.controller.colRankQP.setCellValueFactory(new PropertyValueFactory<>("qualPoints"));
    this.controller.colRankRP.setCellValueFactory(new PropertyValueFactory<>("rankPoints"));
    this.controller.colRankScore.setCellValueFactory(new PropertyValueFactory<>("highestScore"));
    this.controller.colRankPlayed.setCellValueFactory(new PropertyValueFactory<>("played"));

    this.controller.tableRankings.setItems(this.teamRankings);
}
项目:alchem    文件:InventoryController.java   
public void initializeTable() {
    codeColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Integer>("code"));
    nameColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("name"));
    saltColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("salt"));
    companyColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("company"));
    typeColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("type"));
    hsnColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("hsn"));
    batchColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("batch"));
    expiryColumn.setCellValueFactory(new PropertyValueFactory<Medicine, String>("expiry"));
    quantityColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Integer>("quantity"));
    mrpColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Float>("mrp"));
    costColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Float>("cost"));
    sgstColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Integer>("sgst"));
    cgstColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Integer>("cgst"));
    igstColumn.setCellValueFactory(new PropertyValueFactory<Medicine, Integer>("igst"));

    medicineTableView.setItems(getMedicine());

}
项目:ExtremeGuiMakeover    文件:MovieTableView.java   
public MovieTableView() {

        TableColumn<Movie, String> titleColumn = new TableColumn<>("Title");
        titleColumn.setPrefWidth(300);
        titleColumn.setCellValueFactory(new PropertyValueFactory<>("title"));

        TableColumn<Movie, Integer> yearColumn = new TableColumn<>("Year");
        yearColumn.setPrefWidth(80);
        yearColumn.setCellValueFactory(new PropertyValueFactory<>("year"));

        TableColumn<Movie, String> genreColumn = new TableColumn<>("Genre");
        genreColumn.setPrefWidth(140);
        genreColumn.setCellValueFactory(new PropertyValueFactory<>("genre"));

        TableColumn<Movie, Integer> directorColumn = new TableColumn<>("Director");
        directorColumn.setPrefWidth(140);
        directorColumn.setCellValueFactory(new PropertyValueFactory<>("director"));

        TableColumn<Movie, Integer> ratingColumn = new TableColumn<>("Rating");
        ratingColumn.setPrefWidth(120);
        ratingColumn.setCellValueFactory(new PropertyValueFactory<>("rating"));

        getColumns().setAll(titleColumn, yearColumn, genreColumn, directorColumn, ratingColumn);
    }
项目:drd    文件:HeroCreatorController3.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    title = resources.getString(R.Translate.GUIDE_NEW_HERO_3_TITLE);
    tableItems.setItems(items);
    selectedItem.bind(tableItems.getSelectionModel().selectedIndexProperty());

    columnImage.setCellValueFactory(new PropertyValueFactory<>("image"));
    columnImage.setCellFactory(param -> CellUtils.forImage());
    columnName.setCellValueFactory(new PropertyValueFactory<>("name"));
    columnWeight.setCellValueFactory(new PropertyValueFactory<>("weight"));
    columnAmmount.setCellValueFactory(new PropertyValueFactory<>("ammount"));
    columnAmmount.setCellFactory(param -> CellUtils.forMaxActValue());

    ObservableMergers.mergeList(databaseItem -> new ChoiceEntry(databaseItem), item_registry,
        ItemRegistry.getINSTANCE().getRegistry());

    btnRemoveItem.disableProperty().bind(selectedItem.lessThan(0));
}
项目:drd    文件:ShopGeneralController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    this.resources = resources;
    tableGeneralItems.setItems(generalItems);
    tableGeneralItems.getSelectionModel().selectedIndexProperty()
        .addListener((observable, oldValue, newValue) -> selectedRowIndex.setValue(newValue));

    columnImage.setCellValueFactory(new PropertyValueFactory<>("image"));
    columnImage.setCellFactory(param -> CellUtils.forImage());
    columnName.setCellValueFactory(new PropertyValueFactory<>("name"));
    columnAuthor.setCellValueFactory(new PropertyValueFactory<>("author"));
    columnWeight.setCellValueFactory(new PropertyValueFactory<>("weight"));
    columnPrice.setCellValueFactory(new PropertyValueFactory<>("price"));
    columnAmmount.setCellValueFactory(new PropertyValueFactory<>("ammount"));
    columnAmmount.setCellFactory(param -> CellUtils.forMaxActValue());

    ObservableMergers.mergeList(GeneralEntry::new, generalItems, manager.selectAll());
}
项目:drd    文件:ShopWeaponRangedController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    this.resources = resources;
    tableRangedWeapons.setItems(rangedWeapons);
    tableRangedWeapons.getSelectionModel().selectedIndexProperty()
        .addListener((observable, oldValue, newValue) -> selectedRowIndex.setValue(newValue));

    columnImage.setCellValueFactory(new PropertyValueFactory<>("image"));
    columnImage.setCellFactory(param -> CellUtils.forImage());
    columnName.setCellValueFactory(new PropertyValueFactory<>("name"));
    columnAuthor.setCellValueFactory(new PropertyValueFactory<>("author"));
    columnStrength.setCellValueFactory(new PropertyValueFactory<>("strength"));
    columnRampancy.setCellValueFactory(new PropertyValueFactory<>("rampancy"));
    columnType.setCellValueFactory(new PropertyValueFactory<>("weaponType"));
    columnRangeLow.setCellValueFactory(new PropertyValueFactory<>("rangeLow"));
    columnRangeMedium.setCellValueFactory(new PropertyValueFactory<>("rangeMedium"));
    columnRangeLong.setCellValueFactory(new PropertyValueFactory<>("rangeLong"));
    columnType.setCellFactory(
        TextFieldTableCell.forTableColumn(StringConvertors.forRangedWeaponType(translator)));
    columnWeight.setCellValueFactory(new PropertyValueFactory<>("weight"));
    columnPrice.setCellValueFactory(new PropertyValueFactory<>("price"));
    columnAmmount.setCellValueFactory(new PropertyValueFactory<>("ammount"));
    columnAmmount.setCellFactory(param -> CellUtils.forMaxActValue());

    ObservableMergers.mergeList(RangedWeaponEntry::new, rangedWeapons, manager.selectAll());
}
项目:drd    文件:ShopBackpackController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    this.resources = resources;
    tableBackpacks.setItems(backpacks);
    tableBackpacks.getSelectionModel().selectedIndexProperty()
        .addListener((observable, oldValue, newValue) -> selectedRowIndex.setValue(newValue));

    columnImage.setCellValueFactory(new PropertyValueFactory<>("image"));
    columnImage.setCellFactory(param -> CellUtils.forImage());
    columnName.setCellValueFactory(new PropertyValueFactory<>("name"));
    columnAuthor.setCellValueFactory(new PropertyValueFactory<>("author"));
    columnWeight.setCellValueFactory(new PropertyValueFactory<>("weight"));
    columnMaxLoad.setCellValueFactory(new PropertyValueFactory<>("maxLoad"));
    columnPrice.setCellValueFactory(new PropertyValueFactory<>("price"));
    columnAmmount.setCellValueFactory(new PropertyValueFactory<>("ammount"));
    columnAmmount.setCellFactory(param -> CellUtils.forMaxActValue());

    ObservableMergers.mergeList(BackpackEntry::new, backpacks, manager.selectAll());
}
项目:drd    文件:ShopArmorController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    this.resources = resources;
    tableArmor.setItems(armors);
    tableArmor.getSelectionModel().selectedIndexProperty()
        .addListener((observable, oldValue, newValue) -> selectedRowIndex.setValue(newValue));

    columnImage.setCellValueFactory(new PropertyValueFactory<>("image"));
    columnImage.setCellFactory(param -> CellUtils.forImage());
    columnName.setCellValueFactory(new PropertyValueFactory<>("name"));
    columnAuthor.setCellValueFactory(new PropertyValueFactory<>("author"));
    columnDefenceNumber.setCellValueFactory(new PropertyValueFactory<>("defenceNumber"));
    columnMinimumStrength.setCellValueFactory(new PropertyValueFactory<>("minimumStrength"));
    columnWeight.setCellValueFactory(new PropertyValueFactory<>("weight"));
    columnPrice.setCellValueFactory(new PropertyValueFactory<>("price"));
    columnAmmount.setCellValueFactory(new PropertyValueFactory<>("ammount"));
    columnAmmount.setCellFactory(param -> CellUtils.forMaxActValue());

    ObservableMergers.mergeList(armor -> new ArmorEntry(armor, height),
        armors, manager.selectAll());
}
项目:Dr-Assistant    文件:DrugsController.java   
private void loadDrugs() {
    drugDefault = true;
    paginate.setTotal(totalDurg);
    paginate.setPerPage(10);
    paginate.setEnd(10);
    drugTable.getItems().clear();
    drugs = drugGetway.drugs(paginate);

    clmSl.setCellValueFactory(new PropertyValueFactory<>("sl"));
    clmDrugName.setCellValueFactory(new PropertyValueFactory<>("name"));
    clmGenericName.setCellValueFactory(new PropertyValueFactory<>("genricName"));
    clmNote.setCellValueFactory(new PropertyValueFactory<>("note"));
    clmUseInPrescription.setCellValueFactory(new PropertyValueFactory<>("useInPrescription"));
    clmUseInTemplate.setCellValueFactory(new PropertyValueFactory<>("useInTemplate"));
    clmAction.setCellFactory(action);
    drugTable.setItems(drugs);
}
项目:keyboard-light-composer    文件:ExternalMonitor.java   
@Override
public void initialize(URL location, ResourceBundle resources) {

    tableColumnScope.setCellValueFactory(new PropertyValueFactory<>("scope"));
    tableColumnIdentifier.setCellValueFactory(new PropertyValueFactory<>("identifier"));
    tableColumnParameter.setCellValueFactory(new PropertyValueFactory<>("parameter"));
    tableColumnType.setCellValueFactory(new PropertyValueFactory<>("type"));
    tableColumnValue.setCellValueFactory(new PropertyValueFactory<>("data"));

    PauseTransition refreshLoop = new PauseTransition();
    refreshLoop.setOnFinished(e -> {
        if (toggleButtonRefresh.isSelected())
            refresh();
        refreshLoop.playFromStart();
    });
    refreshLoop.setDuration(Duration.seconds(0.5));
    refreshLoop.playFromStart();

    refresh();
}
项目:in-store-api-java-sdk    文件:SecondPageController.java   
private void initTable() {
    TableColumn<TransactionProposal, String> columnName = new TableColumn<>("State");
    columnName.setCellValueFactory(new PropertyValueFactory<>("state"));
    columnName.setMinWidth(100D);

    TableColumn<TransactionProposal, String> amountColumn = new TableColumn<>("Amount");
    amountColumn.setCellValueFactory(new PropertyValueFactory<>("amount"));
    amountColumn.setMinWidth(100D);

    TableColumn<TransactionProposal, String> dateColumn = new TableColumn<>("Date");
    dateColumn.setCellValueFactory(new PropertyValueFactory<>("transactionDate"));
    dateColumn.setMinWidth(300D);

    TableColumn<TransactionProposal, String> uidColumn = new TableColumn<>("ID");
    uidColumn.setCellValueFactory(new PropertyValueFactory<>("transactionId"));
    uidColumn.setMinWidth(100D);

    transactionsTable.getColumns().addAll(Arrays.asList(columnName, amountColumn, dateColumn, uidColumn));
}
项目:IDBuilderFX    文件:ViewMuliParsedController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    name.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("name"));
    email.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("email"));
    mobile.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("mobile"));
    add.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("add"));
    dob.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("dob"));
    sex.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("sex"));
    fname.setCellValueFactory(new PropertyValueFactory<EmployeeClass, String>("fname"));
    photo.setCellValueFactory(new PropertyValueFactory<EmployeeClass, ImageView>("photo"));
    try {
        buildData();
    } catch (SQLException | IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

}
项目:FlappySpaceShip    文件:ViewController.java   
/** Initialize the table and load content. */
public void initTable() {
    TableColumn name = new TableColumn("");
    name.setMinWidth(100);
    name.setCellValueFactory(
            new PropertyValueFactory<>("name"));

    TableColumn score = new TableColumn("");
    score.setMinWidth(50);
    score.setCellValueFactory(
            new PropertyValueFactory<>("score"));

    tableView.getColumns().addAll(name, score);


    score.setStyle("-fx-background-color: transparent;");
    name.setStyle("-fx-background-color: transparent;");

    highScoreArrayList = highScoreDAOImp.getAllHighScores().getHighScore();
    lista = FXCollections.observableArrayList();
    for (HighScore highScore : highScoreArrayList) {
        lista.add(highScore);
    }

    tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
    tableView.setItems(lista);
}
项目:Money-Manager    文件:MakeATransactionController.java   
@SuppressWarnings("unchecked")
private void showBorroTblData() {
    try {
        lendlblTableHeading.setText("Borrow Summary");
        lendTblColumnName.setCellValueFactory(new PropertyValueFactory<>("boWhom"));
        lendTblColumnDate.setCellValueFactory(new PropertyValueFactory<>("boDate"));
        lendTblColumnAmount.setCellValueFactory(new PropertyValueFactory<>("boExactTk"));
        lendTable.setItems(new TableData().borrowTableData());
    } catch (Exception e) {}
}
项目:Money-Manager    文件:MakeATransactionController.java   
@SuppressWarnings("unchecked")
private void showLendTblData() {
    lendlblTableHeading.setText("Lend Summary");
    try {
        lendTblColumnName.setCellValueFactory(new PropertyValueFactory<>("leWhom"));
        lendTblColumnDate.setCellValueFactory(new PropertyValueFactory<>("leDate"));
        lendTblColumnAmount.setCellValueFactory(new PropertyValueFactory<>("leExactTk"));
        lendTable.setItems(new TableData().lendTableData());
    } catch (Exception e) {}
}
项目:KutuphaneOtomasyonSistemi    文件:KitapListeleController.java   
private void initCol() 
{
    titleCol.setCellValueFactory(new PropertyValueFactory<>("title"));
    idCol.setCellValueFactory(new PropertyValueFactory<>("id"));
    authorCol.setCellValueFactory(new PropertyValueFactory<>("author"));
    publisherCol.setCellValueFactory(new PropertyValueFactory<>("publisher"));
    availableCol.setCellValueFactory(new PropertyValueFactory<>("available"));

}
项目:marathonv5    文件:TaskSample.java   
public TaskSample() {
    TableView<DailySales> tableView = new TableView<DailySales>();
    Region veil = new Region();
    veil.setStyle("-fx-background-color: rgba(0, 0, 0, 0.4)");
    ProgressIndicator p = new ProgressIndicator();
    p.setMaxSize(150, 150);
    //Define table columns
    TableColumn idCol = new TableColumn();
    idCol.setText("ID");
    idCol.setCellValueFactory(new PropertyValueFactory("dailySalesId"));
    tableView.getColumns().add(idCol);
    TableColumn qtyCol = new TableColumn();
    qtyCol.setText("Qty");
    qtyCol.setCellValueFactory(new PropertyValueFactory("quantity"));
    tableView.getColumns().add(qtyCol);
    TableColumn dateCol = new TableColumn();
    dateCol.setText("Date");
    dateCol.setCellValueFactory(new PropertyValueFactory("date"));
    dateCol.setMinWidth(240);
    tableView.getColumns().add(dateCol);
    StackPane stack = new StackPane();
    stack.getChildren().addAll(tableView, veil, p);

    // Use binding to be notified whenever the data source chagnes
    Task<ObservableList<DailySales>> task = new GetDailySalesTask();
    p.progressProperty().bind(task.progressProperty());
    veil.visibleProperty().bind(task.runningProperty());
    p.visibleProperty().bind(task.runningProperty());
    tableView.itemsProperty().bind(task.valueProperty());

    getChildren().add(stack);
    new Thread(task).start();
}
项目:ShowMilhaoPOOJava    文件:ControllerLayoutRanking.java   
@FXML
private void limparRanking(ActionEvent e) {     

    jogadorDao.limparRanking();

    tblClmPosicao.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, Integer>("linhaTable"));        
    tblClmNome.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, String>("nomeTable"));
    tblClmPontuacao.setCellValueFactory(new PropertyValueFactory<ModelJogadorTable, Integer>("pontuacaoTable"));       

    ObservableList<ModelJogadorTable> jogadorTable = FXCollections.observableArrayList(mostrarRankingView());
    tblRanking.setItems(jogadorTable);
}
项目:Goliath-Overclocking-Utility-FX    文件:PowerMizerPane.java   
public PowerMizerPane()
{
    super();

    table = new TableView<>(FXCollections.observableList(InstanceProvider.getPerformanceLevels()));
    table.setMinHeight(125);
    table.setMaxHeight(125);
    table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
    table.setEditable(false);

    perfLevel = new TableColumn<>("Performance Level");
    perfLevel.setCellValueFactory(new PropertyValueFactory("name"));
    perfLevel.setSortable(false);

    minClock = new TableColumn<>("Min Core(MHz)");
    minClock.setCellValueFactory(new PropertyValueFactory("minCore"));
    minClock.setSortable(false);

    maxClock = new TableColumn<>("Max Core(MHz)");
    maxClock.setCellValueFactory(new PropertyValueFactory("maxCore"));
    maxClock.setSortable(false);

    minMemory = new TableColumn<>("Min Memory(MHz)");
    minMemory.setCellValueFactory(new PropertyValueFactory("minMemory"));
    minMemory.setSortable(false);

    maxMemory = new TableColumn<>("Max Memory(MHz)");
    maxMemory.setCellValueFactory(new PropertyValueFactory("maxMemory"));
    maxMemory.setSortable(false);

    table.getColumns().addAll(perfLevel, minClock, maxClock, minMemory, maxMemory);

    performancePane = new PerformanceModePane();

    super.getChildren().addAll(table, performancePane);
}
项目:Goliath-Overclocking-Utility-FX    文件:InformationPane.java   
public InformationPane()
{
    super();
    super.setPrefHeight(AppTabPane.CONTENT_HEIGHT);
    super.setPrefWidth(AppTabPane.CONTENT_WIDTH);

    infoTable = new TableView<>(FXCollections.observableArrayList(InstanceProvider.getAttributes()));

    if(AppSettings.getShowExtraAttributeInfo())
    {
        cmdName = new TableColumn<>("Cmd Name");
        cmdName.setCellValueFactory(new PropertyValueFactory("cmdName"));

        cmdValue = new TableColumn<>("Cmd Value");
        cmdValue.setCellValueFactory(new PropertyValueFactory("cmdValue"));
    }

    displayName = new TableColumn<>("Name");
    displayName.setCellValueFactory(new PropertyValueFactory("displayName"));

    displayValue = new TableColumn<>("Value");
    displayValue.setCellValueFactory(new PropertyValueFactory("displayValue"));

    if(!AppSettings.getShowExtraAttributeInfo())
        infoTable.getColumns().addAll(displayName, displayValue);
    else
        infoTable.getColumns().addAll(cmdName, displayName, cmdValue, displayValue);

    infoTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);

    infoTable.setPrefWidth(AppTabPane.CONTENT_WIDTH);
    infoTable.setPrefHeight(AppTabPane.CONTENT_HEIGHT);
    infoTable.setEditable(false);

    super.getChildren().add(infoTable);
}
项目:Luna-Exam-Builder    文件:OverviewCtrl.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    noImage = new Image(MainApp.class.getResourceAsStream("resources/no-image.jpg"));
    //POPULATE THE TABLE
    questionTable.setItems(MainApp.questionObservableList);
    titleColumn.setCellValueFactory(new PropertyValueFactory<>("title"));
    answerColumn.setCellValueFactory(new PropertyValueFactory<>("answer"));
    valueColumn.setCellValueFactory(new PropertyValueFactory<>("value"));
    //set selection event
    questionTable.getSelectionModel().selectedItemProperty().addListener(
            (observable, oldValue, newValue) -> showQuestion(newValue));
    System.out.println(resources);
}
项目:ETUmulator    文件:MemoryTab.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    memory.addObserver(this);
    navigator.addObserver(this);
    property.setCellValueFactory(new PropertyValueFactory<>("property"));
    property.setComparator(new NavigatorRowComparator());
    value.setCellValueFactory(new PropertyValueFactory<>("value"));
    table.setItems(data);
}
项目:ETUmulator    文件:StackTab.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    stack.addObserver(this);
    navigator.addObserver(this);
    property.setCellValueFactory(new PropertyValueFactory<>("property"));
    property.setComparator(new NavigatorRowComparator());
    value.setCellValueFactory(new PropertyValueFactory<>("value"));
    table.setItems(data);
}
项目:Anime-Downloader    文件:NineAnimeController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    // TODO Auto-generated method stub
    name.setCellValueFactory(new PropertyValueFactory<Anime,String>("name"));
    status.setCellValueFactory(new PropertyValueFactory<Anime,String>("status"));

    table.setItems(list);
    errormsg.setTextFill(Paint.valueOf("red"));

    choicebox.setItems(FXCollections.observableArrayList("Provide Anime Name",
            "Provide URL to a particular episode"));

}
项目:Anime-Downloader    文件:AnimeHeavenController.java   
@Override
public void initialize(URL location, ResourceBundle resources) {
    // TODO Auto-generated method stub
    name.setCellValueFactory(new PropertyValueFactory<Anime,String>("name"));
    status.setCellValueFactory(new PropertyValueFactory<Anime,String>("status"));

    table.setItems(list);
}
项目:SnapDup    文件:MapDeviceDialog.java   
@Override
public void initialize(URL location, ResourceBundle resources)
{
    deviceNameColumn.setCellValueFactory(new PropertyValueFactory<Pair<String, String>, String>("First"));
    deviceLocationColumn.setCellValueFactory(new PropertyValueFactory<Pair<String, String>, String>("Second"));
    deviceLocationColumn.setCellFactory(new TableDeviceLocationCellFactory<Pair<String, String>>());

    deviceLocationColumn.setOnEditCommit(new EditCommit());
}
项目:SnapDup    文件:MainDisplay.java   
@Override
public void initialize(URL location, ResourceBundle resources) 
{
    ObjectEventDispatcher.addEvent(GenerateScriptContainer.class, data -> objectEvent(data));
    ObjectEventDispatcher.addEvent(ObservableDataContainer.class, data -> objectEvent(data));
    ObjectEventDispatcher.addEvent(DeviceListContainer.class, data -> objectEvent(data));

    dupTableView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    /* add listener to sync TableView click with ListView */
    dupTableView.getSelectionModel().selectedItemProperty().addListener(new TableViewSelection(txtArea));

    /* add callback to left checkbox */
    chkOneColumn.setCellFactory(new TableCheckBoxCellFactory<DupData>(new CheckBoxLeftCallBack()));
    deviceOneColumn.setCellValueFactory(new PropertyValueFactory<DupData, String>("device1"));
    fileOneColumn.setCellFactory(new FileTableCellFactory(new SelectLeftCallBack(), propertyList));
    fileOneColumn.setCellValueFactory(new PropertyValueFactory<DupData, String>("File1"));
    /* add callback to right checkbox */
    chkTwoColumn.setCellFactory(new TableCheckBoxCellFactory<DupData>(new CheckBoxRightCallBack()));
    deviceTwoColumn.setCellValueFactory(new PropertyValueFactory<DupData, String>("device2"));
    fileTwoColumn.setCellFactory(new FileTableCellFactory(new SelectRightCallBack(), propertyList));
    fileTwoColumn.setCellValueFactory(new PropertyValueFactory<DupData, String>("File2"));
    sizeColumn.setCellValueFactory(new FileSizePropertyFactory());// new PropertyValueFactory<DupData, Long>("Size"));

    chkOneColumn.setId("ChkLeft");
    chkTwoColumn.setId("ChkRight");
    fileOneColumn.setId("FileLeft");
    fileTwoColumn.setId("FileRight");
}
项目:Dr-Assistant    文件:NewPrescriptionController.java   
public void loadDrugTable() {
    drugTable.getItems().clear();
    drugTable.getItems().addAll(templateDrugList);
    clmSl.setCellValueFactory(new PropertyValueFactory<>("id"));
    clmDrugName.setCellValueFactory(new PropertyValueFactory<>("drug_name"));
    clmDrugType.setCellValueFactory(new PropertyValueFactory<>("type"));
    clmAdvice.setCellValueFactory(new PropertyValueFactory<>("advice"));
    clmDuration.setCellValueFactory(new PropertyValueFactory<>("duration"));
    clmStrength.setCellValueFactory(new PropertyValueFactory<>("strength"));
    clmDose.setCellValueFactory(new PropertyValueFactory<>("dose"));
    clmAction.setCellFactory(action);
}