|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaokell.lib.control.binding.AbstractBindingControllerImpl
public abstract class AbstractBindingControllerImpl
Root class for binding controllers implementations.
Field Summary | |
---|---|
protected Component |
compctrl
|
Map |
reverseBindings
Store backward links to interfaces bound to the interfaces of the component managed by this binding controller. |
Fields inherited from interface aokell.lib.control.binding.BindingControllerItf |
---|
NAME, TYPE |
Constructor Summary | |
---|---|
AbstractBindingControllerImpl()
|
Method Summary | |
---|---|
void |
addFcCollectionInterfaceNames(List cltItfNames)
Add the names of currently bound interfaces to the given list. |
void |
bindFc(String arg0,
Object arg1)
Binds the client interface whose name is given to a server interface. |
protected void |
bindFcContent(String arg0,
Object arg1)
If the content and the component parts are separated, and if the content part implements the BindingController interface, invoke it. |
void |
cloneFcCtrl(Component dst,
Object hints)
Clone the controller state from the current component to another one. |
protected Object |
getFcClientItf(String itfName)
Return the interface whose name is given. |
protected List |
getFcSingletonClientItfs()
Return the list of client interfaces for the component attached to this controller. |
void |
initFcCtrl()
Initialize the controller. |
boolean |
isFcBound()
|
boolean |
isFcReverseBound()
|
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Object |
lookupFc(String arg0)
Returns the interface to which the given client interface is bound. |
void |
reverseBindFc(String dstItfName,
Object src)
Record a reverse binding. |
Object |
reverseLookupFc(String dstItfName)
Lookup a reverse binding. |
void |
reverseUnbindFc(String dstItfName)
Remove a reverse binding. |
void |
setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller. |
protected void |
testLegalBinding(String arg0,
InterfaceType it,
Object arg1)
Test whether the a client interface implementing the specified InterfaceType can be bound to arg1. |
protected void |
testLifeCyleBeforeUnbinding(Component arg0)
|
void |
unbindFc(String arg0)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Map reverseBindings
protected Component compctrl
Constructor Detail |
---|
public AbstractBindingControllerImpl()
Method Detail |
---|
public String[] listFc()
listFc
in interface BindingController
public Object lookupFc(String arg0) throws NoSuchInterfaceException
lookupFc
in interface BindingController
arg0
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if the component to which this interface
belongs does not have a client interface whose name is equal to the
given name.public void bindFc(String arg0, Object arg1) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
in interface BindingController
arg0
- the name of a client interface of the component to
which this interface belongs.arg1
- a server interface.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be created.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate
state to perform this operation.protected void bindFcContent(String arg0, Object arg1)
public void unbindFc(String arg0) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
unbindFc
in interface BindingController
arg0
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be removed.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate
state to perform this operation.public void reverseBindFc(String dstItfName, Object src)
reverseBindFc
in interface BindingControllerItf
dstItfName
- the target interface name for the bindingsrc
- the source interface for the bindingpublic Object reverseLookupFc(String dstItfName)
reverseLookupFc
in interface BindingControllerItf
dstItfName
- the target interface name to be looked up
public void reverseUnbindFc(String dstItfName)
reverseUnbindFc
in interface BindingControllerItf
dstItfName
- the target interface name to be removedpublic boolean isFcBound()
isFcBound
in interface BindingControllerItf
public boolean isFcReverseBound()
isFcReverseBound
in interface BindingControllerItf
public void addFcCollectionInterfaceNames(List cltItfNames)
addFcCollectionInterfaceNames
in interface BindingControllerItf
protected void testLifeCyleBeforeUnbinding(Component arg0) throws IllegalLifeCycleException
IllegalLifeCycleException
protected Object getFcClientItf(String itfName) throws NoSuchInterfaceException
NoSuchInterfaceException
protected List getFcSingletonClientItfs()
protected void testLegalBinding(String arg0, InterfaceType it, Object arg1) throws IllegalBindingException, NoSuchInterfaceException
IllegalBindingException
- if the binding is illegal
NoSuchInterfaceException
public void setFcCompCtrl(Component compctrl)
setFcCompCtrl
in interface Controller
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 |