|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaokell.lib.InterfaceImpl
aokell.lib.control.component.ComponentImpl
public class ComponentImpl
Root class for implementations of the Component interface. This class contains common features shared by all classes implementing this interface.
Field Summary | |
---|---|
protected Component |
compctrl
|
Fields inherited from class aokell.lib.InterfaceImpl |
---|
bc |
Fields inherited from interface aokell.lib.control.component.ComponentItf |
---|
NAME, TYPE |
Constructor Summary | |
---|---|
ComponentImpl()
|
Method Summary | |
---|---|
void |
addFcController(InterfaceType it,
Controller ctrl)
Declare a new controller implemented by the component. |
void |
cloneFcCtrl(Component dst,
Object hints)
Clone the controller state from the current component to another one. |
Object |
getContentDesc()
|
protected Object |
getContentPart()
|
Object |
getControllerDesc()
|
Object |
getFcClientInterface(String interfaceName)
Return the instance implementing the given client interface name for this component. |
List |
getFcCollectionInterfaces()
|
Controller[] |
getFcControllers()
Return the array of control interfaces implemented by the component. |
protected Interface |
getFcInterface(InterfaceType it,
Component itfOwner)
Get the Interface instance associated to the given interface type for the given component. |
Object |
getFcInterface(String interfaceName)
|
Object[] |
getFcInterfaces()
Return the array of Interface instances implemented by this component. |
String |
getFcItfName()
|
Component |
getFcItfOwner()
|
Type |
getFcItfType()
|
List |
getFcSingletonBusinessInterfaces()
|
List |
getFcSingletonClientInterfaces()
Return the list of client interfaces implemented by this component. |
List |
getFcSingletonControlInterfaces()
|
List |
getFcSingletonInterfaces()
|
Type |
getFcType()
|
static Interface |
getProxyInterface(InterfaceType it,
Component itfOwner,
Object content,
Delegator delegator)
Return the Interface instance associated to the given interface type. |
void |
initFcCtrl()
Initialize the controller. |
boolean |
isFcInternalItf()
|
void |
setContentDesc(Object contentDesc)
|
void |
setContentPart(Object contentPart)
Set the content associated to this component. |
void |
setControllerDesc(Object controllerDesc)
|
void |
setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller. |
void |
setType(Type type)
|
Methods inherited from class aokell.lib.InterfaceImpl |
---|
clone, init, lookupFc, setBC, setFcInternalItf, setFcItfName, setFcItfOwner, setFcItfType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component compctrl
Constructor Detail |
---|
public ComponentImpl()
Method Detail |
---|
public Type getFcType()
getFcType
in interface Component
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException
getFcInterface
in interface Component
NoSuchInterfaceException
public Object[] getFcInterfaces()
getFcInterfaces
in interface Component
public Object getControllerDesc()
getControllerDesc
in interface ComponentDescItf
public Object getContentDesc()
getContentDesc
in interface ComponentDescItf
public void setType(Type type)
setType
in interface ComponentItf
public void setContentDesc(Object contentDesc)
setContentDesc
in interface ComponentItf
public void setControllerDesc(Object controllerDesc)
setControllerDesc
in interface ComponentItf
public Controller[] getFcControllers()
getFcControllers
in interface ComponentItf
public void addFcController(InterfaceType it, Controller ctrl)
addFcController
in interface ComponentItf
public List getFcSingletonClientInterfaces()
getFcSingletonClientInterfaces
in interface ComponentItf
public Object getFcClientInterface(String interfaceName) throws NoSuchInterfaceException
getFcClientInterface
in interface ComponentItf
NoSuchInterfaceException
public List getFcSingletonInterfaces()
getFcSingletonInterfaces
in interface ComponentItf
public List getFcSingletonBusinessInterfaces()
getFcSingletonBusinessInterfaces
in interface ComponentItf
public List getFcSingletonControlInterfaces()
getFcSingletonControlInterfaces
in interface ComponentItf
public List getFcCollectionInterfaces()
getFcCollectionInterfaces
in interface ComponentItf
protected Interface getFcInterface(InterfaceType it, Component itfOwner)
public static Interface getProxyInterface(InterfaceType it, Component itfOwner, Object content, Delegator delegator)
it
- the interface typeitfOwner
- the component owning this interfacecontent
- the instance implementing the contentdelegator
- the class used to generate the proxy methods
public void setContentPart(Object contentPart)
ComponentItf
setContentPart
in interface ComponentItf
protected Object getContentPart()
public String getFcItfName()
getFcItfName
in interface Interface
getFcItfName
in class InterfaceImpl
public Component getFcItfOwner()
getFcItfOwner
in interface Interface
getFcItfOwner
in class InterfaceImpl
public Type getFcItfType()
getFcItfType
in interface Interface
getFcItfType
in class InterfaceImpl
public boolean isFcInternalItf()
isFcInternalItf
in interface Interface
isFcInternalItf
in class InterfaceImpl
public void setFcCompCtrl(Component compctrl)
setFcCompCtrl
in interface Controller
compctrl
- the component controller associated with this controller
For instances of this class, compctrl and this are equals (the component
controller is associated with itself).public void initFcCtrl()
initFcCtrl
in interface Controller
public void cloneFcCtrl(Component dst, Object hints) throws CloneCtrlException
cloneFcCtrl
in interface Controller
dst
- the destination componenthints
- hints for performing the operation
CloneCtrlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |