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 intEVENT_PRIORITY_HIGHstatic intEVENT_PRIORITY_LOWstatic intEVENT_PRIORITY_NORMALstatic intMODULE_PRIORITY_HIGHstatic intMODULE_PRIORITY_LOWstatic intMODULE_PRIORITY_NORMAL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Class<? extends Event>,Integer>getEventSubscriptions()intgetPriority()voidhide()booleanisAlwaysDisplay()booleanisDisplayed()voidonEvent(Event event)booleanonKeyPress(int code, String key, int modifiers)booleanonKeyRelease(int code, String key, int modifiers)voidonMessage(AbstractMessage message)booleanonMouseDrag(CoordI2 coord, int button, int modifiers)booleanonMouseEnter(CoordI2 coord, int modifiers)booleanonMouseLeave()booleanonMouseMove(CoordI2 coord, int modifiers)booleanonMousePress(CoordI2 coord, int button, int modifiers)booleanonMouseRelease(CoordI2 coord, int button, int modifiers)voidonResize(CoordI2 effectiveViewportDimension)voidrunAfterEvents(List<RenderingBo> renderingBo)voidrunBeforeEvents(List<RenderingBo> renderingBo)voidrunBetweenEvents(List<RenderingBo> renderingBo)voidsetDisplayed(boolean displayed)voidshow()-
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)
-
-