|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectControlBean
public abstract class ControlBean
The ControlBean class is an abstract base class for the JavaBean classes generated to support Workshop controls. The ControlBean class extends the BeanContextServicesSupport class, meaning it is capable of being a container and service provider for itself and other nested JavaBeans. All support APIs (which may be called from derived derived subclasses or contextual services are generally marked as protected and have names that start with an underscore. This avoids the possibility that the name might conflict with a user-defined method on a control's public or extended (JCX) interface.
Field Summary | |
---|---|
static char |
FactorySeparator
|
static char |
IDSeparator
|
Constructor Summary | |
---|---|
protected |
ControlBean(ControlBeanContext context,
String id,
PropertyMap initProperties,
Class controlClass)
|
Method Summary | |
---|---|
void |
addInvokeListener(InvokeListener invokeListener)
Registers a new InvokeListener for this ControlBean. |
protected Object |
ensureControl()
Returns the target control instance associated with this ControlBean, performing lazy instantiation and initialization of the instance. |
protected PropertyMap |
getAnnotationMap(AnnotatedElement annotElem)
Returns the PropertyMap containing values associated with an AnnotatedElement. |
BeanContext |
getBeanContext()
Returns the nesting BeanContext for this ControlBean. |
ControlBeanContext |
getBeanContextProxy()
Return the BeanContextService proxy associated with this bean instance |
ControlBeanContext |
getControlBeanContext()
Returns the bean context instance associated with the this bean, as opposed to the parent context returned by the public getBeanContext() API. |
String |
getControlID()
Returns the control ID for this control |
Class |
getControlInterface()
Returns the public interface for this control. |
protected Object |
getControlProperty(PropertyKey key)
Returns a property on the ControlBean instance. |
protected Object |
getControlService(Class serviceClass,
Object selector)
Locates and obtains a context service from the BeanContextServices instance supporting this bean. |
protected EventNotifier |
getEventNotifier(Class eventSet)
Returns the EventNotifier for this ControlBean |
ImplInitializer |
getImplInitializer()
Obtains an instance of the appropriate ImplInitializer class |
protected String |
getLocalID()
Returns the local (parent-relative) ID for this ControlBean |
protected String[] |
getParameterNames(Method m)
Returns the parameter names for a method on the ControlBean. |
protected abstract Map |
getPropertyMapCache()
Returns the local cache for ControlBean property maps. |
boolean |
isSingleThreadedBean()
Returns true if the ControlBean instance is running in an environment that guarantees single-threaded behvior, false otherwise |
protected void |
postInvoke(Object retval,
Throwable t)
The postInvoke method is called after all operations on the control. |
protected void |
preInvoke(Method m,
Object[] args)
The preinvoke method is called before all operations on the control. |
void |
removeInvokeListener(InvokeListener invokeListener)
Deregisters an existing InvokeListener for this ControlBean. |
void |
setBeanContext(BeanContext bc)
Called by the BeanContextProxy whenever the context associated with this control bean is changed. |
void |
setControlID(String id)
Sets the absolute controlID for this ControlBean. |
protected void |
setControlProperty(PropertyKey key,
boolean b)
|
protected void |
setControlProperty(PropertyKey key,
byte b)
|
protected void |
setControlProperty(PropertyKey key,
char c)
|
protected void |
setControlProperty(PropertyKey key,
double d)
|
protected void |
setControlProperty(PropertyKey key,
float f)
|
protected void |
setControlProperty(PropertyKey key,
int i)
|
protected void |
setControlProperty(PropertyKey key,
long l)
|
protected void |
setControlProperty(PropertyKey key,
Object o)
Sets a property on the ControlBean instance. |
protected void |
setControlProperty(PropertyKey key,
short s)
|
protected void |
setEventNotifier(Class eventSet,
EventNotifier notifier)
Sets the EventNotifier for this ControlBean |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char IDSeparator
public static final char FactorySeparator
Constructor Detail |
---|
protected ControlBean(ControlBeanContext context, String id, PropertyMap initProperties, Class controlClass)
Method Detail |
---|
public final ControlBeanContext getBeanContextProxy()
getBeanContextProxy
in interface BeanContextProxy
public final BeanContext getBeanContext()
getBeanContext
in interface ControlBean
BeanContext
for the Java ControlBean.BeanContext
public final void setBeanContext(BeanContext bc)
public final String getControlID()
getControlID
in interface ControlBean
public final Class getControlInterface()
getControlInterface
in interface ControlBean
public boolean isSingleThreadedBean()
public ImplInitializer getImplInitializer()
protected Object ensureControl()
protected void preInvoke(Method m, Object[] args)
protected void postInvoke(Object retval, Throwable t)
protected void setEventNotifier(Class eventSet, EventNotifier notifier)
protected EventNotifier getEventNotifier(Class eventSet)
public void addInvokeListener(InvokeListener invokeListener)
public void removeInvokeListener(InvokeListener invokeListener)
protected String getLocalID()
public ControlBeanContext getControlBeanContext()
getControlBeanContext
in interface ControlBean
protected Object getControlService(Class serviceClass, Object selector) throws TooManyListenersException
TooManyListenersException
public void setControlID(String id)
protected void setControlProperty(PropertyKey key, Object o)
protected void setControlProperty(PropertyKey key, int i)
protected void setControlProperty(PropertyKey key, short s)
protected void setControlProperty(PropertyKey key, long l)
protected void setControlProperty(PropertyKey key, byte b)
protected void setControlProperty(PropertyKey key, char c)
protected void setControlProperty(PropertyKey key, float f)
protected void setControlProperty(PropertyKey key, double d)
protected void setControlProperty(PropertyKey key, boolean b)
protected Object getControlProperty(PropertyKey key)
protected abstract Map getPropertyMapCache()
protected PropertyMap getAnnotationMap(AnnotatedElement annotElem)
protected String[] getParameterNames(Method m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |