|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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.EOTreeAssociation
EOTreeAssociation is used as an association for displaying hierarchical object trees, with widgets such as JTree. See EOAssociation for a general description of associations.
Aspects:
EOAssociation.ChildrenAspect,
EOAssociation.RootAspect,
EOAssociation.IsLeafAspect,
EOAssociation.ValueAspect,
EOAssociation.IconAspect,
EOAssociation.ExpandedIconAspect,
EOAssociation.EnabledAspect
EOAssociation
Inner Class Summary | |
static class |
EOTreeAssociation.TreePlugin
TreePlugin communicates with a tree UI widget on behalf of an EOTreeAssociation. |
Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation |
EOWidgetAssociation.WidgetPlugin |
Fields inherited from class com.webobjects.eocontrol.EODelayedObserver |
ObserverNumberOfPriorities, ObserverPriorityFifth, ObserverPriorityFirst, ObserverPriorityFourth, ObserverPriorityImmediate, ObserverPriorityLater, ObserverPrioritySecond, ObserverPrioritySixth, ObserverPriorityThird |
Constructor Summary | |
EOTreeAssociation(Object object)
Returns a new EOValueAssociation object that is not bound to any display group. |
Method Summary | |
NSArray |
childrenOfObject(Object identifier)
Returns an array of objects representing the children of the tree node identified by identifier . |
Object |
expandedIconForObject(Object identifier)
Returns an expanded icon to display for the identifier object. |
Object |
iconForObject(Object identifier)
Returns an icon to display for the identifier object. |
boolean |
isLeafObject(Object identifier)
Returns a boolean signifying whether or not to display the identifier as leaf. |
String |
primaryAspect()
Overridden by subclasses to return the default aspect, usually one denoting the displayed value, which by convention is named "value". |
void |
subjectChanged()
Overridden by subclasses to update state based on when an EODisplayGroup's selection or contents changes. |
Object |
valueForObject(Object identifier)
Returns the display value for the identifier object. |
protected Class |
widgetPluginClass()
Returns the Class of widget plugin that this association requires for operation. |
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation |
canSupportValueFormatter, defaultPrefersContinuousChangeNotification, dispose, 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 EOTreeAssociation(Object object)
widget
- the UI widget object that the association expects to use to display valuesMethod Detail |
public NSArray childrenOfObject(Object identifier)
identifier
.public Object expandedIconForObject(Object identifier)
identifier
object.
The default implementation uses valueForKeyPath on the object
with the key bound to the ExpandedIconAspectidentifier
- the object that will be represented in the tree
with the expanded iconidentifier
when the object's
node is expandedpublic Object iconForObject(Object identifier)
identifier
object.
The default implementation uses valueForKeyPath on the object
with the key bound to the IconAspect.identifier
- the object that will be represented in the tree
with the iconidentifier
public boolean isLeafObject(Object identifier)
identifier
as leaf.
The default implementation uses valueForKeyPath on the object
with the key bound to the IsLeafAspect.identifier
- the object that will be represented in the treeidentifier
should be displayed as a leaf node; false otherwisepublic String primaryAspect()
EOAssociation
null
.primaryAspect
in class EOAssociation
com.webobjects.eointerface.EOAssociation
null
public void subjectChanged()
subjectChanged
in class EOAssociation
public Object valueForObject(Object identifier)
identifier
object.
The default implementation uses valueForKeyPath on the object
with the key bound to the ValueAspect.identifier
- the object that will be represented in the tree
by the return valueidentifier
to displayprotected Class widgetPluginClass()
EOWidgetAssociation
widgetPluginClass
in class EOWidgetAssociation
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |