本文整理汇总了Java中javafx.scene.control.cell.ChoiceBoxTreeTableCell类的典型用法代码示例。如果您正苦于以下问题:Java ChoiceBoxTreeTableCell类的具体用法?Java ChoiceBoxTreeTableCell怎么用?Java ChoiceBoxTreeTableCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ChoiceBoxTreeTableCell类属于javafx.scene.control.cell包,在下文中一共展示了ChoiceBoxTreeTableCell类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setChoiceboxCellEditor
import javafx.scene.control.cell.ChoiceBoxTreeTableCell; //导入依赖的package包/类
private void setChoiceboxCellEditor(boolean isCustom) {
for (Iterator it = testedControl.getColumns().iterator(); it.hasNext();) {
TreeTableColumn col = (TreeTableColumn) it.next();
String colName = col.getText();
final ObservableList<String> items = FXCollections.observableArrayList();
for (DataItem dataItem : allData) {
items.add(dataItem.get(colName).get());
}
if (!isCustom) {
col.setCellFactory(ChoiceBoxTreeTableCell.forTreeTableColumn(items));
} else {
col.setCellFactory(new Callback() {
public Object call(Object p) {
return new EditingChoiceBoxCell(items);
}
});
}
}
}
示例2: reset
import javafx.scene.control.cell.ChoiceBoxTreeTableCell; //导入依赖的package包/类
public static void reset() {
add(Node.class, JavaFXElement.class);
add(TextInputControl.class, JavaFXTextInputControlElement.class);
add(HTMLEditor.class, JavaFXHTMLEditor.class);
add(CheckBox.class, JavaFXCheckBoxElement.class);
add(ToggleButton.class, JavaFXToggleButtonElement.class);
add(Slider.class, JavaFXSliderElement.class);
add(Spinner.class, JavaFXSpinnerElement.class);
add(SplitPane.class, JavaFXSplitPaneElement.class);
add(ProgressBar.class, JavaFXProgressBarElement.class);
add(ChoiceBox.class, JavaFXChoiceBoxElement.class);
add(ColorPicker.class, JavaFXColorPickerElement.class);
add(ComboBox.class, JavaFXComboBoxElement.class);
add(DatePicker.class, JavaFXDatePickerElement.class);
add(TabPane.class, JavaFXTabPaneElement.class);
add(ListView.class, JavaFXListViewElement.class);
add(TreeView.class, JavaFXTreeViewElement.class);
add(TableView.class, JavaFXTableViewElement.class);
add(TreeTableView.class, JavaFXTreeTableViewElement.class);
add(CheckBoxListCell.class, JavaFXCheckBoxListCellElement.class);
add(ChoiceBoxListCell.class, JavaFXChoiceBoxListCellElement.class);
add(ComboBoxListCell.class, JavaFXComboBoxListCellElemnt.class);
add(CheckBoxTreeCell.class, JavaFXCheckBoxTreeCellElement.class);
add(ChoiceBoxTreeCell.class, JavaFXChoiceBoxTreeCellElement.class);
add(ComboBoxTreeCell.class, JavaFXComboBoxTreeCellElement.class);
add(TableCell.class, JavaFXTableViewCellElement.class);
add(CheckBoxTableCell.class, JavaFXCheckBoxTableCellElement.class);
add(ChoiceBoxTableCell.class, JavaFXChoiceBoxTableCellElement.class);
add(ComboBoxTableCell.class, JavaFXComboBoxTableCellElemnt.class);
add(TreeTableCell.class, JavaFXTreeTableCellElement.class);
add(CheckBoxTreeTableCell.class, JavaFXCheckBoxTreeTableCell.class);
add(ChoiceBoxTreeTableCell.class, JavaFXChoiceBoxTreeTableCell.class);
add(ComboBoxTreeTableCell.class, JavaFXComboBoxTreeTableCell.class);
}
示例3: _getValue
import javafx.scene.control.cell.ChoiceBoxTreeTableCell; //导入依赖的package包/类
@SuppressWarnings("unchecked") @Override public String _getValue() {
@SuppressWarnings("rawtypes")
ChoiceBoxTreeTableCell cell = (ChoiceBoxTreeTableCell) node;
@SuppressWarnings("rawtypes")
StringConverter converter = cell.getConverter();
if (converter != null) {
return converter.toString(cell.getItem());
}
return cell.getItem().toString();
}
示例4: testGetChoiceBoxTreeTableCellAdjuster
import javafx.scene.control.cell.ChoiceBoxTreeTableCell; //导入依赖的package包/类
@Test
public void testGetChoiceBoxTreeTableCellAdjuster() {
Adjuster adjuster = Adjuster.getAdjuster(ChoiceBoxTreeTableCell.class);
assertThat(adjuster, is(instanceOf(ControlAdjuster.class)));
assertThat(adjuster.getNodeClass(), is(sameInstance(Control.class)));
}