You see the Properties window for an Object List Data Provider component when you select the component's node in the
This component has the following properties.
Type: text
ObjectListDataProvider
.Type: boolean
False
by default to encourage use of standard JavaBeans design patterns. Normally, JavaBeans properties are recognized by the existence of appropriate getter and setter methods. Selecting this option enables an instance variable to be exposed by this data provider as if it were a property. Type: List
The java.Util.List
to be wrapped by this data provider. In the IDE, you can set this property's value to properties of the current page bean, properties of RequestBean1, properties of SessionBean1, and properties of ApplicationBean1. You can set this data provider programmatically to wrap any List
you like.
Type: Object
The class that determines which properties will be exposed with field keys by this data provider. This class is needed because for releases of the JDK prior to version 1.5, there is no way to determine the underlying bean class for the elements of the list, and therefore there is no way to determine the field keys that should be exposed. You can either set this property explicitly or let the data provider use the class of the first element in the list.
Type: boolean
Indicates whether the user is allowed to add or remove items from the list wrapped by this data provider.
You typically set the event properties by right-clicking the component's node in the Navigator window and choosing Edit Event Handler > eventname. The IDE creates the approriate event method for this data provider and opens the Java Editor so you can edit the new method.
tableCursorListener
This event is called when the cursor has moved to another row in the list.
tableCursorListener
This event gives a listener the opportunity to veto a change, similar to the way a PropertyChangeListener
in JavaBeans can veto a change. For example, you might use this event when the user is positioned on a current row and tries to navigate away, but there are validation failures on the fields in the current row.
dataListener
This event is called when a large scale change occurs that is not an individual property change. The most common scenario is if you change the type of object in the list. That event is significant because it potentially changes the set of fields that are available.
tableDataListener
This event is called when a row has been added to the list.
tableDataListener
This event is called when a row has been removed from the list.
dataListener