• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CheckComboBox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.controlsfx.control.CheckComboBox的典型用法代码示例。如果您正苦于以下问题:Java CheckComboBox类的具体用法?Java CheckComboBox怎么用?Java CheckComboBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CheckComboBox类属于org.controlsfx.control包,在下文中一共展示了CheckComboBox类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ruleViolationFilter

import org.controlsfx.control.CheckComboBox; //导入依赖的package包/类
@Override
public Predicate<RuleViolation> ruleViolationFilter() {

	return ruleViolation -> {
		CheckComboBox<RulePriority> checkComboBox = this.checkedListComposite.getViolationCheckComboBox();
		ObservableList<RulePriority> checkedItems = checkComboBox.getCheckModel().getCheckedItems();
		Rule rule = ruleViolation.getRule();
		RulePriority priority = rule.getPriority();
		return checkedItems.stream().filter(c -> c == priority).findFirst().isPresent();

	};
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:13,代码来源:PMDViolationbyBarChartComposite.java


示例2: initRouteSelector

import org.controlsfx.control.CheckComboBox; //导入依赖的package包/类
/**
 * Initializes the control for choosing/creating maps
 */
public void initRouteSelector() {
    routeCombo = new CheckComboBox<>();
    // Make sure window resizes with combo box size changes due to display additions
    routeCombo.layoutBoundsProperty().addListener((v, o, n) -> {
        Window w = routeFlyout.getFlyoutContainer().getScene().getWindow();
        if(w != null) {
            w.setWidth(w.getWidth() + (n.getWidth() - o.getWidth()));
        }
    });
    
    //routeCombo.setEditable(true);
    //routeCombo.setPromptText("Type route name...");
    //routeCombo.valueProperty().addListener(getRouteSelectionListener());
}
 
开发者ID:fxpresso,项目名称:FXMaps,代码行数:18,代码来源:RefImplToolBar.java


示例3: filterUI

import org.controlsfx.control.CheckComboBox; //导入依赖的package包/类
public final void filterUI(){
        GridPane gridLEFT = new GridPane();
        // Labels
        Label stopwordsLabel = new Label("Stop words removal");
        UIUtils.setSize(stopwordsLabel, Main.columnWidthLEFT/2, 24);
        Label resizingLabel = new Label("Resizing");
        UIUtils.setSize(resizingLabel, Main.columnWidthLEFT/2, 24);
        gridLEFT.add(stopwordsLabel,0,0);
        gridLEFT.add(new Rectangle(0,3),0,1);
        gridLEFT.add(resizingLabel,0,2);
        
        // Values
        stopwordLists = new StopwordSets();
        stopwordListsCheckComboBox = new CheckComboBox<>(stopwordLists.availableSets);
        stopwordListsCheckComboBox.setStyle("-fx-font-size: 12px;"); 
        stopwordListsCheckComboBox.skinProperty().addListener(new ChangeListener<Skin>() {
        @Override
        public void changed(ObservableValue<? extends Skin> observable, Skin oldValue, Skin newValue) {
             if(oldValue==null && newValue!=null){
                 CheckComboBoxSkin skin = (CheckComboBoxSkin)newValue;
                 ComboBox combo = (ComboBox)skin.getChildren().get(0);
                 combo.setPrefWidth(Main.columnWidthLEFT/2);
                 combo.setMaxWidth(Double.MAX_VALUE);
             }
        }
});
//        stopwordListsCheckComboBox.setMaxWidth(Double.MAX_VALUE);
                
//        UIUtils.setSize(stopwordListsCheckComboBox,Main.columnWidthLEFT/2, 24);
        gridLEFT.add(stopwordListsCheckComboBox,1,0);
        resizeSlider = new RangeSlider();
        resizeSlider.setBlockIncrement(0.1);
        UIUtils.setSize(resizeSlider,Main.columnWidthLEFT/2, 24);
        resizeSlider.resize(Main.columnWidthLEFT/2, 24);
        gridLEFT.add(resizeSlider,1,2);

        HBox filterDatasetBOTH = new HBox(5);
        filterDatasetBOTH.getChildren().addAll(gridLEFT,createFilterButton());
        grid.add(filterDatasetBOTH,0,11);
    }
 
开发者ID:AdrienGuille,项目名称:SONDY,代码行数:41,代码来源:DataManipulationUI.java


示例4: getViolationCheckComboBox

import org.controlsfx.control.CheckComboBox; //导入依赖的package包/类
/**
 * @return the checkComboBox
 */
public final CheckComboBox<RulePriority> getViolationCheckComboBox() {
	return checkComboBox;
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:7,代码来源:PMDCheckedListComposite.java


示例5: createFilterTab

import org.controlsfx.control.CheckComboBox; //导入依赖的package包/类
private Node createFilterTab() {
	GridPane pane = new GridPane();
	pane.setHgap(10d);
	pane.setVgap(10d);

	fromDate = new DatePicker();
	fromDate.valueProperty().addListener(value -> update());
	toDate = new DatePicker();
	toDate.valueProperty().addListener(value -> update());

	teamFilter = new ComboBox<String>(model.getTeamModel().getTeams());
	teamFilter.valueProperty().addListener(value -> {
		update();
		filterPlayers();
	});
	playerList = new FilteredList<String>(model.getPlayerModel()
			.getPlayers(), value -> true);
	playerFilter = new ComboBox<String>(playerList);
	playerFilter.valueProperty().addListener(value -> update());

	leageFilter = new CheckComboBox<String>(model.getLeages());
	leageFilter
			.getCheckModel()
			.getCheckedItems()
			.addListener(
					(javafx.collections.ListChangeListener.Change<? extends String> c) -> update());
	Button writeButton = new Button("CSV Schreiben");
	writeButton.setOnAction(event -> handleWrite());

	ToolBar fileBar = new ToolBar(writeButton);
	fileBar.setBackground(Background.EMPTY);

	pane.addRow(0, new HBox());
	pane.addRow(1, new Label("Ab"), fromDate, new Label("Bis"), toDate);
	pane.addRow(2, new Label("Team"), teamFilter, new Label("Spieler"),
			playerFilter);
	pane.addRow(3, new Label("Liga"), leageFilter);
	pane.add(createStatsButtonBar(), 0, 4, 4, 1);
	pane.add(fileBar, 0, 5, 2, 1);

	updateStatisics();
	return pane;
}
 
开发者ID:talpalaru,项目名称:polTool,代码行数:44,代码来源:VisualizationView.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ContainerManager类代码示例发布时间:2022-05-23
下一篇:
Java PrimitiveConverter类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap