- java.lang.Object
-
- be.yildizgames.common.util.BaseRegisterable
-
- be.yildizgames.module.graphic.gui.View
-
- be.yildizgames.module.graphic.gui.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindow.ParameterDifferent possible parameters to build the window.
-
Constructor Summary
Constructors Constructor Description Window(Container container, GuiFactory builder, Font font, Zorder z, GuiEventManager eventManager)Full constructor, build the Window.Window(Container container, GuiFactory builder, Font font, Zorder z, GuiEventManager eventManager, Window.Parameter... params)Full constructor, Build the Window from a given container.Window(String name, GuiFactory builder, Font font, Zorder z, GuiEventManager eventManager, Window.Parameter... params)Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidswitchState()Switch between available ContainerState.-
Methods inherited from class be.yildizgames.module.graphic.gui.View
addKeyboardListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseRightClickListener, addMouseWheelListener, compareTo, contains, contains, delete, disableHighlight, equals, get, getContainer, getFocus, hashCode, hide, isActive, isVisible, setActive, setActiveImpl, setBackground, setFocus, setPosition, setPosition, setVisible, setVisibleImpl, show, toString
-
-
-
-
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.
-
-