Class Window

  • All Implemented Interfaces:
    be.yildizgames.common.util.Registerable, Visible, Comparable<View>

    public abstract class Window
    extends View
    A Window is a basic View with a title bar and a possible scroll bar if the main container content is bigger than the container.
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • Window

        public Window​(String name,
                      GuiFactory builder,
                      Font font,
                      Zorder z,
                      GuiEventManager eventManager,
                      Window.Parameter... params)
        Full constructor. Build the wrapped container with the given name.
        Parameters:
        name - Container name.
        builder - GUI builder.
        font - Font to use.
        z - View Z position.
        eventManager - Associated event manager.
        params - Parameter to build the window.
      • Window

        public Window​(Container container,
                      GuiFactory builder,
                      Font font,
                      Zorder z,
                      GuiEventManager eventManager)
        Full constructor, build the Window.
        Parameters:
        container - Container to use for the window.
        builder - GUI builder.
        font - Font to use.
        z - View Z position.
        eventManager - Associated event manager.
      • Window

        public Window​(Container container,
                      GuiFactory builder,
                      Font font,
                      Zorder z,
                      GuiEventManager eventManager,
                      Window.Parameter... params)
        Full constructor, Build the Window from a given container.
        Parameters:
        container - Container to use for the window.
        builder - GUI builder.
        font - Font to use.
        z - View Z position.
        eventManager - Associated event manager.
        params - Parameter to build the window.
    • Method Detail

      • switchState

        public final void switchState()
        Switch between available ContainerState.