Class AlertConfirm
java.lang.Object
javafx.stage.Window
javafx.stage.Stage
com.imyeyu.fx.ui.components.alert.AbstractAlert
com.imyeyu.fx.ui.components.alert.AlertTips
com.imyeyu.fx.ui.components.alert.AlertConfirm
- All Implemented Interfaces:
TimiFXUI, TimiFXUI.Colorful, javafx.event.EventTarget
-
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 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
ConstructorsConstructorDescriptionAlertConfirm(AlertType type) 构造器AlertConfirm(AlertType type, String content) 构造器AlertConfirm(AlertType type, String content, AlertButton... buttons) 默认构造AlertConfirm(String content) 默认构造器 -
Method Summary
Methods 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
-
AlertConfirm
-
AlertConfirm
-
AlertConfirm
-
AlertConfirm
默认构造- Parameters:
type- 类型content- 提示内容buttons- 按钮
-
-
Method Details
-
onConfirm
protected abstract void onConfirm()确认事件 -
onCancel
protected void onCancel()取消事件
-