本文整理了Java中javafx.scene.control.ListView.setEditable()
方法的一些代码示例,展示了ListView.setEditable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setEditable()
方法的具体详情如下:
包路径:javafx.scene.control.ListView
类名称:ListView
方法名:setEditable
暂无
代码示例来源:origin: speedment/speedment
@Override
protected Node createUndecoratedEditor() {
final VBox container = new VBox();
final ListView<String> listView = new ListView<>(strings);
listView.setCellFactory(view -> new EnumCell(strings));
listView.setEditable(true);
listView.setMaxHeight(USE_PREF_SIZE);
listView.setPrefHeight(LIST_HEIGHT);
final HBox controls = new HBox(SPACING);
controls.setAlignment(Pos.CENTER);
controls.getChildren().addAll(
addButton(listView),
removeButton(listView),
populateButton(listView)
);
container.setSpacing(SPACING);
container.getChildren().addAll(listView, controls);
hideShowBehaviour(container);
return container;
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
listView.setEditable(false);
代码示例来源:origin: PhoenicisOrg/phoenicis
this.repositoryListView.setPrefHeight(0);
this.repositoryListView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
this.repositoryListView.setEditable(true);
this.repositoryListView.setCellFactory(param -> new DragableRepositoryListCell((repositoryUrl, toIndex) -> {
this.repositoryManager.moveRepository(repositoryUrl, toIndex.intValue());
内容来源于网络,如有侵权,请联系作者删除!