Package javafx.scene.control

Examples of javafx.scene.control.Tooltip


      // remember
      this.appointment = appointment;

      // tooltip
      if (appointment.getSummary() != null) {
        Tooltip.install(this, new Tooltip(appointment.getSummary()));
      }
     
      // setup menu arrow
      menuIcon = new MenuIcon(this);
View Full Code Here


          lPopup.hide();
          getSkinnable().appointments().remove(abstractAppointmentPane.appointment);
          // refresh is done via the collection events
        }
      });
      Tooltip.install(lImageView, new Tooltip("Delete")); // TODO: internationalize
      lHBox.getChildren().add(lImageView);
    }

    // construct a area of appointment groups
    lMenuVBox.getChildren().add(new Text("Group:"));
    GridPane lAppointmentGroupGridPane = new GridPane();
    lMenuVBox.getChildren().add(lAppointmentGroupGridPane);
    lAppointmentGroupGridPane.getStyleClass().add("AppointmentGroups");
    lAppointmentGroupGridPane.setHgap(2);
    lAppointmentGroupGridPane.setVgap(2);
    int lCnt = 0;
    for (Agenda.AppointmentGroup lAppointmentGroup : getSkinnable().appointmentGroups())
    {
      // create the appointment group
      final Pane lPane = new Pane();
      lPane.setPrefSize(15, 15);
      lPane.getStyleClass().addAll("AppointmentGroup", lAppointmentGroup.getStyleClass());
      lAppointmentGroupGridPane.add(lPane, lCnt % 10, lCnt / 10 );
      lCnt++;

      // tooltip
      if (lAppointmentGroup.getDescription() != null) {
        Tooltip.install(lPane, new Tooltip(lAppointmentGroup.getDescription()));
      }

      // mouse reactions
      lPane.setOnMouseEntered((mouseEvent) -> {
        if (!mouseEvent.isPrimaryButtonDown())
View Full Code Here

    // bind the textField's tooltip to our (so it will show up) and give it a default value describing the mutation features
    textField.tooltipProperty().bindBidirectional(getSkinnable().tooltipProperty());
    if (getSkinnable().getTooltip() == null)
    {
      // TODO: internationalize the tooltip
      getSkinnable().setTooltip(new Tooltip("Type a time or use # for now, or +/-<number>[h|m] for delta's (for example: -3m for minus 3 minutes)\nUse cursor up and down plus optional ctrl (hour) for quick keyboard changes."));
    }
        textField.promptTextProperty().bind(getSkinnable().promptTextProperty());

    // the icon
    imageView = new ImageViewButton();
View Full Code Here

    // bind the textField's tooltip to our (so it will show up) and give it a default value describing the mutation features
    textField.tooltipProperty().bindBidirectional(getSkinnable().tooltipProperty());
    if (getSkinnable().getTooltip() == null)
    {
      // TODO: internationalize the tooltip
      getSkinnable().setTooltip(new Tooltip("Type a date or use # for today, or +/-<number>[d|w|m|y] for delta's (for example: -3m for minus 3 months)\nUse cursor up and down plus optional shift (week), ctrl (month) or alt (year) for quick keyboard changes."));
    }
        textField.promptTextProperty().bind(getSkinnable().promptTextProperty());

    // the icon
        imageView = new ImageViewButton();
View Full Code Here

                setStyle("-fx-background-color: " + color + "; "
                        + "-fx-border-width: 1; "
                        + "-fx-border-color: " + DEF_COLOR_BTN + ";");

                final Tooltip tt = new Tooltip();
                tt.setText(txt_lite);
                tt.setGraphic(new ImageView(UtilityFX.getImage(icon)));
                __button.setTooltip(tt);
            }

            setCenter(__button);
View Full Code Here

                setStyle("-fx-background-color: " + color + "; "
                        + "-fx-border-width: 1; "
                        + "-fx-border-color: " + DEF_COLOR_BTN + ";");

                final Tooltip tt = new Tooltip();
                tt.setText(txt_lite);
                tt.setGraphic(new ImageView(UtilityFX.getImage(icon)));
                __button.setTooltip(tt);
            }

            setCenter(__button);
View Full Code Here

                setStyle("-fx-background-color: " + color + "; "
                        + "-fx-border-width: 1; "
                        + "-fx-border-color: " + DEF_COLOR_BTN + ";");

                final Tooltip tt = new Tooltip();
                tt.setText(txt_lite);
                tt.setGraphic(new ImageView(Utility.getImage(icon)));
                __button.setTooltip(tt);
            }

            setCenter(__button);
View Full Code Here

    protected void updateItem(String s, boolean empty) {
        super.updateItem(s, empty);
        if(!empty && StringUtils.isNotEmpty(s)) {
                BluePrint bluePrint = getTableView().getItems().get(getTableRow().getIndex());
                setText(s);
                Tooltip tooltip = new Tooltip();
                tooltip.setId("tooltip");
                tooltip.textProperty().bind(bluePrint.passwordProperty());
                setTooltip(tooltip);
        } else { // this is needed if table is dynamic otherwise you will see unexpected results
                setText(null);
                setTooltip(null);
        }
View Full Code Here

       
        numberOfIconsLabel.setText(list.size()+"");
    }

    private static Button createIconButton(final AwesomeIcon icon, final String text) {
        Tooltip tooltip = new Tooltip(String.format("%s: %s", icon.name(), icon.toUnicode()));
        Button b = AwesomeDude.createIconButton(icon, text, "2em", "0.8em", ContentDisplay.TOP);
        b.setTooltip(tooltip);
        b.setPrefWidth(180.0);
        b.setOnAction((ActionEvent t) -> {
            Clipboard clipboard = Clipboard.getSystemClipboard();
View Full Code Here

    name = new Label(parameter.toString());
    // set text width to half of the total width of the GUIParameter
    name.prefWidthProperty().bind(widthProperty().divide(2));
   
    // the tooltip is the hover-over label containing status information, when appropriate
    tooltip = new Tooltip();
    tooltip.setSkin(null);
   
    valueControl = makeControl();
   
    // if the parameter is a monitor, it should be permanently disabled
View Full Code Here

TOP

Related Classes of javafx.scene.control.Tooltip

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.