|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.core.BaseComponent
org.araneaframework.core.BaseApplicationComponent
A component with support for composite.
| Nested Class Summary | |
protected class |
BaseApplicationComponent.CompositeComponentImpl
|
protected class |
BaseApplicationComponent.ViewableImpl
|
protected class |
BaseApplicationComponent.ViewModel
|
| Nested classes inherited from class org.araneaframework.core.BaseComponent |
BaseComponent.ComponentImpl |
| Nested classes inherited from class org.araneaframework.core.ApplicationComponent |
ApplicationComponent.ComponentViewModel |
| Nested classes inherited from class org.araneaframework.Component |
Component.Interface |
| Nested classes inherited from class org.araneaframework.Composite |
Composite.CompositeComponent, Composite.CompositeService, Composite.CompositeWidget, Composite.Interface |
| Nested classes inherited from class org.araneaframework.Viewable |
Viewable.Interface, Viewable.ViewableComponent, Viewable.ViewableService, Viewable.ViewableWidget |
| Constructor Summary | |
BaseApplicationComponent()
|
|
| Method Summary | |
Composite.Interface |
_getComposite()
The factory method returning the implementation of the Composite. |
Viewable.Interface |
_getViewable()
|
void |
addComponent(Object key,
Component child)
Adds a component with the specified key. |
void |
addComponent(Object key,
Component child,
Environment env)
Adds a component with the specified key. |
void |
disableComponent(Object key)
Disables the component with the specified key. |
void |
enableComponent(Object key)
Enables the component with the specified key. |
protected Environment |
getChildComponentEnvironment()
Returns the the Environment of this Component by default. |
Environment |
getChildEnvironment()
Get the child Environment of this component. |
Map |
getChildren()
Returns a unmodifiable map of all the child components under this Component. |
Environment |
getEnvironment()
Provides access to the Environment of this
Component. |
protected Object |
getViewModel()
Returns the view model. |
protected void |
propagate(Message message)
Forwards the message to the component and to all of its
children components. |
void |
relocateComponent(Composite parent,
Environment newEnv,
Object keyFrom,
Object keyTo)
Relocates parent's child with keyFrom to this component with a new key keyTo. |
void |
relocateComponent(Composite parent,
Object keyFrom,
Object keyTo)
Relocates parent's child with keyFrom to this service with a new key keyTo. |
void |
removeComponent(Object key)
Removes the component with the specified key. |
| Methods inherited from class org.araneaframework.core.BaseComponent |
_addComponent, _addComponent, _checkCall, _disableComponent, _enableComponent, _endCall, _endWaitingCall, _getChildren, _getComponent, _getDisabledChildren, _propagate, _relocateComponent, _removeComponent, _setEnvironment, _setScope, _startCall, _startWaitingCall, _strictCheckCall, _strictStartCall, _waitNoCall, destroy, disable, enable, getScope, handleException, init, isAlive, isDead, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.araneaframework.Component |
_getComponent, getScope, isAlive |
| Constructor Detail |
public BaseApplicationComponent()
| Method Detail |
public Map getChildren()
public Viewable.Interface _getViewable()
_getViewable in interface Viewablepublic Composite.Interface _getComposite()
Composite
_getComposite in interface Composite
public void addComponent(Object key,
Component child,
Environment env)
public void addComponent(Object key,
Component child)
getChildComponentEnvironment().
Exception
public void relocateComponent(Composite parent,
Environment newEnv,
Object keyFrom,
Object keyTo)
parent - is the current parent of the child to be relocated.newEnv - the new Environment of the child.keyFrom - is the key of the child to be relocated.keyTo - is the the key, with which the child will be added to this StandardService.
public void relocateComponent(Composite parent,
Object keyFrom,
Object keyTo)
parent - is the current parent of the child to be relocated.keyFrom - is the key of the child to be relocated.keyTo - is the the key, with which the child will be added to this StandardService.public void enableComponent(Object key)
public void disableComponent(Object key)
public void removeComponent(Object key)
protected void propagate(Message message)
BaseComponentmessage to the component and to all of its
children components.
propagate in class BaseComponentmessage - A message to forward.public Environment getEnvironment()
ComponentEnvironment of this
Component.
getEnvironment in interface ComponentgetEnvironment in class BaseComponentpublic Environment getChildEnvironment()
ApplicationComponent
getChildEnvironment in interface ApplicationComponent
protected Object getViewModel()
throws Exception
Exceptionprotected Environment getChildComponentEnvironment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||