WebObjects 5.2.3

com.webobjects.eointerface.swing
Class EOSwingTreePlugin

java.lang.Object
  extended bycom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
      extended bycom.webobjects.eointerface.EOTreeAssociation.TreePlugin
          extended bycom.webobjects.eointerface.swing.EOSwingTreePlugin
All Implemented Interfaces:
EOWidgetAssociation.WidgetPlugin.Formatting, EventListener, NSDisposable, TreeSelectionListener, TreeWillExpandListener

public class EOSwingTreePlugin
extends EOTreeAssociation.TreePlugin
implements TreeWillExpandListener, TreeSelectionListener, EOWidgetAssociation.WidgetPlugin.Formatting


Nested Class Summary
 
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
EOWidgetAssociation.WidgetPlugin.Formatting
 
Constructor Summary
EOSwingTreePlugin(EOWidgetAssociation association, Object widget)
           
 
Method Summary
 void breakConnection()
          Removes the receiver from its EOAssociation and display object.
 void establishConnection()
          Overridden by subclasses to attach the receiver to its display object, and to otherwise configure the display object.
 void setRootObject(Object root)
           
 void setRootObjectChildren(NSArray objects)
           
 void setValueFormatter(Object formatter)
          Set the formatter for this plugin's text component.
 void treeWillCollapse(TreeExpansionEvent event)
           
 void treeWillExpand(TreeExpansionEvent event)
           
 void valueChanged(TreeSelectionEvent event)
           
 Object valueFormatter()
          Returns the Format for this plugin's text component.
 
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
association, dispose, unacceptableAspects, widget, widgetKeysTaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOSwingTreePlugin

public EOSwingTreePlugin(EOWidgetAssociation association,
                         Object widget)
Method Detail

breakConnection

public void breakConnection()
Description copied from class: EOWidgetAssociation.WidgetPlugin
Removes the receiver from its EOAssociation and display object. Subclasses should override this method to clear references to the display object and association and invoke super's implementation at the end.

Overrides:
breakConnection in class EOWidgetAssociation.WidgetPlugin

establishConnection

public void establishConnection()
Description copied from class: EOWidgetAssociation.WidgetPlugin
Overridden by subclasses to attach the receiver to its display object, and to otherwise configure the display object. Subclasses should invoke super's implementation after establishing their own connections.

Overrides:
establishConnection in class EOWidgetAssociation.WidgetPlugin

setRootObject

public void setRootObject(Object root)
Specified by:
setRootObject in class EOTreeAssociation.TreePlugin

setRootObjectChildren

public void setRootObjectChildren(NSArray objects)
Specified by:
setRootObjectChildren in class EOTreeAssociation.TreePlugin

setValueFormatter

public void setValueFormatter(Object formatter)
Set the formatter for this plugin's text component.

Specified by:
setValueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formatting
Parameters:
formatter - of type Format

treeWillCollapse

public void treeWillCollapse(TreeExpansionEvent event)
                      throws ExpandVetoException
Specified by:
treeWillCollapse in interface TreeWillExpandListener
Throws:
ExpandVetoException

treeWillExpand

public void treeWillExpand(TreeExpansionEvent event)
                    throws ExpandVetoException
Specified by:
treeWillExpand in interface TreeWillExpandListener
Throws:
ExpandVetoException

valueChanged

public void valueChanged(TreeSelectionEvent event)
Specified by:
valueChanged in interface TreeSelectionListener

valueFormatter

public Object valueFormatter()
Returns the Format for this plugin's text component.

Specified by:
valueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formatting
Returns:
the formatter for this plugin's widget, if one exists

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.