Class FXAgentStage

All Implemented Interfaces:
EventTarget

public class FXAgentStage extends Stage
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.
  • Constructor Details

    • FXAgentStage

      public FXAgentStage(Agent agent)
      Constructs an `FXAgentStage` with the specified agent and sets `autoCloseOnAgentEnd` to true. It must be called on the JavaFX thread. See FXExecutor
      Parameters:
      agent - the agent associated with this stage
    • FXAgentStage

      public FXAgentStage(Agent agent, boolean autoCloseOnAgentEnd)
      Constructs an `FXAgentStage` with the specified agent and the specified auto-close behavior. It must be called on the JavaFX thread. See FXExecutor
      Parameters:
      agent - the agent associated with this stage
      autoCloseOnAgentEnd - if true, the stage will automatically close when the agent ends
  • Method Details

    • close

      public void close()
      Overrides:
      close in class Stage