Class AlertTips

java.lang.Object
javafx.stage.Window
javafx.stage.Stage
com.imyeyu.fx.ui.components.alert.AbstractAlert
com.imyeyu.fx.ui.components.alert.AlertTips
All Implemented Interfaces:
TimiFXUI, TimiFXUI.Colorful, javafx.event.EventTarget
Direct Known Subclasses:
AlertConfirm

public class AlertTips extends AbstractAlert
弹窗提示
Since:
2022-01-07 11:29
Author:
夜雨
  • Field Details

    • tips

      protected final javafx.scene.control.Label tips
      提示标签
  • Constructor Details

    • AlertTips

      public AlertTips(String content)
      弹窗提示
      Parameters:
      content - 内容
    • AlertTips

      public AlertTips(String content, AlertButton... buttons)
      弹窗提示
      Parameters:
      content - 内容
      buttons - 可控按钮
    • AlertTips

      public AlertTips(AlertType type, AlertButton... buttons)
      弹窗提示
      Parameters:
      type - 类型
      buttons - 可控按钮
    • AlertTips

      public AlertTips(AlertType type, String content)
      弹窗提示
      Parameters:
      type - 类型
      content - 内容
    • AlertTips

      public AlertTips(AlertType type, String content, AlertButton... buttons)
      弹窗提示
      Parameters:
      type - 类型
      content - 内容
      buttons - 可控按钮
    • AlertTips

      public AlertTips(AlertType type, String title, String content, AlertButton... buttons)
      弹窗提示
      Parameters:
      type - 类型
      title - 标题
      content - 内容
      buttons - 可控按钮
  • Method Details

    • setTips

      public void setTips(String tips)
      设置提示
      Parameters:
      tips - 提示内容
    • info

      public static AlertTips info(javafx.stage.Window owner, String content)
      快速弹出提示
      Parameters:
      owner - 显示相对窗体
      content - 提示内容
      Returns:
      弹窗对象
    • warn

      public static AlertTips warn(javafx.stage.Window owner, String content)
      快速弹出警告
      Parameters:
      owner - 显示相对窗体
      content - 警告内容
      Returns:
      弹窗对象
    • warnDanger

      public static AlertTips warnDanger(javafx.stage.Window owner, String content)
      快速弹出严重警告
      Parameters:
      owner - 显示相对窗体
      content - 警告内容
      Returns:
      弹窗对象
    • error

      public static AlertTips error(javafx.stage.Window owner, String content)
      快速弹出错误
      Parameters:
      owner - 显示相对窗体
      content - 错误内容
      Returns:
      弹窗对象
    • getTips

      public javafx.scene.control.Label getTips()
      提示标签