PATH  Documentation > WebObjects 4.5 > EOInterface Reference

Table of Contents

EOTableAssociation


Inherits from:
EOAssociation : EODelayedObserver (EOControl) : Object
Implements:
javax.swing.event.ListSelectionListener
EOObserving (EODelayedObserver)
NSDisposable (EOAssociation)
Package:
com.apple.client.eointerface


Class Description


EOTableAssociation associates the contents of its SourceAspect's display group with an EOTable (an object that places a javax.swing.JTable in a scroll view). In general use, it should never be necessary to explicitly instantiate this class, as EOTableColumnAssociation's setTable assures that an instance exists for its table.


Note: This class doesn't exist in the com.apple.yellow.eointerface package.


Usable With
EOTable


Aspects
EOAssociation. EnabledAspect  
EOAssociation. SourceAspect  




Interfaces Implemented


javax.swing.event.ListSelectionListener
valueChanged


Constructors



EOTableAssociation

public EOTableAssociation(Object aDisplayObject)

Creates a new EOTableAssociation to monitor and update the value in aDisplayObject, an EOTable.

In general use, it should never be necessary to explicitly instantiate this class, as EOTableColumnAssociation's setTable assures that an instance exists for its table.

See Also: bindAspect ( EOAssociation), establishConnection ( EOAssociation)




Static Methods



instanceForTable

public static EOTableAssociation instanceForTable(Object table)

Invoked from EOTableColumnAssociation's setTable to ensure that an EOTableAssociation has been created for table.


Instance Methods



addColumnAssociation

public void addColumnAssociation(EOTableColumnAssociation aTableColumnAssociation)

Adds aTableColumnAssociation to the receiver's set of EOTableColumnAssociations. If the receiver's SourceAspect is unbound, this method binds it to aTableColumnAssociation's display group and then invokes establishConnection.

breakConnection

public void breakConnection()

See the breakConnection method description in the superclass EOAssociation.

editingAssociation

public EOTableColumnAssociation editingAssociation()

Returns the EOTableColumnAssociation bound to the column being edited in the receiver's display object, if any.

establishConnection

public void establishConnection()

See the establishConnection method description in the superclass EOAssociation.

isUsableWithObject

public boolean isUsableWithObject(Object candidate)

Returns true if candidate is an instance of EOTable and its jTable is an instance of JTable, false otherwise.

See Also: isUsableWithObject ( EOAssociation)



primaryAspect

public String primaryAspect()

Returns SourceAspect.

See Also: primaryAspect ( EOAssociation)



removeColumnAssociation

public void removeColumnAssociation(EOTableColumnAssociation aTableColumnAssociation)

Removes aTableColumnAssociation from the receiver's set of EOTableColumnAssociations. If aTableColumnAssociation is the last of the receiver's column associations, it prepares itself for garbage collection.

subjectChanged

public void subjectChanged()

See the subjectChanged method description in the superclass EOAssociation.

valueChanged

public void valueChanged(com.sun.java.swing.event.ListSelectionEvent event)

EOTableAssociation listens to its display object's TableModel in order to synchronize the selection indices of its SourceAspect's EODisplayGroup with those of the model. This method represents the association's implementation of the ListSelectionListener interface.


Table of Contents