Servoy 5.x Public API

com.servoy.j2db.dataui
Interface IServoyAwareBean

All Superinterfaces:
IDisplay
All Known Subinterfaces:
IServoyAwareVisibilityBean

public interface IServoyAwareBean
extends IDisplay

Interface to be used by beans to make them aware of Servoy. If you implement this interface you will get the selected record of the foundset.

If this bean is used in a List like TableView or ListView then setSelectedRecord will be called more often. And the given record doesnt have to be the selected record of the foundset but is then the record where the bean should render it self with.

Since:
4.0
See Also:
if you also want to be notified on visibility changes.

Method Summary
 void initialize(IClientPluginAccess access)
          Initializes the bean.
 void setSelectedRecord(IRecord record)
          Applies the record, currently selected record for editing or the record to render itself with, to the bean.
 
Methods inherited from interface com.servoy.j2db.dataprocessing.IDisplay
isEnabled, isReadOnly, setValidationEnabled, stopUIEditing
 

Method Detail

initialize

void initialize(IClientPluginAccess access)
Initializes the bean. Called by Servoy after the bean is created. This method is not called when this bean is created through the IServoyBeanFactory.getBeanInstance(int, IClientPluginAccess, Object[]) you have to call initialize yourself then.

Parameters:
access - object that gives plugins access to parts of Servoy.

setSelectedRecord

void setSelectedRecord(IRecord record)
Applies the record, currently selected record for editing or the record to render itself with, to the bean.

Parameters:
record - the record for which the bean should render itself with.

Copyright © 2010 Servoy B.V.