本文整理汇总了Java中javafx.collections.ObservableList.removeAll方法的典型用法代码示例。如果您正苦于以下问题:Java ObservableList.removeAll方法的具体用法?Java ObservableList.removeAll怎么用?Java ObservableList.removeAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.collections.ObservableList
的用法示例。
在下文中一共展示了ObservableList.removeAll方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDependency
import javafx.collections.ObservableList; //导入方法依赖的package包/类
/**
* Handle the 'Add dependency' button action
*/
public void addDependency()
{
// Table items:
ObservableList<Task> list = FXCollections.observableArrayList(MainController.getSPC().getCurrentTasks());
list.removeAll(this.dependencies.getItems());
if (this.task != null)
{
list.remove(this.task);
list.removeAll(this.task.getDependencies());
}
// =================
// Parse selected Tasks:
this.dependencies.getItems().addAll(TaskController.taskSelectionWindow(list));
// =================
}
示例2: processChangeType
import javafx.collections.ObservableList; //导入方法依赖的package包/类
/**
* Handle changing type of heightmap.
*/
@FXThread
private void processChangeType(@NotNull final HeightMapType newValue) {
final VBox root = getSettingsRoot();
final ObservableList<Node> children = root.getChildren();
children.removeAll(flatSettings, heightMapSettings, hillSettings);
switch (newValue) {
case FLAT: {
children.add(flatSettings);
break;
}
case HILL: {
children.add(hillSettings);
break;
}
case IMAGE_BASED: {
children.add(heightMapSettings);
break;
}
}
validate();
getDialog().sizeToScene();
}
示例3: processChange
import javafx.collections.ObservableList; //导入方法依赖的package包/类
/**
* Handle changing sky type.
*/
@FXThread
private void processChange(@NotNull final SkyType newValue) {
final VBox settingsRoot = getSettingsRoot();
final GridPane singleTextureSettings = getSingleTextureSettings();
final GridPane multiplyTextureSettings = getMultipleTextureSettings();
final ObservableList<javafx.scene.Node> children = settingsRoot.getChildren();
children.removeAll(singleTextureSettings, getMultipleTextureSettings());
switch (newValue) {
case SINGLE_TEXTURE: {
children.add(singleTextureSettings);
break;
}
case MULTIPLE_TEXTURE: {
children.add(multiplyTextureSettings);
}
}
validate();
getDialog().sizeToScene();
}
示例4: addTask
import javafx.collections.ObservableList; //导入方法依赖的package包/类
/**
* Handle the 'Add Task' button action
*/
public void addTask()
{
// Table items:
ObservableList<Task> list = FXCollections.observableArrayList(MainController.getSPC().getCurrentTasks());
list.removeAll(this.tasks.getItems());
if (this.milestone != null)
list.removeAll(this.milestone.getTasks());
// =================
// Parse selected Tasks:
this.tasks.getItems().addAll(TaskController.taskSelectionWindow(list));
// =================
}
示例5: addTask
import javafx.collections.ObservableList; //导入方法依赖的package包/类
/**
* Handle the 'Add Task' button action
*/
public void addTask()
{
// Table items:
ObservableList<Task> list = FXCollections.observableArrayList(MainController.getSPC().getCurrentTasks());
list.removeAll(this.tasks.getItems());
if (this.activity != null)
list.remove(this.activity.getTasks());
list.removeIf(e -> !e.dependenciesComplete());
// =================
// Parse selected Tasks:
this.tasks.getItems().addAll(TaskController.taskSelectionWindow(list));
// =================
}