Class AbstractClientModule
- java.lang.Object
-
- de.extio.spacecraft.shared.module.AbstractModule
-
- de.extio.spacecraft.shared.module.AbstractClientModule
-
- All Implemented Interfaces:
ClientModule,Module
public abstract class AbstractClientModule extends AbstractModule implements ClientModule
Root of all client side modules
-
-
Field Summary
-
Fields inherited from class de.extio.spacecraft.shared.module.AbstractModule
LOGGER
-
Fields inherited from interface de.extio.spacecraft.shared.module.ClientModule
EVENT_PRIORITY_HIGH, EVENT_PRIORITY_LOW, EVENT_PRIORITY_NORMAL, MODULE_PRIORITY_HIGH, MODULE_PRIORITY_LOW, MODULE_PRIORITY_NORMAL
-
-
Constructor Summary
Constructors Constructor Description AbstractClientModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRenderingBo(List<RenderingBo> renderingBos, boolean force, Supplier<RenderingBo> supplier)protected voidaddRenderingBo(List<RenderingBo> renderingBos, RenderingBo bo)protected voidaddRenderingBo(List<RenderingBo> renderingBos, Supplier<RenderingBo> supplier)intgetPriority()voidhide()booleanisAlwaysDisplay()booleanisDisplayed()voidonActivate()voidonEvent(Event event)booleanonKeyPress(int code, String key, int modifiers)booleanonKeyRelease(int code, String key, int modifiers)voidonLoad()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 class de.extio.spacecraft.shared.module.AbstractModule
onDeactivate, onUnload, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.module.ClientModule
getEventSubscriptions
-
Methods inherited from interface de.extio.spacecraft.shared.module.Module
getMessageSubscriptions, onDeactivate, onUnload
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceClientModule
-
isAlwaysDisplay
public boolean isAlwaysDisplay()
- Specified by:
isAlwaysDisplayin interfaceClientModule
-
show
public void show()
- Specified by:
showin interfaceClientModule
-
hide
public void hide()
- Specified by:
hidein interfaceClientModule
-
onLoad
public void onLoad()
- Specified by:
onLoadin interfaceModule- Overrides:
onLoadin classAbstractModule
-
onActivate
public void onActivate()
- Specified by:
onActivatein interfaceModule- Overrides:
onActivatein classAbstractModule
-
onResize
public void onResize(CoordI2 effectiveViewportDimension)
- Specified by:
onResizein interfaceClientModule
-
onMouseMove
public boolean onMouseMove(CoordI2 coord, int modifiers)
- Specified by:
onMouseMovein interfaceClientModule
-
onMouseDrag
public boolean onMouseDrag(CoordI2 coord, int button, int modifiers)
- Specified by:
onMouseDragin interfaceClientModule
-
onMouseEnter
public boolean onMouseEnter(CoordI2 coord, int modifiers)
- Specified by:
onMouseEnterin interfaceClientModule
-
onMouseLeave
public boolean onMouseLeave()
- Specified by:
onMouseLeavein interfaceClientModule
-
onMousePress
public boolean onMousePress(CoordI2 coord, int button, int modifiers)
- Specified by:
onMousePressin interfaceClientModule
-
onMouseRelease
public boolean onMouseRelease(CoordI2 coord, int button, int modifiers)
- Specified by:
onMouseReleasein interfaceClientModule
-
onKeyPress
public boolean onKeyPress(int code, String key, int modifiers)- Specified by:
onKeyPressin interfaceClientModule
-
onKeyRelease
public boolean onKeyRelease(int code, String key, int modifiers)- Specified by:
onKeyReleasein interfaceClientModule
-
onMessage
public void onMessage(AbstractMessage message)
- Specified by:
onMessagein interfaceClientModule
-
onEvent
public void onEvent(Event event)
- Specified by:
onEventin interfaceClientModule
-
runBeforeEvents
public void runBeforeEvents(List<RenderingBo> renderingBo)
- Specified by:
runBeforeEventsin interfaceClientModule
-
runBetweenEvents
public void runBetweenEvents(List<RenderingBo> renderingBo)
- Specified by:
runBetweenEventsin interfaceClientModule
-
runAfterEvents
public void runAfterEvents(List<RenderingBo> renderingBo)
- Specified by:
runAfterEventsin interfaceClientModule
-
addRenderingBo
protected final void addRenderingBo(List<RenderingBo> renderingBos, RenderingBo bo)
-
addRenderingBo
protected final void addRenderingBo(List<RenderingBo> renderingBos, Supplier<RenderingBo> supplier)
-
addRenderingBo
protected final void addRenderingBo(List<RenderingBo> renderingBos, boolean force, Supplier<RenderingBo> supplier)
-
isDisplayed
public boolean isDisplayed()
- Specified by:
isDisplayedin interfaceClientModule
-
setDisplayed
public void setDisplayed(boolean displayed)
- Specified by:
setDisplayedin interfaceClientModule
-
-