public class WaveBase extends Object implements Wave, LinkMessages
Type | Property and Description |
---|---|
ObjectProperty<Wave.Status> |
status
Return the status property to allow binding.
|
Wave.Status
ADD_BEHAVIOR, CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, COMPONENT_RELEASE_ERROR, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, NOTIFIER_HANDLES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR
Constructor and Description |
---|
WaveBase()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> Wave |
add(WaveItem<T> waveItem,
T value)
Add a wave data.
|
Wave |
addDatas(WaveData<?>... waveDatas)
Add a list of wave data.
|
Wave |
addWaveListener(WaveListener waveListener)
Add a wave listener.
|
Class<?> |
componentClass() |
Wave |
componentClass(Class<?> componentClass) |
boolean |
contains(WaveItem<?> waveItem)
Check if an object exists.
|
boolean |
containsNotNull(WaveItem<?> waveItem)
Check if an object exists and if it isn't null.
|
Class<?> |
fromClass() |
Wave |
fromClass(Class<?> fromClass) |
<T> T |
get(WaveItem<T> waveItem)
Retrieve a value.
|
<T> WaveData<T> |
getData(WaveItem<T> waveItem)
Retrieve a wave data object.
|
boolean |
hasWaveBean(Class<? extends WaveBean> waveBeanClass)
Returns true if the wave holds the given
WaveBean class. |
int |
priority() |
Wave |
priority(int priority) |
Wave |
relatedWave() |
Wave |
relatedWave(Wave nextWave) |
void |
removeWaveHandler(Object waveHandler)
Release the given WaveHandler.
|
Wave |
removeWaveListener(WaveListener waveListener)
Remove a wave listener.
|
void |
setWaveHandlers(List<? extends Object> waveHandlers)
Store all Wave Handler.
|
Wave.Status |
status() |
Wave |
status(Wave.Status status) |
ObjectProperty<Wave.Status> |
statusProperty()
Return the status property to allow binding.
|
long |
timestamp() |
String |
toString() |
<WB extends WaveBean> |
waveBean(Class<WB> waveBeanClass)
Return the wave bean used to wrap wave properties.
|
Wave |
waveBean(WaveBean waveBean)
Link a wave bean.
|
List<WaveBean> |
waveBeanList()
Return all wave bean carried by this wave.
|
Wave |
waveBeanList(List<WaveBean> waveBeanList)
Add several WaveBean in a row.
|
List<WaveData<?>> |
waveDatas()
Return all wave items sorted by order.
|
WaveGroup |
waveGroup() |
Wave |
waveGroup(WaveGroup waveGroup) |
WaveType |
waveType() |
Wave |
waveType(WaveType waveType) |
String |
wUID() |
public ObjectProperty<Wave.Status> statusProperty
statusProperty
in interface Wave
WaveBase()
public Class<?> componentClass()
componentClass
in interface Wave
public Wave componentClass(Class<?> componentClass)
componentClass
in interface Wave
componentClass
- the class of the component that will handle this wave.public int priority()
public Wave relatedWave()
relatedWave
in interface Wave
public Wave relatedWave(Wave nextWave)
relatedWave
in interface Wave
nextWave
- The related Wave to set.public Wave addDatas(WaveData<?>... waveDatas)
public <T> Wave add(WaveItem<T> waveItem, T value)
public boolean containsNotNull(WaveItem<?> waveItem)
containsNotNull
in interface Wave
waveItem
- the waveItem of the object to checkpublic long timestamp()
public <WB extends WaveBean> WB waveBean(Class<WB> waveBeanClass)
public List<WaveBean> waveBeanList()
waveBeanList
in interface Wave
public Wave waveBeanList(List<WaveBean> waveBeanList)
waveBeanList
in interface Wave
waveBeanList
- the list of WaveBean to addpublic Wave addWaveListener(WaveListener waveListener)
addWaveListener
in interface Wave
waveListener
- the wave listener that will be notified of wave statuspublic Wave removeWaveListener(WaveListener waveListener)
removeWaveListener
in interface Wave
waveListener
- the wave listener to removedpublic Wave.Status status()
public ObjectProperty<Wave.Status> statusProperty()
statusProperty
in interface Wave
public Wave status(Wave.Status status)
public void setWaveHandlers(List<? extends Object> waveHandlers)
setWaveHandlers
in interface Wave
waveHandlers
- the list of WaveHandlerpublic void removeWaveHandler(Object waveHandler)
removeWaveHandler
in interface Wave
waveHandler
- the waveHandlerpublic boolean hasWaveBean(Class<? extends WaveBean> waveBeanClass)
WaveBean
class.hasWaveBean
in interface Wave
waveBeanClass
- the type of the searched WaveBean
WaveBean
typeCopyright © 2011–2016 JRebirth OSS. All rights reserved.