|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EODelayedObserver com.webobjects.eointerface.EOAssociation com.webobjects.eointerface.EOWidgetAssociation com.webobjects.eointerface.EOTableColumnAssociation
EOTableColumnAssociation associates display group(s) with a table column, via the repective WidgetPlugin's (subclasses of TableColumnPlugin). It always works together with a EOTableAssociation.
Aspects:
EOAssociation.ValueAspect
EOAssociation.BoldAspect
EOAssociation.ItalicAspect
EOAssociation.TextColorAspect
EOAssociation.EnabledAspect
Nested Class Summary | |
static class |
EOTableColumnAssociation.TableColumnPlugin
TableColumnPlugin communicates with a UI widget (Cocoa's NSTableColumn or JFC's TableColumn, 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 | |
EOTableColumnAssociation(Object object)
Creates a new EOTableColumnAssociation to monitor and update the row values of a display group according to the widget object , which supplies a text (String) value. |
|
EOTableColumnAssociation(Object object,
Object table)
Creates a new EOTableColumnAssociation to monitor and update the row values of a display group according to the widget object , which supplies a text (String) value. |
Method Summary | |
int |
boldStateAtRow(int rowIndex)
This method returns the boldState value for the specified row in this column. |
boolean |
endEditing()
This method will end the editing state, for both the widget(-plugin) and the Association. |
boolean |
isEditableAtRow(int rowIndex)
This method returns a flag indicating whether the specified row is editable in this column. |
int |
italicStateAtRow(int rowIndex)
This method returns the italicState value for the specified row in this column. |
String |
primaryAspect()
This method returns this associations primary aspect, which is EOAssociation.ValueAspect . |
void |
setObject(Object object)
This method assigns a display object (table column widget) to this association. |
void |
setSortingSelector(NSSelector selector)
This method will set the sorting selector. |
void |
setTable(Object table)
This method stores the corresponding table widget for the table column managed by this association. |
boolean |
setValueAtRow(Object value,
int rowIndex)
This method sets the value Object for the specified row in this column. |
NSSelector |
sortingSelector()
This method returns the sorting selector. |
Object |
table()
This method returns the corresponding table widget for the table column managed by this association. |
Object |
textColorAtRow(int rowIndex)
This method returns an Object indicating the color at the specified row in this column. |
Object |
valueAtRow(int rowIndex)
This method returns the value Object for the specified row in this column. |
boolean |
widgetDidBeginEditing()
This method is called to notify the Association that the widget entered the editing state. |
boolean |
widgetDidEndEditing()
This method is called to notify the Association that the widget has finished the editing state. |
protected Class |
widgetPluginClass()
This method returns the abstract base class for table column widget plugin's for this association class. |
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation |
canSupportValueFormatter, defaultPrefersContinuousChangeNotification, dispose, isUsableWithObject, objectKeysTaken, prefersContinuousChangeNotification, setDefaultPrefersContinuousChangeNotification, 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 EOTableColumnAssociation(Object object)
object
, which supplies a text (String) value.
You normally set up associations with Interface Builder,
in which case you don't need to create them programmatically.
However, if you do create them up programmatically, setting them up is a multi-step process.
After creating an association, you must bind its aspects and establish its connections.
object
- a display object (table column widget) to be managed by this associationpublic EOTableColumnAssociation(Object object, Object table)
object
, which supplies a text (String) value.
You normally set up associations with Interface Builder,
in which case you don't need to create them programmatically.
However, if you do create them up programmatically, setting them up is a multi-step process.
After creating an association, you must bind its aspects and establish its connections.
object
- a display object (table column widget) to be managed by this associationtable
- the corresponding table display object (widget)Method Detail |
public int boldStateAtRow(int rowIndex)
boldState
value for the specified row in this column.
rowIndex
- the index of the row of interest
EOAssociation.SetValue
if the value bound of the bold
aspect at
rowIndex
is true
, EOAssociation.UnsetValue if it is false
, and
EOAssociation.IgnoreValue
if the bold
aspect is not bound at allpublic boolean endEditing()
endEditing
in class EOAssociation
public boolean isEditableAtRow(int rowIndex)
rowIndex
- the index of the row of interest
true
if the row at rowIndex
is editable in this columnpublic int italicStateAtRow(int rowIndex)
italicState
value for the specified row in this column.
rowIndex
- the index of the row of interest
EOAssociation.SetValue
if the value bound of the italic
aspect
at rowIndex
is true
, EOAssociation.UnsetValue
if it is false
,
and EOAssociation.IgnoreValue
if the italic
aspect is not bound at allpublic String primaryAspect()
EOAssociation.ValueAspect
.
primaryAspect
in class EOAssociation
public void setObject(Object object)
setObject
in class EOWidgetAssociation
object
- a display object (table column widget) to be managed by this associationEOAssociation.setObject(java.lang.Object)
public void setSortingSelector(NSSelector selector)
EOSortOrdering.CompareAscending
.
This selector will be used with EOSortOrdering for sorting. See the documentation for EOSortOrdering.
selector
- the selector to be used for sortingEOSortOrdering
public void setTable(Object table)
table
- the corresponding table display object (widget)public boolean setValueAtRow(Object value, int rowIndex)
value
- a value Object, whose actual class usually depends on how
the application defined the values of this columnrowIndex
- the index of the row of interestpublic NSSelector sortingSelector()
EOSortOrdering.CompareAscending
.
This selector is used with EOSortOrdering for sorting. See the documentation for EOSortOrdering.
EOSortOrdering
public Object table()
null
.
public Object textColorAtRow(int rowIndex)
rowIndex
- the index of the row of interest
public Object valueAtRow(int rowIndex)
rowIndex
- the index of the row of interest
public boolean widgetDidBeginEditing()
public boolean widgetDidEndEditing()
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 |