Package javafx.scene.control

Examples of javafx.scene.control.ProgressIndicator


import javafx.util.StringConverter;

public class ComponentUtil {
 
  public static Node createProgressIndicator(){
    ProgressIndicator indicator = new ProgressIndicator();
    indicator.setMaxHeight(350);
    indicator.setMaxWidth(350);
   
    BorderPane borderPane = new BorderPane();
    BorderPane.setMargin(indicator, new Insets(5));
    borderPane.setCenter(indicator);
    borderPane.setStyle("-fx-background-color: rgba(230,230,230,0.7);");
View Full Code Here


          refresh();
        }
    });
    buttonsPane.getChildren().add(refreshButton);
   
    final ProgressIndicator repeatProgressIndicator = new ProgressBar();
    progressbarDisplayTarget.getChildren().add(repeatProgressIndicator);
    final ToggleButton toggleButton = new ToggleButton("",new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/repeat.png"))));
    repeatProgressIndicator.setVisible(false);
    repeatProgressIndicator.setPrefWidth(300);
    repeatProgressIndicator.progressProperty().bind(repeatFilterService.progressProperty());
    toggleButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        if (toggleButton.isSelected()){
          repeatFilterService.setRefreshIntervall(Long.valueOf(refreshRateInMs.get()));
          repeatFilterService.reset();
          repeatFilterService.start();
        } else {
          repeatFilterService.cancel();
        }
      }
    });
    repeatFilterService.setOnCancelled(new EventHandler<WorkerStateEvent>() {
      @Override
      public void handle(WorkerStateEvent event) {
        repeatProgressIndicator.setVisible(false);
      }
    });
    repeatFilterService.stateProperty().addListener(new ChangeListener<State>() {
      @Override
      public void changed(ObservableValue<? extends State> observable, State oldValue, State newValue) {
        if (newValue==State.CANCELLED || newValue == State.FAILED || newValue == State.SUCCEEDED){
          repeatProgressIndicator.setVisible(false);
        } else {
          repeatProgressIndicator.setVisible(true);
        }
       
      }
    });
   
