当前位置: 首页>>代码示例>>Java>>正文


Java ObservableList.removeAll方法代码示例

本文整理汇总了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));
    // =================
}
 
开发者ID:Alienturnedhuman,项目名称:PearPlanner,代码行数:20,代码来源:TaskController.java

示例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();
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:29,代码来源:CreateTerrainDialog.java

示例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();
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:27,代码来源:CreateSkyDialog.java

示例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));
    // =================
}
 
开发者ID:Alienturnedhuman,项目名称:PearPlanner,代码行数:17,代码来源:MilestoneController.java

示例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));
    // =================
}
 
开发者ID:Alienturnedhuman,项目名称:PearPlanner,代码行数:18,代码来源:ActivityController.java


注:本文中的javafx.collections.ObservableList.removeAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。