Class trafficlightPopupWindow

java.lang.Object
javafx.scene.control.Dialog<List<Integer>>
real_time_traffic_simulation_with_java.gui.mapLayer.trafficlightPopupWindow
All Implemented Interfaces:
javafx.event.EventTarget

public class trafficlightPopupWindow extends javafx.scene.control.Dialog<List<Integer>>
A popup window designed to adjust traffic light phases' durations
Returns a List of Integer representing the new durations for each phase upon confirmation
If no changes were made or invalid input was provided, returns null
Will display appropriate notification alerts upon closing
  • Property Summary

    Properties inherited from class javafx.scene.control.Dialog

    contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    trafficlightPopupWindow(String tlID, List<Integer> phasesDuration)
    A popup window designed to adjust traffic light phases' durations
    Returns a List of Integer representing the new durations for each phase upon confirmation
    If no changes were made or invalid input was provided, returns null
    Will display appropriate notification alerts upon closing
  • Method Summary

    Methods inherited from class javafx.scene.control.Dialog

    addEventFilter, addEventHandler, buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, removeEventFilter, removeEventHandler, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • trafficlightPopupWindow

      public trafficlightPopupWindow(String tlID, List<Integer> phasesDuration)
      A popup window designed to adjust traffic light phases' durations
      Returns a List of Integer representing the new durations for each phase upon confirmation
      If no changes were made or invalid input was provided, returns null
      Will display appropriate notification alerts upon closing
      Parameters:
      tlID - The ID of the traffic light
      phasesDuration - The current phases durations of the traffic light