PATH  WebObjects 4.0 Documentation > EOInterface Reference



EOTableAssociation

Inherits From:
EOAssociation : .EODelayedObserver (EOControl) : Object

com.sun.java.swing.event.ListSelectionListener

Inherits From:
com.apple.client.eointerface


Class Description

EOTableAssociation associates the contents of its SourceAspect's display group with a Swing JTable. 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.

EOTableAssociation is for use in Java Client applications only; the equivalent Yellow Box class is EOTableViewAssociation.

Usable With
com.sun.java.swing.JTable

Aspects
EnabledAspect
SourceAspect


Constructors

public EOTableAssociation()

public EOTableAssociation(java.lang.Object object)


Instance Methods


editingAssociation

public EOTableColumnAssociation editingAssociation()

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


isEditableAtRow

public boolean isEditableAtRow(int row)

Returns whether or not the display object bound to the receiver is editable at row as determined by the EnabledAspect. If this aspect is bound, a non-zero value at row indicates that the property may be edited. If the EnabledAspect is unbound all rows are considered editable.


primaryAspect

public java.lang.String primaryAspect()

Returns SourceAspect.


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.






Copyright © 1998, Apple Computer, Inc. All rights reserved.