Class EnhancedWindow<T>
- java.lang.Object
-
- de.extio.spacecraft.shared.client.ui.Window
-
- de.extio.spacecraft.shared.client.ui.EnhancedWindow<T>
-
- All Implemented Interfaces:
HasPosition2,HasPositionAndDimension2,AutoCloseable
public class EnhancedWindow<T> extends Window
Helper to position, draw and manage virtual windows in the UI. EnhancedWindow holds a state to switch between different representations and also can persist the window position. I recommend to check for code examples in shipped groovy code to learn more about the usage of this helper and how to integrate in client modules.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPERSISTENT_STATE_PREFIX-
Fields inherited from class de.extio.spacecraft.shared.client.ui.Window
LOGGER, name, relativeScreenPosition, WINDOWS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()TgetState()voidreleaseDragging()voidreset()static voidresetWindows()voidsetState(T state)voidupdateArea()-
Methods inherited from class de.extio.spacecraft.shared.client.ui.Window
applyRelativeScreenPosition, close, drag, ensureBounds, getArea, getColor, getDimension, getHeight, getPosition, getRenderingBoLayer, getWidth, getX, getY, intersects, intersectsAny, isDraggable, isDragging, isDrawCloseButton, move, render, render, resizeCentered, setColor, setDimension, setDraggable, setDrawCloseButton, setHeight, setPosition, setRenderingBoLayer, setWidth, setX, setY, updateRelativeScreenPosition
-
-
-
-
Field Detail
-
PERSISTENT_STATE_PREFIX
public static final String PERSISTENT_STATE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
resetWindows
public static void resetWindows()
-
getName
public String getName()
-
getState
public T getState()
-
setState
public void setState(T state)
-
updateArea
public void updateArea()
- Overrides:
updateAreain classWindow
-
releaseDragging
public void releaseDragging()
- Overrides:
releaseDraggingin classWindow
-
-