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 void
addRenderingBo(List<RenderingBo> renderingBos, boolean force, Supplier<RenderingBo> supplier)
protected void
addRenderingBo(List<RenderingBo> renderingBos, RenderingBo bo)
protected void
addRenderingBo(List<RenderingBo> renderingBos, Supplier<RenderingBo> supplier)
int
getPriority()
void
hide()
boolean
isAlwaysDisplay()
boolean
isDisplayed()
void
onActivate()
void
onEvent(Event event)
boolean
onKeyPress(int code, String key, int modifiers)
boolean
onKeyRelease(int code, String key, int modifiers)
void
onLoad()
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 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:
getPriority
in interfaceClientModule
-
isAlwaysDisplay
public boolean isAlwaysDisplay()
- Specified by:
isAlwaysDisplay
in interfaceClientModule
-
show
public void show()
- Specified by:
show
in interfaceClientModule
-
hide
public void hide()
- Specified by:
hide
in interfaceClientModule
-
onLoad
public void onLoad()
- Specified by:
onLoad
in interfaceModule
- Overrides:
onLoad
in classAbstractModule
-
onActivate
public void onActivate()
- Specified by:
onActivate
in interfaceModule
- Overrides:
onActivate
in classAbstractModule
-
onResize
public void onResize(CoordI2 effectiveViewportDimension)
- Specified by:
onResize
in interfaceClientModule
-
onMouseMove
public boolean onMouseMove(CoordI2 coord, int modifiers)
- Specified by:
onMouseMove
in interfaceClientModule
-
onMouseDrag
public boolean onMouseDrag(CoordI2 coord, int button, int modifiers)
- Specified by:
onMouseDrag
in interfaceClientModule
-
onMouseEnter
public boolean onMouseEnter(CoordI2 coord, int modifiers)
- Specified by:
onMouseEnter
in interfaceClientModule
-
onMouseLeave
public boolean onMouseLeave()
- Specified by:
onMouseLeave
in interfaceClientModule
-
onMousePress
public boolean onMousePress(CoordI2 coord, int button, int modifiers)
- Specified by:
onMousePress
in interfaceClientModule
-
onMouseRelease
public boolean onMouseRelease(CoordI2 coord, int button, int modifiers)
- Specified by:
onMouseRelease
in interfaceClientModule
-
onKeyPress
public boolean onKeyPress(int code, String key, int modifiers)
- Specified by:
onKeyPress
in interfaceClientModule
-
onKeyRelease
public boolean onKeyRelease(int code, String key, int modifiers)
- Specified by:
onKeyRelease
in interfaceClientModule
-
onMessage
public void onMessage(AbstractMessage message)
- Specified by:
onMessage
in interfaceClientModule
-
onEvent
public void onEvent(Event event)
- Specified by:
onEvent
in interfaceClientModule
-
runBeforeEvents
public void runBeforeEvents(List<RenderingBo> renderingBo)
- Specified by:
runBeforeEvents
in interfaceClientModule
-
runBetweenEvents
public void runBetweenEvents(List<RenderingBo> renderingBo)
- Specified by:
runBetweenEvents
in interfaceClientModule
-
runAfterEvents
public void runAfterEvents(List<RenderingBo> renderingBo)
- Specified by:
runAfterEvents
in 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:
isDisplayed
in interfaceClientModule
-
setDisplayed
public void setDisplayed(boolean displayed)
- Specified by:
setDisplayed
in interfaceClientModule
-
-