|
WebObjects 5.2.3 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.webobjects.eocontrol.EODelayedObserver
com.webobjects.eointerface.EOAssociation
com.webobjects.eointerface.EOWidgetAssociation
com.webobjects.eointerface.EOTableAssociation
EOTableAssociation associates the contents of its SourceAspect's display group with a NSTableView, JTable or an EOTable
(an object that places a javax.swing.JTable in a scroll view), via the repective WidgetPlugin's.
Typically, applications won't explicitly instantiate this class,
as EOTableColumnAssociation's setTable method assures that an instance exists for its table.
Aspects:
EOAssociation.SourceAspect
EOAssociation.BoldAspect
EOAssociation.ItalicAspect
EOAssociation.TextColorAspect
EOAssociation.EnabledAspect
| Nested Class Summary | |
static class |
EOTableAssociation.TablePlugin
TablePlugin communicates with a UI widget (NSTableView, JTable or EOTable, for example) on behalf of an EOTableAssociation. |
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation |
EOWidgetAssociation.WidgetPlugin |
| Field Summary |
| Fields inherited from class com.webobjects.eocontrol.EODelayedObserver |
ObserverNumberOfPriorities, ObserverPriorityFifth, ObserverPriorityFirst, ObserverPriorityFourth, ObserverPriorityImmediate, ObserverPriorityLater, ObserverPrioritySecond, ObserverPrioritySixth, ObserverPriorityThird |
| Constructor Summary | |
EOTableAssociation(Object aDisplayObject)
Creates a new EOTableAssociation to monitor and update the value in aDisplayObject. |
|
| Method Summary | |
int |
boldStateAtColumnAndRow(int columnIndex,
int rowIndex)
This method returns whether the table cell at the specified row and column is (currently) using a bold font type. |
void |
dispose()
Clears all references this association has to other objects especially its display object and EODisplayGroup. |
EOTableColumnAssociation |
editingTableColumnAssociation()
If a field in the table is being edited, this method will return the column assocaition for the table column of the edited field. |
boolean |
isEditableAtColumnAndRow(int columnIndex,
int rowIndex)
This method returns whether the table cell at the specified row and column is editable. |
int |
italicAtColumnAndRow(int columnIndex,
int rowIndex)
This method returns whether the table cell at the specified row and column is (currently) using a italic font type. |
int |
numberOfDisplayedObjects()
Returns the number of diplayed objects (from the source display group). |
String |
primaryAspect()
This method returns the primary aspect for this table association. |
void |
setSortOrderingByTableColumnOrder()
This method is called internally by several other methods in order to perform sort ordering by column order. |
void |
setSortsByColumnOrder(boolean flag)
Enables or disables sorting by column order. |
boolean |
setValueAtColumnAndRow(Object value,
int columnIndex,
int rowIndex)
This method sets value on the table cell at the specified row and column. |
boolean |
sortsByColumnOrder()
Retruns whether sorting by column order is enabled. |
void |
subjectChanged()
See the subjectChanged method description in the superclass EOAssociation. |
void |
tableDidChangeColumns()
This method is called when column ordering is changed by the user, also if they are added or removed, etc. |
void |
tableDidChangeSelection()
Called to relay a selection change in the table widget to the display group. |
Object |
textColorAtColumnAndRow(int columnIndex,
int rowIndex)
This method returns whether the table cell at the specified row and column is (currently) using colored text. |
Object |
valueAtColumnAndRow(int columnIndex,
int rowIndex)
This method returns the data value for the table cell at the specified row and column. |
protected Class |
widgetPluginClass()
Returns the abstract base class for plugin's defined by this association (EOTableAssociation.TablePlugin). |
| Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation |
canSupportValueFormatter, defaultPrefersContinuousChangeNotification, isUsableWithObject, objectKeysTaken, prefersContinuousChangeNotification, setDefaultPrefersContinuousChangeNotification, setObject, setPrefersContinuousChangeNotification, setValueFormatter, valueFormatter, widgetPlugin |
| Methods inherited from class com.webobjects.eocontrol.EODelayedObserver |
discardPendingNotification, objectWillChange, observerQueue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EOTableAssociation(Object aDisplayObject)
aDisplayObject - | Method Detail |
public int boldStateAtColumnAndRow(int columnIndex,
int rowIndex)
bold aspect bound, this method
returns the value bound there. If not, this method returns the value bound to the EOTableAssociation's
bold aspect. If neither association's aspect is bound, this method returns EOAssociation.IgnoreValue.
columnIndex - the column number of the table cell of interestrowIndex - the row number of the table cell of interest
bold aspect has not been bound, EOAssociation.SetValue if the cell is
bold, EOAssociation.UnsetValue if the bold state is explicitly turned offpublic void dispose()
super's implementation
at the end.
dispose in interface NSDisposabledispose in class EOWidgetAssociationNSDisposablepublic EOTableColumnAssociation editingTableColumnAssociation()
null.
null otherwise
public boolean isEditableAtColumnAndRow(int columnIndex,
int rowIndex)
columnIndex - the column number of the table cell of interestrowIndex - the row number of the table cell of interest
true if this table cell is editable, false otherwise
public int italicAtColumnAndRow(int columnIndex,
int rowIndex)
italic aspect bound, this method
returns the value bound there. If not, this method returns the value bound to the EOTableAssociation's
italic aspect. If neither association's aspect is bound, this method returns EOAssociation.IgnoreValue.
columnIndex - the column number of the table cell of interestrowIndex - the row number of the table cell of interest
italic aspect has not been bound, EOAssociation.SetValue if the cell is
italic, EOAssociation.UnsetValue if the italic state is explicitly turned offpublic int numberOfDisplayedObjects()
public String primaryAspect()
primaryAspect in class EOAssociationEOAssociation.SourceAspect)public void setSortOrderingByTableColumnOrder()
public void setSortsByColumnOrder(boolean flag)
flag - a boolean indicating whether sorting by column order should be enabled
public boolean setValueAtColumnAndRow(Object value,
int columnIndex,
int rowIndex)
value - the new object value for the table cellcolumnIndex - the column number of the table cellrowIndex - the row number of the table cell
public boolean sortsByColumnOrder()
setSortsByColumnOrder.
true if sorting by column order is enabled, false otherwisesetSortsByColumnOrder(boolean)public void subjectChanged()
subjectChanged method description in the superclass EOAssociation.
subjectChanged in class EOAssociationEOAssociation.subjectChanged()public void tableDidChangeColumns()
setSortOrderingByTableColumnOrder.
public void tableDidChangeSelection()
public Object textColorAtColumnAndRow(int columnIndex,
int rowIndex)
color aspect bound, this method
returns the value bound there. If not, this method returns the value bound to the EOTableAssociation's
color aspect. If neither association's aspect is bound, this method returns null.
columnIndex - the column number of the table cell of interestrowIndex - the row number of the table cell of interest
null if the color aspect has not been bound
public Object valueAtColumnAndRow(int columnIndex,
int rowIndex)
columnIndex - the column number of the table cell of interestrowIndex - the row number of the table cell of interest
protected Class widgetPluginClass()
widgetPluginClass in class EOWidgetAssociation
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||