View Full Code Here

      public void changed(ObservableValue<? extends AuditTrailResultModel> observable, AuditTrailResultModel oldValue,
          final AuditTrailResultModel newValue) {
        //richtext support will is not available in current javafx (plante for 8) for now this is a workaround with a javascriptlib+webview
        if (newValue!=null){
         
          final ProgressIndicator bar = new ProgressIndicator();
          detailstackPane.getChildren().add(bar);
          Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
              final String message = copperDataProvider.getAuditTrailMessage(newValue.id);
View Full Code Here

   *            null)
   * @return the {@linkplain ProgressIndicator} alert
   */
  public static Stage alertProgress(final Stage parent) {
    final Stage alert = alert(parent, 200, 150,
        Modality.APPLICATION_MODAL, new ProgressIndicator());
    return alert;
  }
View Full Code Here

    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(1d);
    lighting.setLight(light);
    //final ProgressIndicator pi = ProgressIndicatorBuilder.create().maxWidth(200d).effect(lighting).build();
    final ProgressIndicator pi = ProgressBarBuilder.create().maxWidth(parent.getWidth() / 2d).maxHeight(25d).effect(lighting).build();
    final Stage alert = alert(parent, parent.getWidth(), parent.getHeight(), Modality.APPLICATION_MODAL, pi,
        LabelBuilder.create().text(RS.rbLabel(KEY.SENDING)).build());
    final Service<T> service = new Service<T>() {
      @Override
      protected Task<T> createTask() {
View Full Code Here

        statusIndicator.setMaxWidth(5.0);
        AnchorPane.setTopAnchor(statusIndicator, Double.MIN_VALUE);
        AnchorPane.setLeftAnchor(statusIndicator, Double.MIN_VALUE);
        AnchorPane.setBottomAnchor(statusIndicator, Double.MIN_VALUE);

        progressIndicator = new ProgressIndicator();
        progressIndicator.setVisible(false);
        progressIndicator.setPrefWidth(50.0);
        progressIndicator.setPrefHeight(50.0);
        AnchorPane.setBottomAnchor(progressIndicator, 5.0);
        AnchorPane.setRightAnchor(progressIndicator, 5.0);
View Full Code Here

            label.setPrefWidth(100d);

            final ProgressBar pb = pbs[i] = new ProgressBar();
            pb.setProgress(values[i]);

            final ProgressIndicator pin = pins[i] = new ProgressIndicator();
            pin.setProgress(values[i]);
            final HBox hb = hbs[i] = new HBox();
            hb.setSpacing(10);
            hb.setAlignment(Pos.CENTER_LEFT);
            hb.getChildren().addAll(label, pb, pin);
        }
View Full Code Here

        grid.add(slider5, 1, 6, 2, 1);
        Slider slider11 = new Slider(0, 50, 20);
        slider11.setShowTickLabels(false);
        slider11.setShowTickMarks(false);
        grid.add(slider11, 3, 6, 2, 1);
        ProgressIndicator indicator1 = new ProgressIndicator();
        grid.add(indicator1, 5, 6);
        ProgressIndicator indicator2 = new ProgressIndicator(0.5);
        grid.add(indicator2, 6, 6);
        // TextArea area1 = new TextArea();
        // area1.setPromptText("TextArea with promptText");
        // area1.setPrefRowCount(2);
        // area1.setPrefColumnCount(15);
        // grid.add(area1, 7, 6, 2, 1);
        ProgressBar bar = new ProgressBar(0.6);
        grid.add(bar, 7, 6, 2, 1);

        Label labelb9 = new Label("small:");
        AquaFx.createLabelStyler().setSizeVariant(ControlSizeVariant.SMALL).style(labelb9);
        grid.add(labelb9, 0, 7);
        Slider slider6 = new Slider(0, 50, 20);
        slider6.setShowTickLabels(true);
        slider6.setShowTickMarks(true);
        slider6.setMajorTickUnit(25);
        slider6.setMinorTickCount(4);
        AquaFx.createSliderStyler().setSizeVariant(ControlSizeVariant.SMALL).style(slider6);
        grid.add(slider6, 1, 7, 2, 1);
        Slider slider12 = new Slider(0, 50, 20);
        slider12.setShowTickLabels(false);
        slider12.setShowTickMarks(false);
        AquaFx.createSliderStyler().setSizeVariant(ControlSizeVariant.SMALL).style(slider12);
        grid.add(slider12, 3, 7, 2, 1);
        ProgressIndicator indicator3 = new ProgressIndicator();
        AquaFx.createProgressIndicatorStyler().setSizeVariant(ControlSizeVariant.SMALL).style(indicator3);
        grid.add(indicator3, 5, 7);
        ProgressIndicator indicator4 = new ProgressIndicator(0.5);
        AquaFx.createProgressIndicatorStyler().setSizeVariant(ControlSizeVariant.SMALL).style(indicator4);
        grid.add(indicator4, 6, 7);
        // TextArea area2 = new TextArea();
        // area2.setPromptText("TextArea with promptText");
        // area2.setPrefRowCount(2);
        // area2.setPrefColumnCount(15);
        // AquaFx.resizeControl(area2, ControlSizeVariant.SMALL);
        // grid.add(area2, 7, 7, 2, 1);
        ProgressBar bar2 = new ProgressBar(0.6);
        AquaFx.createProgressBarStyler().setSizeVariant(ControlSizeVariant.SMALL).style(bar2);
        grid.add(bar2, 7, 7, 2, 1);

        Label labelb10 = new Label("mini:");
        AquaFx.createLabelStyler().setSizeVariant(ControlSizeVariant.MINI).style(labelb10);
        grid.add(labelb10, 0, 8);
        Slider slider7 = new Slider(0, 50, 20);
        slider7.setShowTickLabels(true);
        slider7.setShowTickMarks(true);
        slider7.setMajorTickUnit(25);
        slider7.setMinorTickCount(4);
        AquaFx.createSliderStyler().setSizeVariant(ControlSizeVariant.MINI).style(slider7);
        grid.add(slider7, 1, 8, 2, 1);
        Slider slider13 = new Slider(0, 50, 20);
        slider13.setShowTickLabels(false);
        slider13.setShowTickMarks(false);
        AquaFx.createSliderStyler().setSizeVariant(ControlSizeVariant.MINI).style(slider13);
        grid.add(slider13, 3, 8, 2, 1);
        ProgressIndicator indicator5 = new ProgressIndicator();
        AquaFx.createProgressIndicatorStyler().setSizeVariant(ControlSizeVariant.MINI).style(indicator5);
        grid.add(indicator5, 5, 8);
        ProgressIndicator indicator6 = new ProgressIndicator(0.5);
        AquaFx.createProgressIndicatorStyler().setSizeVariant(ControlSizeVariant.MINI).style(indicator6);
        grid.add(indicator6, 6, 8);
        // TextArea area3 = new TextArea();
        // area3.setPromptText("TextArea with promptText");
        // area3.setPrefRowCount(2);
View Full Code Here

                            new NoGroupsDialog("No groups are fully analyzed but listening to ingest is disabled. "
                                    + " No groups will be available until ingest is finished and listening is re-enabled."));
                } else {
                    replaceNotification(fullUIStackPane,
                            new NoGroupsDialog("No groups are fully analyzed yet, but ingest is still ongoing.  Please Wait.",
                                    new ProgressIndicator()));
                }

            } else if (getFileUpdateQueueSizeProperty().get() > 0) {
                replaceNotification(fullUIStackPane,
                        new NoGroupsDialog("No groups are fully analyzed yet, but image / video data is still being populated.  Please Wait.",
                                new ProgressIndicator()));
            } else if (db != null && db.countAllFiles() <= 0) { // there are no files in db
                replaceNotification(fullUIStackPane,
                        new NoGroupsDialog("There are no images/videos in the added datasources."));

            } else if (!groupManager.isRegrouping()) {
View Full Code Here

TOP

Related Classes of javafx.scene.control.ProgressIndicator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.