Class AbstractAlertInput<T extends javafx.scene.control.TextInputControl>

java.lang.Object
javafx.stage.Window
javafx.stage.Stage
com.imyeyu.fx.ui.components.alert.AbstractAlert
com.imyeyu.fx.ui.components.alert.AbstractAlertInput<T>
All Implemented Interfaces:
TimiFXUI, TimiFXUI.Colorful, javafx.event.EventTarget
Direct Known Subclasses:
AlertPassword, AlertTextArea, AlertTextField

public abstract class AbstractAlertInput<T extends javafx.scene.control.TextInputControl> extends AbstractAlert
抽象输入弹窗
Since:
2022-04-07 10:51
Author:
夜雨
  • Field Details

    • input

      protected final T extends javafx.scene.control.TextInputControl input
      输入组件
    • tips

      protected final javafx.scene.control.Label tips
      提示标签组件
    • content

      protected final javafx.scene.layout.BorderPane content
      内容面板
  • Constructor Details

    • AbstractAlertInput

      public AbstractAlertInput(T t, String title)
      输入弹窗
      Parameters:
      t - 输入组件
      title - 标题
    • AbstractAlertInput

      public AbstractAlertInput(T t, AlertType type, String title, String content, String text, AlertButton... buttons)
      输入弹窗
      Parameters:
      t - 输入组件
      type - 弹窗类型
      title - 标题
      content - 内容
      text - 预设输入框文本
      buttons - 可控按钮
  • Method Details

    • getText

      public String getText()
      获取输入的文本
      Returns:
      输入的文本
    • setTips

      public void setTips(String tips)
      设置提示
      Parameters:
      tips - 提示文本
    • getInput

      public T getInput()
      输入组件
    • getTips

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