Package g3.project.ui

Class Console

  • All Implemented Interfaces:
    javafx.event.EventTarget

    public final class Console
    extends javafx.stage.Stage
    Author:
    Group 3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javafx.scene.control.TextArea historyArea
      Text history
      protected javafx.scene.control.TextField inputField
      Text input field
    • Constructor Summary

      Constructors 
      Constructor Description
      Console​(javafx.stage.Stage ownerWindow, java.util.function.Consumer<java.lang.String> lineEnterConsumer)
      Create a new Console.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void putMessage​(java.lang.String message)
      Put a message to the console.
      • Methods 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, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inputField

        protected final javafx.scene.control.TextField inputField
        Text input field
      • historyArea

        protected final javafx.scene.control.TextArea historyArea
        Text history
    • Constructor Detail

      • Console

        public Console​(javafx.stage.Stage ownerWindow,
                       java.util.function.Consumer<java.lang.String> lineEnterConsumer)
        Create a new Console.
        Parameters:
        ownerWindow - Window that owns this.
        lineEnterConsumer - Callback on line entered.
    • Method Detail

      • putMessage

        public void putMessage​(java.lang.String message)
        Put a message to the console.
        Parameters:
        message - Message to show.