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

Java JFXSpinner类代码示例

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

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



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

示例1: reloadRomsBtnAction

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
@FXML
void reloadRomsBtnAction() throws IOException {
	
	JFXSpinner spinner = new JFXSpinner();
	spinner.setPrefSize(30, 30);
	spinner.setStyle(" -fx-background-color: #f4f4f4;");
	main.getPane().getChildren().add(spinner);
	AnchorPane.setTopAnchor(spinner, (main.getPane().getHeight()-spinner.getPrefHeight())/2);
   	AnchorPane.setLeftAnchor(spinner, (main.getPane().getWidth()-spinner.getPrefWidth())/2);
   	
   	Thread thread = new Thread(new Runnable() {
		@Override
		public void run() {
			dbController.loadRomDirectory(getRomPath()); // reload the rom directory
			
			Platform.runLater(() -> {
				refreshUIData(); // refresh the list of games displayed on screen
				main.getPane().getChildren().remove(spinner);
               });
		}
	});
	thread.start();
}
 
开发者ID:Seil0,项目名称:cemu_UI,代码行数:24,代码来源:MainWindowController.java


示例2: initializeThreadRunningCheck

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
private void initializeThreadRunningCheck() {
    final Runnable check = () -> {
        final JFXSpinner spinner = (JFXSpinner) lookup("#spinner");

        if (thread.isAlive()) {
            spinner.setOpacity(1);
        } else {
            spinner.setOpacity(0);
        }
    };

    new Thread(() -> {
        while (thread != null && !thread.getState().equals(TERMINATED)) {
            check.run();
            Thread.yield();
        }
    }).start();
}
 
开发者ID:ulriknyman,项目名称:H-Uppaal,代码行数:19,代码来源:BackgroundThreadEntryPresentation.java


示例3: LoadingPane

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
/**
 * Constructor for the ForegroundPane.
 *
 * @param height Height of the application window
 * @param width Width of the application window
 */
public LoadingPane(final double height, final double width) {
    this.setPrefSize(width, height);
    this.getStyleClass().add("info-pane");

    this.textLabel = new ObserverLabel("initRemotes");

    this.progressSpinner = new JFXSpinner();

    this.centerPane = new VBox(Constants.INSETS);
    this.centerPane.setAlignment(Pos.CENTER);
    this.centerPane.getChildren().addAll(progressSpinner, textLabel);

    this.setCenter(this.centerPane);
    instance = this;
}
 
开发者ID:openbase,项目名称:bco.bcozy,代码行数:22,代码来源:LoadingPane.java


示例4: initializeProgressIndicator

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
private void initializeProgressIndicator() {
    // Find the progress indicator
    final JFXSpinner progressIndicator = (JFXSpinner) lookup("#progressIndicator");

    // If the query is running show the indicator, otherwise hide it
    progressIndicator.visibleProperty().bind(new When(query.queryStateProperty().isEqualTo(QueryState.RUNNING)).then(true).otherwise(false));
}
 
开发者ID:ulriknyman,项目名称:H-Uppaal,代码行数:8,代码来源:QueryPresentation.java


示例5: start

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
@Override
public void start(final Stage stage) throws Exception {

    StackPane pane = new StackPane();

    JFXSpinner root = new JFXSpinner();

    pane.getChildren().add(root);

    final Scene scene = new Scene(pane, 300, 300);
    scene.getStylesheets().add(MainDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());
    stage.setScene(scene);
    stage.setTitle("JFX Spinner Demo");
    stage.show();
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:16,代码来源:SpinnerDemo.java


示例6: JFXSpinnerSkin

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
public JFXSpinnerSkin(JFXSpinner control) {
    super(control, new BehaviorBase<JFXSpinner>(control, Collections.emptyList()));

    this.control = control;

    blueColor = Color.valueOf("#4285f4");
    redColor = Color.valueOf("#db4437");
    yellowColor = Color.valueOf("#f4b400");
    greenColor = Color.valueOf("#0F9D58");

    arc = new Arc();
    arc.setManaged(false);
    arc.setStartAngle(0);
    arc.setLength(180);
    arc.getStyleClass().setAll("arc");
    arc.setFill(Color.TRANSPARENT);
    arc.setStrokeWidth(3);

    fillRect = new Rectangle();
    fillRect.setFill(Color.TRANSPARENT);
    text = new Text();
    text.getStyleClass().setAll("text", "percentage");
    final Group group = new Group(fillRect, arc, text);
    group.setManaged(false);
    arcPane = new StackPane(group);
    arcPane.setPrefSize(50, 50);
    getChildren().setAll(arcPane);

    // register listeners
    registerChangeListener(control.indeterminateProperty(), "INDETERMINATE");
    registerChangeListener(control.progressProperty(), "PROGRESS");
    registerChangeListener(control.visibleProperty(), "VISIBLE");
    registerChangeListener(control.parentProperty(), "PARENT");
    registerChangeListener(control.sceneProperty(), "SCENE");
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:36,代码来源:JFXSpinnerSkin.java


示例7: GargoyleLoadBar

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
public GargoyleLoadBar(Window owner, Task<V> task) {
	this.task = task;
	this.owner = owner;

	if (owner == null) {
		ObservableList<Stage> stages = StageHelper.getStages();
		this.owner = stages.stream().findFirst().get();
	}

	stage = new Stage();

	StackPane stackPane = new StackPane();
	double radius = this.owner.getWidth() / 10;
	for (double r = radius; r >= (radius - 40) && radius >= 0; r -= 10) {
		JFXSpinner spinner = new JFXSpinner();
		//			spinner.setStyle("-fx-background-color:transparent ; -fx-fill : transparent");
		spinner.setRadius(r);
		stackPane.getChildren().add(spinner);
	}
	//		stackPane.setBackground(Background.EMPTY);
	stackPane.getStyleClass().add("loading-bar");
	stackPane.setStyle("-fx-background-color: transparent ;");
	//		scene.getStylesheets().add(SkinManager.getInstance().getSkin());

	Scene scene = new Scene(stackPane, stackPane.prefWidth(0), stackPane.prefHeight(0));
	scene.setFill(null);
	stage.setScene(scene);

	stage.setX(this.owner.getX() + (this.owner.getWidth() / 2) - (stage.getScene().getWidth() / 2));
	stage.setY(this.owner.getY() + (this.owner.getHeight() / 2) - (stage.getScene().getHeight() / 2));

	this.owner.xProperty().addListener(xListener);
	this.owner.yProperty().addListener(yListener);

	//		stage.setScene(new Scene(root));
	stage.initStyle(StageStyle.TRANSPARENT);

	stage.setAlwaysOnTop(false);
	stage.initOwner(this.owner);
	stage.addEventHandler(KeyEvent.KEY_PRESSED, this::stageOnKeyPress);

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


示例8: DownloadCell

import com.jfoenix.controls.JFXSpinner; //导入依赖的package包/类
public DownloadCell(){
	indicator = new JFXSpinner();
	zero = new ProgressIndicator();
	zero.setProgress(0.0);
}
 
开发者ID:Team-IVIag,项目名称:IVIag-Viewer,代码行数:6,代码来源:DownloadCell.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java FlakyTest类代码示例发布时间:2022-05-23
下一篇:
Java FormatUtil类代码示例发布时间: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