Documentation Archive Developer
Search
PATH Documentation > WebObjects

Table of Contents

EOCocoaRadioMatrixPlugin


Inherits from:
EOValueSelectionAssociation.ValueSelectionPlugin (EOInterface) : EOWidgetAssociation.WidgetPlugin (EOInterface) : Object
Implements:
EOWidgetAssociation.WidgetPlugin.Formatting
(EOInterface)
NSDisposable
Package:
com.webobjects.eointerface.cocoa


Class Description


An EOCocoaRadioMatrixPlugin allows you to populate an NSMatrix's cells. EOCocoaRadioMatrixPlugin supports connections for both cell titles and icons, depending on the matrix's prototype cell. You define the prototype in Interface Builder (to display an icon only, text only, or both).


Usable With
NSMatrix (com.apple.cocoa.application.NSMatrix)


Aspects
selectedTitle An attribute of the selected object whose values can be represented as strings.
selectedTag An integer attribute of the selected object.
enabled A boolean attribute of the selected object, which determines whether the matrix is enabled.


Object Keys Taken
target When the user chooses an item in the matrix, the EORadioMatrixAssociation updates the selected object's property with the item's title or tag.


Examples

Suppose that you want to display actors' names and pictures in an NSMatrix. Start with a TalentPhoto display group (where a TalentPhoto object has a relationship to its Talent object). In Interface Builder, create a button containing both an image and text. Then, alternate(option)-drag to create a matrix of buttons. Control-drag from the matrix to the photo display group. In the Connections inspector, choose EOCocoaRadioMatrixPlugin, and bind the image aspect to the photo attribute. Repeat, binding the title aspect to the talent.lastName attribute.

Note that you can group the matrix in a scroll view. An EOCocoaRadioMatrixPlugin will automatically manage the size of the matrix for this (for vertical scrolling only).




Interfaces Implemented


NSDisposable
dispose
EOWidgetAssociation.WidgetPlugin.Formatting
setValueFormatter
valueFormatter


Method Types


All methods
EOCocoaRadioMatrixPlugin
breakConnection
establishConnection
selectionIndex
setSelectionIndex
setTitlesFromObjects
titles
widgetKeysTaken


Constructors



EOCocoaRadioMatrixPlugin

public EOCocoaRadioMatrixPlugin( com.webobjects.eointerface.EOWidgetAssociation anEOWidgetAssociation, Object widget)

Description forthcoming.


Instance Methods



breakConnection

public void breakConnection()

See the breakConnection method description in the superclass EOAssociation.

dispose

public void dispose()

See the description in the documentation for NSDisposable.

establishConnection

public void establishConnection()

See the establishConnection method description in the superclass (EOAssociation).

selectionIndex

public int selectionIndex()

Description forthcoming.

setSelectionIndex

public void setSelectionIndex( int value, boolean enabled)

Description forthcoming.

setTitlesFromObjects

public void setTitlesFromObjects(Object[] objects[])

Description forthcoming.

setValueFormatter

public void setValueFormatter(Object anObject)

Description forthcoming.

titles

public String[] titles()

Description forthcoming.

valueFormatter

public Object valueFormatter()

Description forthcoming.

widgetKeysTaken

public String[] widgetKeysTaken()

Description forthcoming.

© 2001 Apple Computer, Inc. (Last Published April 21, 2001)


Table of Contents