Class AlertTextField
java.lang.Object
javafx.stage.Window
javafx.stage.Stage
com.imyeyu.fx.ui.components.alert.AbstractAlert
com.imyeyu.fx.ui.components.alert.AbstractAlertInput<javafx.scene.control.TextField>
com.imyeyu.fx.ui.components.alert.AlertTextField
- All Implemented Interfaces:
TimiFXUI, TimiFXUI.Colorful, javafx.event.EventTarget
输入弹窗
- Since:
- 2022-01-07 15:43
- Author:
- 夜雨
-
Nested Class Summary
Nested classes/interfaces inherited from interface TimiFXUI
TimiFXUI.BG, TimiFXUI.Colorful, TimiFXUI.CSS, TimiFXUI.Shadow, TimiFXUI.Stroke -
Property Summary
Properties inherited from class AbstractAlert
typeProperties inherited from class javafx.stage.Stage
alwaysOnTop, fullScreenExitHint, fullScreenExitKey, fullScreen, iconified, maxHeight, maximized, maxWidth, minHeight, minWidth, resizable, titleProperties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y -
Field Summary
Fields inherited from class AbstractAlertInput
content, input, tipsFields inherited from class AbstractAlert
btnPane, centerButtons, enableSizeToScene, leftButtons, PADDING_BUTTON, PADDING_CONTENT, rightButtons, rootFields inherited from interface TimiFXUI
CSS_FONT, CSS_STYLE, MULTILINGUAL, RESOURCEFields inherited from interface TimiFXUI.Colorful
BLACK, BLUE, BORDER, BROWN, DARK_GRAY, DARK_GREEN, FOCUSED_DARK, FOCUSED_DEFAULT, FOCUSED_LIGHT, GRAY, GRAY_WHITE, GREEN, ICON, ICON_DISABLED, ICON_HOVER, LIGHT_BLUE, LIGHT_GRAY, ORANGE, PINK, RED, TRANSPARENT, WHITE, YELLOW -
Constructor Summary
ConstructorsConstructorDescriptionAlertTextField(AlertType type) 输入弹窗AlertTextField(AlertType type, String content, AlertButton... buttons) 输入弹窗AlertTextField(AlertType type, String title, String content, String text, AlertButton... buttons) 输入弹窗AlertTextField(String content) 输入弹窗AlertTextField(String content, AlertButton... buttons) 输入弹窗 -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertTextFieldconfirm(javafx.stage.Window owner, String content, com.imyeyu.java.bean.CallbackArg<String> confirm) 输入确认弹窗static AlertTextFieldconfirm(javafx.stage.Window owner, String content, com.imyeyu.java.bean.CallbackArg<String> confirm, com.imyeyu.java.bean.CallbackArg<String> otherwise) 输入确认弹窗Methods inherited from class AbstractAlertInput
getInput, getText, getTips, setTipsMethods inherited from class AbstractAlert
addShownListener, autoSize, clearButton, getAction, getBtnPane, getCenterButtons, getLeftButtons, getRightButtons, getRoot, getType, isEnableSizeToScene, layout, onEscape, putButtons, putButtons, setButton, setCenterButtons, setEnableSizeToScene, setIcon, setLeftButtons, setOnActionEvent, setRightButtons, setType, showAwaitRelativeCenter, showAwaitRelativeCenter4PrimaryScreen, showAwaitRelativeCenter4Screen, showRelativeCenter, showRelativeCenter4PrimaryScreen, showRelativeCenter4Screen, typePropertyMethods inherited from class javafx.stage.Stage
alwaysOnTopProperty, close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, initModality, initOwner, initStyle, isAlwaysOnTop, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setAlwaysOnTop, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFrontMethods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, hide, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
Constructor Details
-
AlertTextField
-
AlertTextField
-
AlertTextField
输入弹窗- Parameters:
content- 提示buttons- 可控按钮
-
AlertTextField
输入弹窗- Parameters:
type- 弹窗类型content- 内容buttons- 可控按钮
-
AlertTextField
public AlertTextField(AlertType type, String title, String content, String text, AlertButton... buttons) 输入弹窗- Parameters:
type- 弹窗类型title- 标题content- 内容text- 预设输入框文本buttons- 可控按钮
-
-
Method Details
-
confirm
public static AlertTextField confirm(javafx.stage.Window owner, String content, com.imyeyu.java.bean.CallbackArg<String> confirm) 输入确认弹窗- Parameters:
owner- 依赖窗体content- 内容confirm- 确认事件- Returns:
- 弹窗对象
-
confirm
public static AlertTextField confirm(javafx.stage.Window owner, String content, com.imyeyu.java.bean.CallbackArg<String> confirm, com.imyeyu.java.bean.CallbackArg<String> otherwise) 输入确认弹窗- Parameters:
owner- 依赖窗体content- 内容confirm- 确认事件otherwise- 其他事件- Returns:
- 弹窗对象
-