|
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.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
Nested Class Summary | |
static class |
EOTreeAssociation.TreePlugin
TreePlugin communicates with a tree UI widget on behalf of an EOTreeAssociation. |
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 | |
EOTreeAssociation(Object widget)
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 widget)
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 ExpandedIconAspect
identifier
- the object that will be represented in the tree
with the expanded icon
identifier
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 icon
identifier
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 tree
identifier
should be displayed as a leaf node; false otherwisepublic String primaryAspect()
EOAssociation
null
.
primaryAspect
in class 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 value
identifier
to displayprotected Class widgetPluginClass()
EOWidgetAssociation
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 |