|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.AbstractComponent
public abstract class AbstractComponent
Base class for component implementation classes, providing compatibility
with CUBA 1. The functions in here are not mandatory any more in CUBA 2. The
class doesn't provide annotations for the lifecycle methods to keep it
suitable for JDK 1.4 environments. If you prefer annotation-based component
definitions, use derived class AbstractAnnotatedComponent
instead.
Constructor Summary | |
---|---|
AbstractComponent()
|
Method Summary | |
---|---|
void |
drop()
Empty |
ComponentContextI |
getContext()
Returns the component's local context, provided by the container on setContext(cuba.ComponentContextI) . |
void |
init()
Empty |
void |
setContext(ComponentContextI context)
Stores the provided context in a member variable which can be accessed by getContext() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractComponent()
Method Detail |
---|
public void init()
init
in interface ComponentI
public void drop()
drop
in interface ComponentI
public void setContext(ComponentContextI context) throws ComponentException
getContext()
setContext
in interface ComponentI
ComponentException
public ComponentContextI getContext()
setContext(cuba.ComponentContextI)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |