PATH Documentation > WebObjects

Up Previous Next

Manipulating Selections in a WODisplayGroup

Synopsis

Outlines various methods to manipulate a WODisplayGroup selection.

Description

A WODisplayGroup keeps a selection in terms of indexes into the array of displayed objects. Components that display values for multiple objects are responsible for updating the selection in their WODisplayGroups according to user actions on their dynamic elements. This is typically done with the setSelectionIndexes method. Other methods available for indirect manipulation of the selection are the action methods selectNext and selectPrevious .

To get the selection, you can use the selectionIndexes method, which returns an array of indexes as Number objects (NSNumber in Objective-C), or selectedObjects , which returns an array containing the selected objects themselves. Another method, selectedObject , returns the first selected object if there is one.

Note The selection is a programmatical selection only. WebObjects does not
automatically highlight the selected objects on the web page.

See Also

Questions

Keywords

Revision History

22 February 1999. Clif Liu. First Draft.


© 1999 Apple Computer, Inc.

Up Previous Next