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


Java ConnectionWidget.removeFromParent方法代码示例

本文整理汇总了Java中org.netbeans.api.visual.widget.ConnectionWidget.removeFromParent方法的典型用法代码示例。如果您正苦于以下问题:Java ConnectionWidget.removeFromParent方法的具体用法?Java ConnectionWidget.removeFromParent怎么用?Java ConnectionWidget.removeFromParent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.visual.widget.ConnectionWidget的用法示例。


在下文中一共展示了ConnectionWidget.removeFromParent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: manageTargetWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeComposition, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetMergeComposition.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetMergeComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();

    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:15,代码来源:MyPopupProviderWidgetMergeComposition.java

示例2: manageSourceWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeCompositionTarget, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetMergeCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetMergeCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:14,代码来源:MyPopupProviderWidgetMergeComposition.java

示例3: manageTargetWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetChainComposition caratteristicheWidgetChainComposition, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetChainComposition.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetChainComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();

    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:15,代码来源:MyPopupProviderWidgetChainComposition.java

示例4: manageSourceWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetChainComposition caratteristicheWidgetChainCompositionTarget, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetChainCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetChainCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:14,代码来源:MyPopupProviderWidgetChainComposition.java

示例5: manageTargetWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetConstantComposition caratteristicheWidgetConstantComposition, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetConstantComposition.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetConstantComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();

    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:15,代码来源:MyPopupProviderWidgetConstantComposition.java

示例6: manageSourceWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetConstantComposition caratteristicheWidgetConstantCompositionTarget, LayerWidget mainLayer) {

        AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
        MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
        MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetConstantCompositionTarget.getMutableMappingTask();
        mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
        mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);

        caratteristicheWidgetConstantCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
        caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());

        connectionWidget.removeFromParent();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:14,代码来源:MyPopupProviderWidgetConstantComposition.java

示例7: deleteConnectionAndWidget

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
public void deleteConnectionAndWidget() {
    for (ConnectionWidget connectionWidget : connections) {
        connectionWidget.getSourceAnchor().getRelatedWidget().removeFromParent();
        connectionWidget.getTargetAnchor().getRelatedWidget().removeFromParent();
        connectionWidget.removeFromParent();
    }
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:8,代码来源:ConnectionConstraint.java


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