Class FXAgentStage
java.lang.Object
javafx.stage.Window
javafx.stage.Stage
madkit.kernel.FXAgentStage
- All Implemented Interfaces:
EventTarget
The `FXAgentStage` class extends the JavaFX
Stage
class to provide a stage that
is associated with an `Agent`. It includes functionality to handle the stage's close
request and optionally close the stage when the agent ends.-
Property Summary
Properties inherited from class javafx.stage.Stage
alwaysOnTop, fullScreenExitHint, fullScreenExitKey, fullScreen, iconified, maxHeight, maximized, maxWidth, minHeight, minWidth, resizable, title
Properties 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
-
Constructor Summary
ConstructorsConstructorDescriptionFXAgentStage
(Agent agent) Constructs an `FXAgentStage` with the specified agent and sets `autoCloseOnAgentEnd` totrue
.FXAgentStage
(Agent agent, boolean autoCloseOnAgentEnd) Constructs an `FXAgentStage` with the specified agent and the specified auto-close behavior. -
Method Summary
Methods inherited from class javafx.stage.Stage
alwaysOnTopProperty, 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, toFront
Methods 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
-
FXAgentStage
Constructs an `FXAgentStage` with the specified agent and sets `autoCloseOnAgentEnd` totrue
. It must be called on the JavaFX thread. SeeFXExecutor
- Parameters:
agent
- the agent associated with this stage
-
FXAgentStage
Constructs an `FXAgentStage` with the specified agent and the specified auto-close behavior. It must be called on the JavaFX thread. SeeFXExecutor
- Parameters:
agent
- the agent associated with this stageautoCloseOnAgentEnd
- iftrue
, the stage will automatically close when the agent ends
-
-
Method Details
-
close
-