Interface ClientModule
-
- All Superinterfaces:
Module
- All Known Implementing Classes:
AbstractClientModule
public interface ClientModule extends Module
Contract for all client modules
-
-
Field Summary
Fields Modifier and Type Field Description static int
EVENT_PRIORITY_HIGH
static int
EVENT_PRIORITY_LOW
static int
EVENT_PRIORITY_NORMAL
static int
MODULE_PRIORITY_HIGH
static int
MODULE_PRIORITY_LOW
static int
MODULE_PRIORITY_NORMAL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Class<? extends Event>,Integer>
getEventSubscriptions()
int
getPriority()
void
hide()
boolean
isAlwaysDisplay()
boolean
isDisplayed()
void
onEvent(Event event)
boolean
onKeyPress(int code, String key, int modifiers)
boolean
onKeyRelease(int code, String key, int modifiers)
void
onMessage(AbstractMessage message)
boolean
onMouseDrag(CoordI2 coord, int button, int modifiers)
boolean
onMouseEnter(CoordI2 coord, int modifiers)
boolean
onMouseLeave()
boolean
onMouseMove(CoordI2 coord, int modifiers)
boolean
onMousePress(CoordI2 coord, int button, int modifiers)
boolean
onMouseRelease(CoordI2 coord, int button, int modifiers)
void
onResize(CoordI2 effectiveViewportDimension)
void
runAfterEvents(List<RenderingBo> renderingBo)
void
runBeforeEvents(List<RenderingBo> renderingBo)
void
runBetweenEvents(List<RenderingBo> renderingBo)
void
setDisplayed(boolean displayed)
void
show()
-
Methods inherited from interface de.extio.spacecraft.shared.module.Module
getMessageSubscriptions, onActivate, onDeactivate, onLoad, onUnload
-
-
-
-
Field Detail
-
MODULE_PRIORITY_LOW
static final int MODULE_PRIORITY_LOW
- See Also:
- Constant Field Values
-
MODULE_PRIORITY_NORMAL
static final int MODULE_PRIORITY_NORMAL
- See Also:
- Constant Field Values
-
MODULE_PRIORITY_HIGH
static final int MODULE_PRIORITY_HIGH
- See Also:
- Constant Field Values
-
EVENT_PRIORITY_LOW
static final int EVENT_PRIORITY_LOW
- See Also:
- Constant Field Values
-
EVENT_PRIORITY_NORMAL
static final int EVENT_PRIORITY_NORMAL
- See Also:
- Constant Field Values
-
EVENT_PRIORITY_HIGH
static final int EVENT_PRIORITY_HIGH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
int getPriority()
-
isAlwaysDisplay
boolean isAlwaysDisplay()
-
show
void show()
-
hide
void hide()
-
onResize
void onResize(CoordI2 effectiveViewportDimension)
-
onMouseMove
boolean onMouseMove(CoordI2 coord, int modifiers)
-
onMouseDrag
boolean onMouseDrag(CoordI2 coord, int button, int modifiers)
-
onMouseEnter
boolean onMouseEnter(CoordI2 coord, int modifiers)
-
onMouseLeave
boolean onMouseLeave()
-
onMousePress
boolean onMousePress(CoordI2 coord, int button, int modifiers)
-
onMouseRelease
boolean onMouseRelease(CoordI2 coord, int button, int modifiers)
-
onKeyPress
boolean onKeyPress(int code, String key, int modifiers)
-
onKeyRelease
boolean onKeyRelease(int code, String key, int modifiers)
-
onMessage
void onMessage(AbstractMessage message)
-
onEvent
void onEvent(Event event)
-
runBeforeEvents
void runBeforeEvents(List<RenderingBo> renderingBo)
-
runBetweenEvents
void runBetweenEvents(List<RenderingBo> renderingBo)
-
runAfterEvents
void runAfterEvents(List<RenderingBo> renderingBo)
-
isDisplayed
boolean isDisplayed()
-
setDisplayed
void setDisplayed(boolean displayed)
-
-