C
- A type that implements Componentpublic interface BehavioredComponent<C extends Component<C>> extends Component<C>
EnhancedComponent
manage Behavior
s.Modifier and Type | Method and Description |
---|---|
<BD extends BehaviorData> |
addBehavior(BD data)
Add a behavior to the component by providing a
BehaviorData . |
<BD extends BehaviorData,B extends Behavior<BD,?>> |
addBehavior(Class<B> behaviorClass)
Add a behavior to the component by providing the
Behavior class. |
<BD extends BehaviorData,B extends Behavior<BD,?>> |
getBehavior(Class<B> behaviorClass)
Return the
Behavior instance created for the given Behavior type. |
<BD extends BehaviorData,B extends Behavior<BD,?>> |
getBehaviorData(Class<B> behaviorClass)
Return the
BehaviorData used by the given Behavior type. |
boolean |
hasBehavior(Class<Behavior<?,?>> behaviorClass)
Return true if the component contains the
Behavior class provided. |
findInnerComponent, listen, listen, listen, rootComponent, rootComponent, sendWave, sendWave, sendWave, unlisten
key, key, localFacade, localFacade, release, setup
attachUi, getModel, getModel, getModels, getModels
getService, getService, getServices, getServices, returnData
callCommand, callCommand, getCommand, getCommand, getCommands, getCommands
boolean hasBehavior(Class<Behavior<?,?>> behaviorClass)
Behavior
class provided.behaviorClass
- the class of the Behavior
to check<BD extends BehaviorData,B extends Behavior<BD,?>> C addBehavior(Class<B> behaviorClass)
Behavior
class.behaviorClass
- the class of the behavior to add<BD extends BehaviorData> C addBehavior(BD data)
BehaviorData
.
The BehaviorData allow to add several Behavior
if many of them rare reference by the BehaviorData.data
- the Behavior Data that references Behavior classes to add<BD extends BehaviorData,B extends Behavior<BD,?>> B getBehavior(Class<B> behaviorClass)
Behavior
instance created for the given Behavior type.behaviorClass
- the Behavior type to get<BD extends BehaviorData,B extends Behavior<BD,?>> BD getBehaviorData(Class<B> behaviorClass)
BehaviorData
used by the given Behavior type.behaviorClass
- the Behavior type that use the searched dataCopyright © 2011–2016 JRebirth OSS. All rights reserved.